全部
总排名: 19905
 The Rails Way - Home
RSS地址: http://feeds.feedburner.com/TheRailsWay
收录于2007-08-03
认领 报错 推荐
最新文章
6位订阅者
Requests Per Second   2009-01-06 23:15
One of the most harmful things about people discussing the performance of web applications is the key metric that we use. Requests per second seems like the obvious metric to use, but it has several insidious characteristics that poison the discourse and lead developers down ever deeper rabbit holes chasing irrelevant gains. The metric prevents us from doing A/B comparisons, or discussing...
@the_rails_way.awaken!   2009-01-06 23:15
After more than 15 months since the last post, and constant questions from users, I’m finally ready to bring The Rails Way back from hibernation.The challenge I had here was the amount of time involved. Review articles are incredibly time consuming, scouring an application for code to improve can take hours, making the changes takes time, and all of that is dependent on getting that perfect...
Many Skinny Methods   2009-01-06 23:15
This refactoring is based on a topic Marcel and I covered at RailsConf Europe.Before123456789101112classExpense< ActiveRecord::Base belongs_to :payee protected# Nice and concise, but what happens as we add more rules# and how do we write test cases for the four different possible # validation states?defvalidate errors.add("Not enough funds") if payee.balance - amount > 0...
Using ActiveResource to consume web-services   2009-01-06 23:15
Today I’m reviewing Joe Van Dyk’s monkeycharger application, which is a web-service for storing and charging credit cards. I loved looking at this app, because its only interface is a RESTful web service: there is no HTML involved. (If you’ve never written an app that only exposes a web-service UI, you ought to. It’s a blast.)In general, Joe has done a fantastic job with keeping the...
Testing the Right Stuff   2009-01-06 23:15
I’m going to take a slightly different tack here, and review some of the unit tests in rails itself. They show up two common anti patterns, spurious assertions and coupling your tests to the implementation.Perhaps the biggest benefit of a suite of unit tests is that they can provide a safety net, preventing you from accidentally adding new bugs or introducing regressions of old bugs. With...

鲜果日志  工具箱  帮助  | 联系我们  英雄帖   隐私保护  合作伙伴
Copyright©2004-2009 XianGuo.com 天健出品 京ICP备07018601号