Whittling down a function to accomplish the same result with fewer instructions is, unfortunately, fun. It’s a mind teaser in the same way that crossword puzzles and Sudoku are. Yet it’s a waste of time to finely hone a C++ routine that would be more than fast enough if implemented in interpreted Python. Fortunately, there are plenty of other targets for that optimization instinct, and it’s worth retraining your habits to give these aspects of your projects more attention:
Power consumption, battery life, heat, and fan noise.
Number of disk sector writes (especially for solid-state drives). Are you rewriting files that haven’t changed?
Overall documentation size and complexity.
How much time it takes to read a tutorial—and the engagement level of that tutorial.
Number of bytes of network traffic. The multiplayer game folks have been concerned with this from the start, but now almost every application has some level of network traffic that might go over non-free phone networks or through slow public Wi-Fi.
#include file size. This is more about the number of entities exposed than the byte count.
Number of taps/clicks it takes to accomplish a task.
App startup time.
How long it takes to do a full rebuild of your project. Or how long it takes to make usability tweaks and verify that they work.
The number of special cases that must be documented, either to the user or in your code.
Blog entry length.
(If you liked this, you might enjoy “Avoid Premature Optimization” Does Not Mean “Write Dumb Code”.)
Categories: Blogs Programming in the 21st Century
Erlang on Twitter
» phuteradhimas (phuteradhimas): @doni_erlang lo tuh gemini sesuka sama jenis haha
@doni_erlang lo tuh gemini sesuka sama jenis haha
» pdincau (pdincau): RT @cemerick: A History of Erlang, by @joeerl [PDF] http://t.co/MPjXwbIjrW
RT @cemerick: A History of Erlang, by @joeerl [PDF] http://t.co/MPjXwbIjrW
» sandyprabowo0 (Sandy Prabowo): Kau lah dewa erlang haha dasar iwan RT @nabawi_imam: sandyprabowo0 kau adiksa :p
Kau lah dewa erlang haha dasar iwan RT @nabawi_imam: sandyprabowo0 kau adiksa :p
» erlang_kayla (erlang nugraha): Terus berusaha kawan… Fokus dgn tujuan awal :)
Terus berusaha kawan… Fokus dgn tujuan awal :)
» Sari1Rini (Rini Anita Sari): Hiiih ternyata doni jorok sekali -___- RT@doni_erlang: Ngantuk pkek bgt, tp blm mandi hha”
Hiiih ternyata doni jorok sekali -___- RT@doni_erlang: Ngantuk pkek bgt, tp blm mandi hha”
» Muh_Erlang (M. Erlangga Pangestu): @nabilahJKT48 nab boleh minta pin nya nggak ?
@nabilahJKT48 nab boleh minta pin nya nggak ?
Number of aggregated posts: 10650
Most recent article: May 20, 2013
» Moraru on This is Why You Spent All that Time Learning to Program: It is true that computer science was a pain in the back at time that i’ve had to learn it…
» Commercial hand dryers on Couchbase Meetup at new HQ: Buy online from here where you will get so much of variety in Commercial hand dryers for people. If you…
» Fort McMurray Homes on Motivated Reasoning and Erlang vs Python vs Node: I don’t really understand why this post is motivational? I don’t even see a post, just a title. Fort McMurray…