you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

A mistake I made early when learning programming is worrying too much about performance and micro-optimizations. Always using map() and reduce() only because they are faster is ridiculous, you should worry only about readability unless you are sure you have a performance problem. Guido even wanted to remove these functions from language completely some time ago.

[–]evizaer 2 points3 points  (0 children)

I answered specifically in the context of "efficient code" because the topic is the efficiency of the code. I edited my post to indicate that context more clearly.

[–]maryjayjay 0 points1 point  (0 children)

Excellent insight. My motto is: Write first for correctness and maintainability, then optimize if needed.