Skip to content

Coding convention Geek-code


Discussing Java vs C# coding conventions, I got an idea:
Geek code for a coding conventions.
Like:
-----BEGIN GEEK CODE-CODE BLOCK-----
GP:java,c,cpp,haskell
Off:2S P:N Name:Camel Flex:2
------END GEEK CODE-CODE BLOCK------

which means:

  • GP:java,c,cpp,haskell – geek of programming languages (listed);
  • Off:2S – prefer 2-space offsets;
  • P:N – place parentheses on new line (opposed to S – same);
  • Name:Camel – prefer camelCase;
  • Flex(0,1,2) – I’m flexible on this and can easily accept other’s conventions.

This will help others to see what you prefer an not (?) to start stupid holy arguing.

Post a Comment

Your email is never published nor shared.