« Girl Power | Main | IQ points »

Plead to programmers

I ask, no, I beg if you do nothing else with your code, please, please, please format it properly.

I don't care if it works.
I don't care if there is error handling.
I don't care if it compiles.

I care if it's formatted properly.

Why?
Because re-formatting code just so I can read it takes me more time than fixing bugs in it.
That's why.

Indentation, spacing, break up long lines, logical variable names, avoid global variables, avoid duplication of code, avoid excessively long methods.

Thank you.

TrackBack

Listed below are links to weblogs that reference Plead to programmers:

» Format your code from Live from Tokyo: Tech Blog
I'm convinced that inconsistent formatting and debates about which format to use are much bigger time waster than the gain or lack of productivity between one style or another. [Read More]

» MLP, guest starring Neal Stephenson from markpasc.org
I honestly didn't realize MLP *were* my initials. [Read More]

Comments

Damn you broads. First I gotta clean up my socks. Now I gotta clean up my code?

Noted for future reference when I become a programmer...

let me just add that while i'm obsessively anal about how i indent /my/ code, i really don't care how anyone else indents theirs, as long as it's consistent!

the entire file should use the same style people!

Oh heck, I don't care how they indent either, as long as they *do* indent and are consistent :)

You could use python :) where indentation is necessary and resistance is futile.