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.

Ask HN: What are the stupid things Rails developers do?

26 pointsby geekfactoralmost 14 years ago
I liked the post "How to seem good at everything: Stop doing stupid shit" [1,2] and am wondering how to apply it to take my dev skills to the next level... What is the "stupid shit" that developers do that if we were to only stop doing would make us better developers?<p>I'm primarily working in Rails nowadays if that makes a difference in the way you answer the question.<p>[1] http://jinfiesto.posterous.com/how-to-seem-good-at-everything-stop-doing-stu<p>[2] http://news.ycombinator.com/item?id=2848041

11 comments

davidstalmost 14 years ago
Humility is your friend. There is so much to know you must assume that, in areas where you are not already an acknowledge expert, you are already doing stupid things and you don't know it.<p>Related to humility: Never forget the fundamentals. I'm talking about things like basic sorting, searching, and big O estimating. Know what your data structures and algorithms cost in terms of memory and performance. I'm continually surprised by how many senior developers unknowingly drift away from the fundamentals.
prodigal_erikalmost 14 years ago
Assume no non-Rails code will be using the database. Use ActiveRecord migrations to set up schemas completely lacking foreign key declarations. Casually add caching without thinking very carefully about invalidation, serving stale data for hours to months. Deploy manually without ensuring every server always has the same package versions.
评论 #2848935 未加载
cicatrizalmost 14 years ago
The book Rails AntiPatterns addresses many: <a href="http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison-Wesley-Professional/dp/0321604814" rel="nofollow">http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison...</a>
评论 #2848967 未加载
techiferousalmost 14 years ago
Not understanding the problem your customer/client/manager is trying to solve.
评论 #2851429 未加载
jdesenoalmost 14 years ago
- Not writing tests.<p>- Long finder methods instead of using named scopes.<p>- Not using restful routes.<p>- Too much code in their views.<p>- After saves that should be validations or other confusing AR lifecycle mistakes/abuses.
chsonnualmost 14 years ago
Relearn how to do something "the rails way" when they already know how to do it elegantly in PHP or ruby/sinatra.
latchalmost 14 years ago
fat controllers
评论 #2848420 未加载
yxhuvudalmost 14 years ago
Too big ApplicationController/ApplicationHelpers.
amorphidalmost 14 years ago
Never learn SQL.
评论 #2848709 未加载
techiferousalmost 14 years ago
Trying to fit the code all on one line.
damoncalialmost 14 years ago
Excessive meta programming.
评论 #2848662 未加载
评论 #2848369 未加载