3 ms·
"write clearly -- don't sacrifice clarity for 'efficiency'" "make it clear before you make it faster" "make it right before you make it faster" "keep it simp
by whytheplatypus 7y ago
"write clearly -- don't sacrifice clarity for 'efficiency'"
"make it clear before you make it faster"
"make it right before you make it faster"
"keep it simple to make it faster"
From "The Elements of Programming Style" by Kernighan and Plauger
Other than that maybe that naming is one of the hardest and most important things to do.
- notomorrow 7y agoGreat tips. Thanks. Do you have a suggested reading list?
- whytheplatypus 7y agoI've been enjoying "The Elements of Programming Style" by Kernighan and Plauger. Don't get put off by the references to Fortran, what they say applies to any language. "Structure and Interpretation of Computer Programs" by Harold Abelson, Gerald Jay Sussman, Julie Sussman is another standard. Martin Fowler and Robert C. Martin are both prolific. Coding takes practice, so once you've got some ideas on what you want you want your coding to look like add them to your practice and see how it goes.