TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Avoid OOP (Overzealous Optimization Programming)

7 pointsby p0larboyover 10 years ago

3 comments

NewsReader42over 10 years ago
I don&#x27;t know where to start.... Telling people to not write fast code for the sake of other people checking that code is absolute madness. The code is ran thousands or millions of times per day and is the obvious choice to lean toward when optimizing instead of leaning toward optimizing for some theoretical idiot who likes to read lines of code in a fast and efficient manner to do his job.<p>This job may be ran once or twice a year which is nowhere near the amount of savings in various computational power &#x2F; hardware etc compared with the wages of some geek who simply can&#x27;t be bothered to do his job well.
kghoseover 10 years ago
The advice I&#x27;ve always been given is that speed optimization is a second step after writing your code in the idiomatic, easy to read and maintain way. The optimization is done after profiling to find out where the real bottlenecks are for your application.
namuolover 10 years ago
By the same token, don&#x27;t worry too much about writing &quot;maintainable&quot; code before you actually start solving the problem at hand.
评论 #8412044 未加载