For the most part, programming languages are remarkably precise. Even the smallest deviation from the norms of the language can result in some serious syntax and contextual errors.
This isn’t as much of an issue with modern languages, as some are designed to be both written and read like regular English. This includes languages such as COBOL, AppleScript, Inform and more. However, some of the older languages can be incredibly complex to translate just by looking at active code.
There is one component that makes reading code more bearable, particularly in smaller segments. As you might have guessed, it has to do with comments, also referred to as “commenting out” code.
Comments — often denoted by a specific tag or symbol — are not read by the development environment or finished application. Instead, they exist only to guide someone reading through the active code.
For example, you might include a comment that explains what a snippet is used for, describing the name of an object and its parameters and what it does. Front-end IT professionals also use a similar strategy when working on projects that involve multiple sets of eyes.
Being able to rely on a consistent, common language ensures that, regardless of background or …
Read More on Datafloq
Comments are closed, but trackbacks and pingbacks are open.