Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy coding conventions

I would very much like that you would use real tabs for indentation. And never use tabs for anything else. It does not matter what value for tabs you use. Linux kernel coding conventions have not yet figured it out, but it is possible to write sourcecode which looks perfectly good with variable tab settings. The way to do it is to:

For other things (naming, layout..), you have two options. Use consistently your own conventions; this is fine - or look at my source code. It is not good example at some places, but looking around here and there you should get the idea. One thing is that I hate is prefixing class names with C, but I can live with that if you really have to do it.

I would like to have one class per .h / .cpp file. Large classes can be divided into several .cpp files.