Coding style

From GNUstepWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Everyone has their own coding style preferences, and many people will be happy to tell you that other people's styles are insane/unreadable. Since we use a standard style for GNUstep, the most common complaint you will hear is that the GNUstep style is unreadable... but if you look at the personal styles of the people complaining you will find a whole range, many of which you will find less usable than the GNUstep style.

In fact, the GNUstep style is a reasonably chosen variation of the GNU standard coding style (a variation because the GNU standard style is for C and Objectice-C is slightly different). Which means that it's mainstream enough that we can be sure there's no objective problem with it.

So laying aside any religious convictions about coding style ... the main point is that we need to stick to a common standard so that everyone working on the project can become familiar with the one style (no matter how different from the style they are used to it is), and we can therefore all work together effectively. New contributions must stick to the standard style.

One objection to the style is that it is unfamiliar to Apple/iPhone developers ... but we really want our code to look different to Apple's code as part of a constant effort to avoid any accusation of copyright theft ...not only must we be careful never to copy any of Apple's code, but our code must clearly look different.

Please read full details of coding standrds