Subj : Indentation in source code files
To   : jagossel
From : Nightfox
Date : Fri Aug 25 2017 11:25 am

 Re: Indentation in source code files
 By: jagossel to Digital Man on Thu Aug 24 2017 09:42 pm

ja> Very hard to choose... Where I work, the ABSOLUTE coding standard is tabs,
ja> amd that is taken very seriously.

ja> However, my personal preference is 2 spaces.

My workplace doesn't have a policy on it, but I tend to use tabs.  For my
personal projects, I used to indent with spaces (I usually used 3 spaces), but
I've started using tabs.  It seems easier to be consistent when using tabs, and
also with tabs, editors often give you the option on how much space it will use
to represent a tab.  For my Synchronet scripts/mods, I used to use Notepad2 (in
Windows) to edit them, and eventually switched to Notepad++.  Notepad++ made it
more obvious that indentation was inconsistent in many places - Some code had a
mixture of tabs and spaces, which was hard to tell with Notepad2 because they
looked similar and the indentation looked good with Notepad2.

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com