Over the years I've developed a set of best practices that I use. More than anything these are things that in my opinion "just make sense." In this five part series I'll be discussing my approach to:
- Conditionals (test right, test left)
- OO design (do it, divide it, armor it)
- Globals (don't, just don't)
- General style and naming (var/class names, tabs, blocks)
- Version control (it's free and worth twice that)
Being upfront, there will be a bias toward languages like PHP because that's what I've been developing in for the last few years. I don't like to get into the holy wars revolving around various languages and which is better. Take away what you will and leave your "Perl/Ruby/Python/Java is better" opinions at the door please. As always, some people may disagree with me, that's your right. Some people may disagree vehemently, also your right. Some people may disagree, call me a stupid git and get otherwise abusive. To those people see the credo, "Sod off you little wanker!". 'Nuf said.
No comments:
Post a Comment