2014年1月24日 星期五

[CakePHP] Pros and Cons of using cakePHP

http://www.bootstrappist.com/archives/to-cakephp-or-not-to-cakephp-should-you-use-it-or-dump-it/

To sum up from the article,

PROS:
  • Shortens dev. time
  • more secured
  • pretty coding
  • widely supported
  • trend (?!) - many people talk about it
CONS:
  • Not for complex issue
  • Not always necessary
  • Not really a "native PHP" training

[Eclipse] Change Default Text File Encoding in Eclipse

Window -> Preferences -> General -> Workspace : Text file encoding

2014年1月22日 星期三

[Project Management] Drupal Case Studies

So, the story begins ... We want a online shopping website but we don't know what framework or tools can catalyze the development progress. The time frame is around 1 to 2 months. WordPress is good for layout process, but not good for customizing for our needs. Custom-made proprietary website likes our old one ... ya it is custom-made but wow, seems much work to do ...

All in a sudden we came up with a question: how about ... Drupal?

Found that several comprehensive project case studies have been put on Drupal, which can be brilliant reference sources for the newbies like us, I recommend this to you also to understand if Drupal suits your project needs.


We have selected some main points to glance through in our preliminary phase, which might help for your decision making if you are in the same situation:
  • Why Drupal was chosen
  • Team Size
  • Time Spent
This is what our rough result found:
  • Drupal should be suitable for more likely the medium or large sized project
  • One of the impressive features for Drupal is taxonomy, which seems more relevant to journal-related, news-related or story-related projects
  • It requires skills and trials for us the Drupal newbies before the "real" development
  • Roughly the projects take about a year or more for a small team size
As seems the findings above do not benefit much for our aim, thus, the idea of using Drupal is ABANDONED in our case.  



[Tomcat] An Introduction to Tomcat Catalina

Just notice that Catalina is very useful tool for taking logs of the server, thus wondering what Catalina in Tomcat is ...

https://www.mulesoft.com/introduction-tomcat-catalina

2014年1月21日 星期二

[ClouSE][EC2] What is ClouSE? What is EC2?

http://www.oblaksoft.com/documentation/

Something relates to MySQL, Cloud, EC2 and storage stuff?

So, what is EC2, more precisely, Amazon EC2?

http://blog.soft.idv.tw/?p=823

  • What is Cloud Computing?
  • -> What is SaaS (Software as a Service)?
  • -> What is PaaS (Platform as a Service)?
  • -> What is IaaS (Infrastructure as a Service)?
  • What is Amazon Web Services (AWS)?
  • -> What is S3 (Simple Storage Service)?
  • -> What is EC2 (Elastic Compute Cloud)?
  • -> What is SQS (Simple Queuing Service)?
  • -> What is VPC (Virtual Private Cloud)?
  • How to get my AWS?


http://blog.soft.idv.tw/?p=824

  • What is VPS (Virtual Private Server) and VM (Virtual Machine)?
  • What are the differences between VPS and VM?
  • What can EC2 do?
  • How to get start with my EC2?
  • How to use my EC2?

[Discussion on Framework] Pros and Cons of using Framework

http://www.1stwebdesigner.com/design/pros-cons-frameworks/

http://themetaq.com/articles/the-pros-and-cons-of-using-a-front-end-framework

Summing-up on using Framework:

PROS

  • Development Efficiency
  • Less Decisions Required
  • More widely Tested
  • Minimized Cost
  • Documentation and Community Support
CONS
  • Less Underneath Skills Trained
  • Less Flexibility
  • Virus-spreading Medium
  • Performance
  • Update Issues / Outdated Issues
  • Collaborations on Customization
BEST solution never exists and BETTER solution depends on the situation. Discuss and know your needs. Stay open-minded in your discussions.

2014年1月17日 星期五

[JS] Align Text in Shape

http://jsfiddle.net/m1erickson/upq6L/

2014年1月10日 星期五

[WordPress] Some PHP Code Standards stated by WordPress

http://make.wordpress.org/core/handbook/coding-standards/php/

Some Highlights:

Indentation 
Rule of thumb: Tabs should be used at the beginning of the line for indentation, while spaces can be used mid-line for alignment.
Comma of Array
Note the comma after the last array item
Regex
It’s most convenient to use single-quoted strings for regular expressions 
End of Line / End of File 
Remove trailing whitespace at the end of each line of code. Omitting the closing PHP tag at the end of a file is preferred.
SQL Formatting
$wpdb->prepare() is a method that handles escaping, quoting, and int-casting for SQL queries. 






[Unrelated] Extension Reading on Programming Jargon:
http://www.codinghorror.com/blog/2012/07/new-programming-jargon.html

[Wordpress] Some Code Function References

To interact with Wordpress database using PHP codes:

Insert Post
http://codex.wordpress.org/Function_Reference/wp_insert_post

Set Post Terms ( Tag or Category )
http://codex.wordpress.org/Function_Reference/wp_set_post_terms

Add Post Meta Field Data
(May be needed after added some plugins and would like to be compatible with them)
http://codex.wordpress.org/Function_Reference/add_post_meta

Create Post Category
http://codex.wordpress.org/Function_Reference/wp_create_category

2014年1月9日 星期四

[Version Control] The Art of Commit Messages

http://coenjacobs.me/art-commit-messages/

Compare this two:
  1. “Fixes bug described in #20″
  2. “XYZ_Class test() method visibility to public to fix errors in #20″