SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

All the source of the linuxconf project are indented with a TAB stop set to 4, not to 8. If you fail to set your editor to this setting, you won't like what you see.

TAB stop set to 8 is not appropriate now. It used to be when variable names were limited to 2 or 6 (old fortran and C). I am not advocating for endless function name, yet we often get identifier (especially function) longer than 10.

In linuxconf, many non member function do have a prefix which tie them to a system or a source: For exemple, netconf_startstop(). This makes the function easier to name and easier to locate. This makes also a pretty long name. This is also a pretty standard naming convention for large project. With tab stop set to 8, even simple functions (2-3 level of indenting) starts to wrap the 80 columns one generally use in his editor. Annoying. This is so because line are longer, not because the functions are overly complicated.

The big point about this TAB stop set to 4 instead of 8 is not to convince you that I am right and you should change your habit. It is to convince you that you won't convince me :-)

Please don't reindent the source of linuxconf, especially if you intend to contribute.

Thanks!


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.