Formatting – Horizontal Formatting

What is the maximum length for a line of code? A long time ago, monitors were only capable of showing only 80 characters per line so that was the limit. Currently, with widescreen monitors and small fonts you can have lines that are definitely way too long. According to the book clean code, most lines…

Continue reading

Formatting – Vertical Formatting

Continuing our series on formatting we will first address the concept of vertical formatting. File Size How many lines of code should a file have? This is a question that people can start a very “interesting” conversation. Some people prefer very short files while others have no problem with files that have more than a…

Continue reading

Formatting – Why it’s important

Think about visiting a restaurant where the food is excellent, but the kitchen is a mess. Even if you loved the meal, seeing the kitchen will make you think twice about eating there again. Another example that is closer to the computer world is data centers. Look at the following picture. Which network installation do you…

Continue reading

Comments – Bad Comments (Part 2)

In this post, we continue with the examples of bad comments. Position Markers Sometimes people put a comment marking an important place in a file, or to separate the sections (variable definitions, methods, etc.) inside the file. This is something that should only be done in special cases, since overuse can just make the comments…

Continue reading