Josh Adams, Sr. SE ColdFusion Specialist for Adobe, posted a blog about something that has been near and dear my heart: Scoping. In most languages, especially ColdFusion, my language of choice scoping the variables is crucial.
Golden Rule of Scoping: scope all references to all variables all the time
Makes perfect sense to me! But it got me thinking, the basic concept of scoping is simple, easy to implement, and lord knows it makes it easier to debug later. From a lack of scoping variable to not formatting your code to other complete lack of adherence to any kind of standards, sloppy code litters code bases across the Internet. I know that I have been guilty of these things in the past, but the more time I spent in the code and having to go back and maintain not only my code, but the code of other team members as well, the more I understand and appreciate the value of standards.
Standards are not meant to be obstacle to developers, they are there to try and ensure that the code deployed is stable, runs efficiently, and is easy to maintain. I find the older I get, the more passionate I get about trying to do things better than I did in the past.
How about you? Do you believe in code standards? Have you encountered resistance to implementing or adhering to them?