• Tester-AI
    • Artificial Intelligence(A.I)
      • Applications of Artificial Intelligence in Medicine
      • Artificial Intelligence Applications in Industry
      • Artificial Intelligence in Agriculture
      • Application of AI in the field of traffic
      • Application of AI in the domestic sphere
      • Artificial Intelligence in Education
    • Programmers Worldwide
  • 12. Developers mistakes
    • 1. Underestimating the importance of code quality
    • 2. Use of inappropriate data structures
    • 3. Deteriorate the code
    • 4. Commenting on obvious things
    • 5. To think if something works, it's done right
    • 6. Obsession with performance
    • 7. Not picking the right tools
    • 8. Misunderstanding the Relationship between Code and Data
    • 9. The Invention of the Wheel
    • 10. Incorrect attitude towards code inspection (code review)
    • 11. Wrong attitude towards mistakes
    • 12. Do not rest.
  • Benefits of the Tester-AI
  • Economic justification
  • Tokenomics
  • Roadmap
  • Conclusion
Powered by GitBook
On this page
  1. 12. Developers mistakes

6. Obsession with performance

"Premature optimization is the root of all evils in programming (or almost all)." Donald Knuth, 1974

Programming has come a long way since the time of Donald Knuth, but his advice still holds true today.

If you can't measure a perceived performance issue, then it's not worth your time to try and fix it. It's important to avoid optimizing code before you even start executing it, as this can lead to wasted time and effort.

However, there are some optimization rules that you should always keep in mind when writing code. For instance, in Node.js, you can't fill the event loop and block the call stack.

It's important to remember that in the pursuit of fictional performance gains, you can end up creating real bugs in unexpected places. So, it's crucial to be mindful of optimization and to prioritize writing clean, organized code that avoids common mistakes.

Previous5. To think if something works, it's done rightNext7. Not picking the right tools

Last updated 2 years ago