Mohsen Deeb wrote: > Hi All; > > Does anyone know a good tutorial covering code styling in C? > > Thanks and best regards > > Mohsen > > On Jul 2, 2009 3:59 PM, "Ian raja" <[email protected]> wrote: > Greetings all ...
Don't hijack other threads. Users with threaded e-mail clients will see this thread show up under the other thread. To answer your question, each person's coding style is different. I'm extremely picky about my code. My biggest pet peeve is whitespace consistency. I constantly find code that someone else has written where they have alternated between tabs and spaces in the same document. Those same people also have the tendency to do stuff like this: a =(b*c)+d /(3 +x-2); Instead of formatting it nicely: a = (b * c) + d / (3 + x - 2); Get a few hundred lines of the first example in a single document and it becomes an unreadable bunch of gobbledygook. I hereby refer you to: http://headrush.typepad.com/creating_passionate_users/2006/03/code_like_a_gir.html I code like a girl (and I'm proud of it!) because I will modify my code until it looks beautiful. Writing code is an art, not science. C++ is my paint, the IDE my canvas, and the resulting application my joy. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
