Nicholas Brown is a recognized authority on the subject of Access Databases. He is the founder of Database Technology Services (DTS). DTS is a leader in custom Access database development. DTS programmers create databases for corporations, small businesses and individuals. Visit www.dts-consultants.com to see all of the services DTS has to offer.
At some point every programmer has experienced it; returning to code written days or months before, you find yourself unable to remember why you wrote the code the way you did and what it was for. Nothing can be more frustrating or more time consuming than having to step back through code and figure out what was going on. There is, however, a way to reduce the risk of this happening again. Adding comments to your source code may seem like a waste of time now, but when you have to go back to a chunk of code months down the road, you will be very thankful you took the time to add a few explanatory comments.
If you have decided to start investing time placing comments in your code, allow me to give you a few “pointers” that will allow your comments to have the greatest impact. The first thing I do is place myself in the position of someone who has never seen that particular code before. I try to imagine I am this person, trying to figure out what the code before me is intended to do. I start out at the beginning of the code with an explanation of what the overall code is trying to accomplish. This will give the reader at least some idea as to what the code is intended to do.
Next, I give a brief description of what each variable’s role is in the code (i.e. counter, output, etc.). The person reading the code could eventually figure out what each variable is doing, but it is easier if you just spell it out for them.
Finally, I add the date. This is an extremely important step. It is extremely likely that sooner or later you will need to make revisions or corrections to your code. By including dates, you and others can see which pieces of code are the newest and which are the oldest. This can be extremely beneficial when debugging programs. I add a date, never erasing previous dates, each time I begin working in a piece of code. I also include a brief description of what was changed and why. This makes for a great reference log for later.
Many programmers find themselves reusing their code in different situations. Adding comments can help locate those needed pieces of code more quickly, saving valuable time. The important thing to remember with comments is that it not only benefits others, but will greatly benefit you in the future. Happy commenting!
- Related Videos
- Related Articles
- Ask / Related Q&A
- Career Development Programs - Tips On Early Career Planning For Children
- Easy Content Development Program © - Read Before You Buy!
- Free Article Development Program © - it is Finally Affordable!
- Top Article Development Program © - Don't Miss This Out!
- Article Development Program © - Easily Write Original Text!
- Articles Development Program © - Stop Paying for Unique Text!
- Content Development Program © - the Amazing Facts!
- Top 10 Training Best Practices for Effective Learning and Development Programs




Sending SMS Alerts in SharePoint 2010 over Office Mobile Service Protocol (OMS)
By: Virtosoftware | 12/11/2009Finally it's possible to send SMS directly from SharePoint to mobile phones. This feature was only available in some add-on components before.
Forbidding the Clipboard for the specified process
By: Apriorit Inc. | 11/11/2009Though the Clipboard is one of the fundamental parts of the Windows operating system, there is little information about how it works, especially in the low level. In this article, I’m going to tell you something about the Clipboard internals by showing how you can forbid access to it.
How to save money from fixing computer?
By: janson | 11/11/2009Are you familiar with these problems in your computer below? Mysterious errors, crashes and restarts Sluggish internet and download speeds Trouble loading songs, movies and programs Do you tire of frequently bothering friends for help, or worse, paying a professional to fix your computer? Like a car, without regular maintenance computers begin to accumulate errors that cause slowdowns, crashes and even potential system failure.
Learn Java Easily With an IDE
By: Alberto Pareja-Lecaros | 11/11/2009Want to learn Java even more quickly than you currently are? IDE's are not just for professionals; learn how you can use an IDE to teach yourself Java even more easily, even if you're an absolute beginner! There are many advantages to using an IDE, why torture yourself by using a standard text editor when you can use the power of an IDE to learn Java even more easily?
Benefits of digital photography-why digital photography is booming?
By: hdrmiar | 11/11/2009This article shows you some benefits of digital photography and makes an outlook of future development of photography.
Basics of C programming Language
By: aditya | 10/11/2009A programming language is designed to help in processing of certain data and to provide useful information to the user. There are lots of programming languages today that satisfy different needs of the user. For example: C, C++, Java, SQL, HTML, JavaScript etc. It helps to write a sequence of instructions that the computer can understand.
Programming
By: Julia | 10/11/2009“E-Worlddesign” "BizicoSoft"
PassQuick Nortel 920-146 Study Guide
By: calomi | 09/11/2009There are so many websites on internet that are providing knowledge, study material and information about the Nortel 920-146 certifications, but there is one problem that the information that is provided by these websites is not of high quality and up-to-the-mark. Passquick is one website that provides you related, high quality and up-to-the-mark information, knowledge and study material about Nortel certifications.
Database Design Basics by Nicholas Brown
By: Nicholas Brown | 21/10/2008 | DatabasesTips and tricks on designing and implementing a database that can handle everything you demand.
Product Delivery: Think Like the Customer by Nicholas Brown
By: Nicholas Brown | 15/10/2008 | Customer ServiceTips and tricks on delivering a product or service that meets all of the needs of your client.
Ms Access Databases Don't Have to Look Unprofessional by Nicholas Brown
By: Nicholas Brown | 30/09/2008 | DatabasesTips and tricks to help maximize the usability of your database by improving the user interface.
Using Comments in Your Programming Source Code by Nicholas Brown
By: Nicholas Brown | 30/09/2008 | ProgrammingSave time and money by adding comments to your source code.
Importing External Access Database Tables Using Visual Basic by Nicholas Brown
By: Nicholas Brown | 18/09/2008 | ProgrammingA brief how-to on importing external database tables using Visual Basic code. This tool can help users to automate their databases, saving time and money.
Pulling Data From Multiple Tables Into a Single Query in Ms Access by Nicholas Brown
By: Nicholas Brown | 17/09/2008 | DatabasesA brief how-to on linking multiple tables within a single query. With this tool, users can develop more complex queries, reducing the need for several queries. This will also reduce the size of the database making it more efficient and easier to navigate.
Becoming an Expert Ms Access Database Programmer
By: Nicholas Brown | 11/09/2008 | ProgrammingTips and tricks on becoming your own Access database expert. Follow these guidelines and you will be well on your way to becoming a leader in database development.