Levent Ozturk
Enter
Tabs It seems like Tabs in the code files are the most feared, most trashed and most misused but most useful items for a intact looking coding.

They are usually banned in most coding guideline documents. Even if not, engineers using tabs are treated like they have disease.

It is not the Tabs that are bad, it is inexperienced engineers misusing tabs. It also shows the inexperience of the team leaders that ban Tabs.

I have been writing code both SW and FW for over 20 years, I have a firm rule for how to use tabs and it works and it guarantees whoever looks at your code will feel the confidence and familiarity.

It is very easy and as long as you apply the rule strictly, your code will look much more professional.

Ok the rule is "Always use Tabs until the first character (non white), and never use Tabs after in the same line."

It is that easy. For continuation lines apply the same number of Tabs as in the beginning line and then spaces.

Tabs exist for a reason. Use them. Tabs allow engineers to view code as they are used to. Everybody has different preference on the depth of the hierarchy. Each engineer looking at your code can adjust it and it will all of a sudden look like their own.

I hope this helps. Enjoy Tabs.

All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map