Recently I have gone through some of my old code and have found many programming nightmares. I, as with many other coders when starting out, tend to make the program work and care about practically nothing else.
I mean the client we are doing this for doesn’t ever see our code, so to them it all works fine. But….What happens when the client comes back and says “I need this changed”. And then you go back and think no big deal I just change this one SQL statement.
Then you go into your code and find this EXACT same SQL statement in many different places. Well now you need to copy and paste this into these areas. Well what happens if some error occurs with your replacements. Now the error could be anywhere.
Welcome to the horror of a programmer who needs to change code previously made by another programmer. What can you do you ask? Well the following are a few points that will help down the road.
I hope the above points you in the right direction and helps you become a better programmer ![]()
Please use our Contact Form if you have any comments or questions.
It’s also a good practiCe to run your web pages through a spell checker.
October 18th, 2008 at 10:23 am
Nice and succinct article!
“Me, as with many other coders when starting out, tend to…” should read
“I, as with many other coders when starting out, tend to…”
October 20th, 2008 at 11:41 am
Nice blog.Mainly it is very imp to comment your code especially if you are like me maintaining other’s code. ![]()
Thanks
prashant
http://www.prashantjalasutram.blogspot.com
October 20th, 2008 at 11:43 am
I’m glad you liked the blog entry.
Twitter
Create URL Shortener For Twitter Using PHP | Brenelz Web Design Solutions http://bit.ly/9OIZt5 #tech #php
RSS Feed
Keep up with all of our updates by subscribing to our RSS feed!
FaceBook
Join our group on Facebook and become a fan of us!