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.

But I already wrote it

41 pointsby Nemmiealmost 12 years ago

7 comments

jerlucalmost 12 years ago
Although I tend to agree with the author&#x27;s sentiments here, there is one important distinction that ought to be made here: more features&#x2F;capabilities != more code != more complexity.<p>In my experience developing both in net-new codebases in addition to large legacy codebases, there certainly are cases where better abstractions&#x2F;paradigms equate to less code, and ultimately to less complexity. Yet at the same time, these improvements tend to yield more flexibility and capability, potentially providing additional features (sometimes entirely by chance). I find that in these such cases, it actually becomes easier to reason about what your code does, because you have come to a point where you can clearly generalize about your software.<p>On the flip-side, I can also greatly empathize with the author, as even in my attempts to generalize the functionality of software, there often exist ugly one-off bits of critical business logic that invariably dirty the water. In these such situations, it seems to become harder and more complex to build generic code, and you are much better off just sticking to the straightforward implementation without allowing for any of the bells-n-whistles that a more generalized approach might offer.<p>TL;DR--It really depends on the situation, in my opinion, but this shouldn&#x27;t prevent you from trying to find a generic solution that is less complex yet offers more.
wldlyinaccuratealmost 12 years ago
Many otherwise good developers I know struggle with this. The best way I&#x27;ve found to combat it is to pair with them during high-level design&#x2F;dev, and code review early and often.<p>This works if you&#x27;re in a position of power, but sadly even some senior and lead developers seem to struggle with it.
nextweek2almost 12 years ago
A colleague of mine likes to short cut a customer discussion about features by suggesting &quot;We just add an option&#x2F;tick box&quot;. He knows I hate him saying that but he feels happy everybody thinks he&#x27;s found a solution. When infact he&#x27;s just creating technical debt.<p>I distance myself from those that don&#x27;t take my advice. It&#x27;s easier on me.
评论 #6233778 未加载
评论 #6234663 未加载
aggronnalmost 12 years ago
In this case, would you refactor by removing only the components in the interface, or would you ask them to just delete everything extra wholesale?
评论 #6236184 未加载
rasuralmost 12 years ago
There&#x27;s an acronym for this: YAGNI<p>You Ain&#x27;t Gonna Need It.
mesozoicalmost 12 years ago
How has no one yet shunned the author for writing poor documentation. Sure you can just throw the code away but ultimately his time was wasted. He probably wants to keep it for the next time they write poor documentation that actually does need that feature.
gaileesalmost 12 years ago
Couldn&#x27;t agree with this more. So many developers I know let sunk costs influence their actions and it stifles their ability to innovate.