Hodgeblot

Programming

A 21 post collection


Don't be a "Did it work? Yay! Ship it!" coder

 •  Filed under Programmer, Programming, Software, Software Development

I'm working on a longer post on what it means to write high quality code, but until that's done, I wanted to call out what I see as the tell-tale sign of less experienced programmers. It's when you see that "Did it work? Yay! Ship it!" quality to code. Let's call the person who does this, the DIWYSI coder.

So what are the signs of the DIWYSI coder?

The most obvious sign is lint, lazy writing or code structure, and lots of notes to self that never get acted upon. I don't mean that code has to be perfectly structured. I'm really not a perfectionist. It's just that someone who is only trying to get the code working and not thinking of other programmers is going to just hack, hack, hack, and once it works, commit and move on.

This kind of code often looks like:

    const thing = function someFun(){
      If ( something)
          // How does this even work?!?!
          {
             Do_the_thing() }
    };

This is exaggerated, of course, but it's not far off some stuff I've seen.

Keep this in mind -- great code is much more than just writing something that runs correctly. "Did it work?" should be the first question you ask, not the only question. If it doesn't run, then yeah, it's not good. Anyone working as a programmer today ought to be able to write code that runs. Writing code that runs and that another programmer can pick up and understand is much better.

Software engineers should write - by Shubhro Saha

 •  Filed under Writing, Programming, Code, Language

Software engineers should write - by Shubhro Saha

The engineers I meet today cringe at the thought of writing an essay. And the writers I meet cringe at the thought of writing code.


What a shame! An engineer who writes code should also write essays.

As a software engineer with an English degree, I couldn't agree more. This math vs english kids debate is silly. It's all writing, in some form or another, and skill with one doesn't preclude skill with another. Here, here!

5 Qualities That Make A Great Programmer

 •  Filed under Life, Coding, Programming, Skill

5 Qualities That Make A Great Programmer

What a great list. Notice that these are all mental, social, and emotional traits, which run counter to the stereotype of the programmer as an emotional shell of a person who can only interact with the computer.

Sure, geeks are often introverted, but the truly great coders build empathy, communication, and character alongside their programming skills.