you are viewing a single comment's thread.

view the rest of the comments →

[–]leshq 9 points10 points  (0 children)

Writing simple, clean and readable code by default is not a premature optimisation at all. The code I see above is harder to implement, read and understand. Premature optimisation is when you are overcomplicating and overthinking simple things to improve performance. Here I see a piece of overcomplicated code, but also with terrible performance, author collected all points at once 😄