Hacker News new | past | comments | ask | show | jobs | submit login

Premature and unnecessary optimisations.

I spent a lot of time optimising things and looking back it was pointless/a waste of time. But it did teach me how to write better code, since now I incorporate a lot of optimisations into my code for "free" because I simply know what makes things run faster (or how things are working under the hood).

They say the root of all evil is premature optimisation, and they may be correct, but it does teach you a thing or two about how your code runs. In particular in higher level environments where there is a dozen levels of misdirection before it hits metal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: