Adam McKerlie is a 20 year old University student currently studying at the University of Guelph. He spends his time writing tutorials and articles on programming, computers and internet related things
Debugging is twice as hard as writing code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - Brian Kernighan
If you’ve been programming for any length of time I’m sure at one time you’ve had the pleasure (or lack thereof) of wading through another persons code. It is definitely not a pleasurable journey when the code is new, written with the newest standards; but when the code is legacy it can be a downright hair-pulling experience.
The problem with a lot of code is that it isn’t written in a maintainable way. Now you may ask, what is “Maintainable Code”? Maintainable code is purely code that can easily be maintained throughout the years and on different platforms. If you asked 100 people that write code for a living you would probably get 100 different answers on how to write your own maintainable code. Below is a list of things that can help you make your code more maintainable.
1. Good Use of Comments:
Commenting your code is extremely useful if you do it in a good way. I’ve already written about commenting in “The Art of Commenting” and the article does provide a bunch of good tips on how to comment your code but it doesn’t really say why it’s important. When a person reads another persons code they really have no idea what the original programmer was thinking. Comments (when done right) provide a great insight into the mindset of the code’s owner, providing an idea of why (s)he wrote the loop structure like they did or why they included that certain function.If the writer of the code did comment properly you’ll be able to update the code to the newest standard without to many troubles. Since commenting code for many programmers is an afterthought or at least not their highest priority, you know that if the comments are good then the rest of the program is probably written in good form as well.
- Related Videos
- Related Articles
- Ask / Related Q&A
- PhotoShop Tutorial - PhotoShop Tutorial to Turn Your Photos into Watercolor Paintings
- Online Java Programming Tutorial
- Online Mathematics Tutorials- Modern Approach of Attaining Education
- Learning with PhotoShop tutorials
- Making The Most Out Of A Photo Shop Video Tutorial - What Can It Offer?
- Grab That Photoshop CS Tutorial
- The Benefits Of Getting Cs2 Free Photo Shop Tutorial
- Adobe Photoshop Tutorials




Integrating facebook in cakephp
By: Digisha Modi | 30/12/2009FaceBook Application is the powerful tool of marketing or to connect people for all type of business. Now it's easier to find social applications on Facebook, on your phone, and on external websites. The new "Featured by Facebook" section highlights Facebook's favorites. Since 2007 the kind of concept FaceBook has come up with become a unique challenger to established payers. The benefit of FaceBook application is any one can post their own application with out any cost.
Outsourcing of iPhone Application Development Offers Profits for Developers as Well as Users
By: Arun Kumar | 30/12/2009Being a 3G phone, it offers users the advantage of thrilling web access which helps them being on top of all online activities even on the move. Also, there are several additional applications available for download for the device. Thanks to the efforts of the outsource iPhone application development firms which have helped iPhone users get more with their devices using the apps developed by their expert developers.
Magento Template Integration
By: Digisha Modi | 30/12/2009If you have purchased Magento template or simply need to integrate an existing graphic design template into your e-commerce shop we will integrate it into Magento for you. A web template is a ready- made web design need to be integrated. Usually web templates make possible a standardized layout (page arranging, colors, positions, etc.) for different web contents while using the same basic layout.
Magneto Template Designing
By: Digisha Modi | 30/12/2009If you want your magento store to be very attractive and user friendly then we at Biztech Consultancy do it for you. We help in customizing the appearance of your Magento e-commerce store with Magneto’s powerful theming engine. Basically Magento theme is combination of layout, template and/or skin file(s) that create the visual experience of your store.
Pass4side 000-135 practice test
By: Adela1987 | 30/12/2009Pass4side 000-135 Details: Pass4side is your source for the IT Exam 000-135 exam. With our 000-135 Exam Resources, you can be rest assured that you will Pass your 000-135 Exam on Your First Try. Our Exams are written and formatted by Top senior IT Professionals working in today is prospering companies and data centers. All of our practice exams including the IBM 000-135 exam guarantee you success on your First Try. 000-135 is a challenging exam,with our 000-135 study guide,you can feel safe wit
Open Source Development
By: Digisha Modi | 30/12/2009Open Source Software are free applications released under special licensing terms where the core coding is viewable and able to be edited to suit the needs of the user. Open Source applications cover a myriad of uses - from entertainment to enterprise ecommerce. Open source software like Joomla, magento and osCommerce are very popular and widely used. They are content management system and it maintains track of every piece of content including music, videos, text, widgets, images and documents.
Cakephp PhpBB Integration
By: Digisha Modi | 29/12/2009PhpBB Forum is a popular bulletin board script written in the server side scripting language PHP. Installable on most web servers, it is free open source Framework available under the GNU public license. The software allows website and forum administrators to set up unlimited number of forums and categories. It is also possible to create users, moderators and user groups with varying degrees of permissions.
Cakephp Amazon API Integration
By: Digisha Modi | 29/12/2009The Amazon Web Service lets your cakephp web applications make queries to the huge database of products at Amazon and extract as much information as you need. The information you get in your application is exactly the same that is available on the Amazon website at that instant. The Amazon Web Service returns data in real-time, and updates automatically.
The Art of Writing Maintainable Code
By: Adam McKerlie | 06/09/2007 | ProgrammingUnmaintainable code is a big problem in the business world (where programs can cost millions of dollars). Knowing how to write maintainable code is a great way to solve these problems. This programming tutorial provides three tips on writing maintainable code.
History of the C Programming Language
By: Adam McKerlie | 16/08/2007 | ProgrammingThe C programming language was first developed between 1969 and 1973 by a team from Bell Telephone Laboratories. Many of the principles and ideas used in this language were...