E.G. I was reading some source code recently.
and someone had the code.
array = "name1 name2 name3 name4 name5".split()
Which is really fast/easy to write. While if I had written the code I would've went.
array[0] = name1
array[1] = name2
etc...
Which takes way longer!
So I was wondering where I could find some writing efficiency tips. Or you can post some if you can think of them.
I program mostly in python and C
edit1: I make programs for personal use so runtime isn't that huge of an issue unless it hurts the useability.
edit2: So coding time is more important than a 10% faster runtime.
edit3: @kevin shorter, not cryptic one liners but things like your suggestion, (thanks)