The 7 Habits of Highly Ineffective Programmers – Young Coder – Medium

The 7 Habits of Highly Ineffective Programmers

Are you committing crimes against code?

Matthew MacDonald
Dec 5 · 4 min read

Adapted from Pixabay

It’s always good to refactor old code, put modified routines through rigorous tests, and brush up on the latest hot new JavaScript framework. But now it’s time to look at the other side — at the cowboy coders and corporate clock-punchers who keep alive some of the worst programming practices you’ll ever see. This is a list of the seven worst programmer rules. Sadly, you’ll regularly find them at work in the real world.

0. Keep secrets

To pull this off, be prepared. Junior devs will ask you questions. You will lead them on intricate guessing games, with occasional dismissive snorts and cryptic comments like “we’ve obfuscated that.”

Yes, you could share your knowledge, learn from each other, and grow together. But if the goal is maximum job security with minimum effort, your optimizing function leads here.

1. If in doubt, add another design pattern

Also, an obfuscated bug means you have plausible deniability. Who even knows who’s fault it is?

2. Worship what’s new

New technology gets everyone excited. The old stuff may still work, but overnight it’s an embarrassment. Remember “does it still work” is secondary to “does it impress anyone at conferences?”

If you’re clever, you can get paid to write the same software several times over, using different libraries and frameworks each time. And if you’re really nimble, you can jump to a new platform just before you have to reckon with the cost of your own spaghetti code. Constant change = a reasonable chance to outrun your bugs.

3. Don’t let testing get in the way of more code

Testing is a drag on efficiency anyway. Remember, Agile programming means never needing to say you’re sorry.

4. Write once, then don’t touch

It’s worth keeping the Pottery Barn rule of coding in mind. “If it breaks while someone else is holding it, then it’s their problem anyway.”

5. If at first you don’t succeed, copy, copy and paste

6. Comments are for suckers

This tactic also helps habit #0.

7. It’s the end user’s fault

If someone questions you, memorize this: Not only is this user interface the best, it’s also the only one possible based on the specs I was given. Don’t even bother to recommend changes — the client would never agree. Hold on, here’s a new feature request. We’re going to need another button.

(If this seems like an eighth point, then let me remind you that we do base-0 counting around here. After all, how else would people recognize that we’re Real Programmers™?)


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.