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.

I'm doing it wrong?

11 pointsby sdpurtillalmost 17 years ago

2 comments

swombatalmost 17 years ago
Yes, on many of those points, you're doing it wrong.<p><i>Whatever, it’s okay not to use a framework. And if you don’t count Smarty as a framework, then you really don’t ever need a Framework.</i><p>No, m'dear. It's not ok to not use a framework for non-trivial web applications where so many suitable frameworks exist. If you're writing a reasonably complex application, you are <i>always</i> using a framework. The question is just - which framework are you using? The one you cobbled together while focusing on building actual functionality, or the one that a lot of people have poured countless hours into to make it good?<p>Yes, you're doing it wrong.<p><i>Wrong. You do not need to use an ORM layer. If anything, your life will be more painful later as you figure out that many of your bottlenecks are abstracted out of sight and are hard to uncover.</i><p>Not using an ORM layer as a way to resolve future, unknown performance problems is an extremely stupid example of Premature Optimisation ( <a href="http://www.inter-sections.net/2007/11/08/premature-optimisation" rel="nofollow">http://www.inter-sections.net/2007/11/08/premature-optimisat...</a> ). Why don't you write it in assembler while you're at it? Then your code will be even faster.<p>Yes, you're doing it wrong.<p><i>Chris has clearly never used a Ruby Gem or CPAN or PEAR. Much of it is slow, buggy garbage.</i><p>I use gems and rails plugins every day. Whatever Chris may have used or not used, I find them extremely suitable for many tasks. If you're writing your own code <i>all</i> the time, you're wasting your valuable time.<p>You're doing it wrong.<p><i>If you rely on unit-testing, you are setting yourself up for a rude awakening.</i><p>If you believe that, you have never been awake.<p>You're doing it wrong.<p><i>If you spend half your time ensuring you DRY, you are wasting your time.</i><p>Half is a bit much, but Chris never mentioned half. Classic strawman. If you don't spend any of your time refactoring your code, you're doing it wrong (I can do strawmen too)<p><i>If only because I worry that some of the smart-but-inexperienced YC folks might actually believe what he writes.</i><p>Don't worry about us, worry about yourself.
评论 #262685 未加载
评论 #262543 未加载
ajrossalmost 17 years ago
Shorter version: pedantry sucks. There was little to no insight in the original, it's just a list of stuff that can reasonably be argued to be "good". Those rules won't a great product make, but breaking them doesn't seem like a great idea for most people either.<p>My own feelings are closer to this poster's than the original list of admonishments, but these aren't issues that anyone should really be getting upset over. Basically: don't refute shopping lists. It just wastes everyone's time.