Irregular Webcomic!

Archive     Blog     Cast     Forum     RSS     Books!     Poll Results     About     Search     Fan Art     Podcast     More Stuff     Random     Support on Patreon
New comics Mon-Fri; reruns Sat-Sun

Poll Results

Poll 440: When you write computer code, what is usually your second highest priority?

Total votes: 4391

I don't write computer code: 1726 (39.3%)
It is robust to all possible inputs: 420 (9.6%)
It is well-documented and easy to understand: 367 (8.4%)
It is elegantly designed: 298 (6.8%)
It is easy to maintain: 243 (5.5%)
It is written as fast as possible: 232 (5.3%)
It gives the correct answer/behaviour: 186 (4.2%)
It is impossible for anyone else to understand, ensuring my job security: 182 (4.1%)  
It is easy for a user to understand and use: 163 (3.7%)
It is compact, using as few lines of code as possible: 152 (3.5%)
It runs as fast as possible: 120 (2.7%)
It is easy to re-use: 120 (2.7%)
It makes clever use of language features: 48 (1.1%)
It uses as little memory as possible: 42 (1.0%)
It implements lots of cool features: 37 (0.8%)
It has a cool-looking user interface: 36 (0.8%)
It runs on many platforms: 19 (0.4%)

I was prompted to post this question by an incident that occurred at work recently. We have a mailing list where people send in their software problems so other staff with the right knowledge can help. I posted a question asking how to do something in some programming language (Python, if you're curious). One of the responses I got back included the comment that I had some serious issues with my code design. My response was that I was employed as a researcher, so my priorites when writing code are very different to those of software engineers.

My first priority is that the code I write does the right thing - it gives the correct answers. I thought that would be the first priority of anyone who writes code (but I guess not from the people who answered this question that it's their second priority). My second priority - by a huge margin - is that I get the code written as fast as possible.

Much of the code I write is only ever going to be run 2 or 3 times. It's not going into any sort of production system where it needs to handle strange inputs, or fail gracefully, or be easy for users to understand, or be easy for even me to understand a month from now. It doesn't need to be efficient as it runs. If it takes 10 minutes to run, that's fine, even if it could be optimised to be run in a fraction of a second. Because the critical thing in my job is that I get the research done, then move on to the next problem. If it takes me an hour to write code that takes 10 minutes to run, that's twice as good as spending two hours and 20 minutes writing code that does the same thing in a second.

I realise many, if not most, of the people who write software have different end goals, and thus different priorities. So I was inspired to post this poll to see what the breakdown was.


My comics: Irregular Webcomic! | Darths & Droids | Eavesdropper | Planet of Hats | The Dinosaur Whiteboard | mezzacotta
My blogs: dangermouse.net (daily updates) | 100 Proofs that the Earth is a Globe (science!) | Carpe DMM (long form posts) | Snot Block & Roll (food reviews)
More comics I host: The Prisoner of Monty Hall | Lightning Made of Owls | Square Root of Minus Garfield | iToons | Comments on a Postcard | Awkward Fumbles
© 2002-2024 Creative Commons License
This work is copyright and is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 4.0 International Licence by David Morgan-Mar. dmm@irregularwebcomic.net