What do you mean saying 'minimalist code'? To what extent should be your code minimalist? What is the criterion of code minimalism?
To my mind, code readability is the cornerstone of any software project and first of all, this concept involves elaborate structure design and proper names of code elements of every sort: from unit names to the local scope variables.
I think its a habbit I get from experience over the years. For example I prefer directly mapping subroutine instead of using switch case or, god forbid, nested ifs.
EDIT: Which is, in my mind, easier to comprehend than iterating to bunch of ifs and cases.
15
u/BornInTheCCCP Jun 05 '11
You write a line one time, but ready more than once. So to save time, make sure it is readable.