In defense of being premature

A case study [informed rant] on premature optimization with JavaScript anonymous functions

The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.

Example

v1
v2
v3
memory usage in MB
this.children = parentData.children.map((_childData) =>
new ChildVM(_childData)
)

Conclusion

Addendum: Example Methodology

execution time in milliseconds

P.S.

Software Engineer 👨‍💻 | Wannabe Writer ✍️ | History Buff 🏺 | Worldbuilder 🌍