Free Association

Polymath

Formatting code… you do you, I’ll do me

Written by

June 18th, 2010 at 11:43 am

Posted in Coding

Add the first comment!

There’s a guy hijacking the comments section at a popular WordPress plugin site to promote his opinion on code formatting.

Sets my teeth on edge it does!

Here’s some basic rules:

  • He or she who writes the code calls the formatting. Unless…
  • Code contributed to a larger project should adhere to the project’s formatting, and …
  • If you’re writing the checks, you get to specify the formatting system.

Super easy!

I had to let a coder go once because that person insisted on using an outre formatting system (for c++), and the code wasn’t good enough for me to deal with it. That is, I needed to rewrite and reorganize the code after delivery. Extensive discussion resulted in more extensive discussion… waste of time.

Note: Whenever possible, I site read code, so I depend on the geometric shape of code blocks to give me information. That’s me, that’s what I do. You can do whatever you want.

© 2009-2012 David M Doolin All Rights Reserved -- Copyright notice by Blog Copyright