TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Growing Rails Applications in Practice (eBook)

4 点作者 triskweline将近 11 年前

1 comment

patio11将近 11 年前
Ooh, this is relevant to my interests.<p>(So for those of you who don&#x27;t know, this is the team behind RailsLTS. I like them a lot but didn&#x27;t know this was coming down the pipe.)<p>One thing which I&#x27;ve been regretting recently is that I only have exposure to 2 Rails codebases other than the Rails project itself, and as I&#x27;m the sole engineer on them, they&#x27;re... well, awful. I hit the wall somewhere in the 10k or 20k LOrubyC region, and all the &quot;A place for everything and everything in its place&quot; pre-baked Rails architecture decisions started... I don&#x27;t know if breaking down is the right word, but it became increasingly obvious that I was doing things the software did not want me to do. To avoid certain controllers having 100+ methods I broke them into subcontrollers, used metaprogramming magic to route them all together, etc. I&#x27;ve got about a dozen mix-ins in my Account class (with &quot;helpful&quot; names like Subscriptions, Analytics, Status, etc, such that I can never remember where Account#is_terminated_for_nonpayment? resides). I use way too many hacks to get e.g. a change to app&#x2F;models&#x2F;accounts&#x2F;analytics.rb to re-run both the account and analytics tests.<p>Looking forward to this book, and to any other resources from teams which built Rails applications that started to do a bit of heavy lifting. My experience at my old company is a lot of it is just organic knowledge at places which have 10+ engineers working on the codebase for 5+ years, but unfortunately I&#x27;ve never been in that sort of environment in a Rails shop (and, ahem, may never have that opportunity).
评论 #7911674 未加载