Wednesday, January 30, 2008
No Wrong Ways
It always bothers me when people say that there's a wrong way to code. As far as I'm concerned, there are no wrong ways, just ways and much much better ways.
Subscribe to:
Post Comments (Atom)
Explorations of Flash, ActionScript, and Life as a Geek
2 comments:
I'd say, assuming the code works at all, there's definitely good code and bad code. Bad code is hard for others to understand and follow, hard to maintain and change. Good code is clear, self-commenting, etc.
"Right" and "wrong" ways of coding extend that to certain conventions. Of course, many people take on those conventions as if they were laws. In general, I think following the "right" conventions halps to make your code "good". If you are going to break the conventions, you should have a good reason to do so.
I generally hear about hacked code versus good code.
If the code works, and its a one-off no one else will need to maintain, hack code is working code is okay code. Its to be avoided, but sometimes its necessary. Going back later to do things "properly" is always nice.
Post a Comment