サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
jetthoughts.com
Why logic in views is a bad idea?The main reason not to put the complex logic into your views is, of course, testing. I don’t want to say that it is impossible to test logic defined in views, but it is much more complicated. And, as a very lazy person, I don’t like doing an extra work. The second reason is that views should have as little embedded dynamic code as possible. This gives us much clean
At one project we have a set of currently 3k+ tests, running more than 2 minutes. Most of the test cases rely on the DB, and ActiveRecord logs all queries by default. The test.log grows by around 20M per suite run. Once again deleting an overgrown local log file, I thought that we don’t really need it and logging in a test mode should be better disabled by default. Measurement of successAnd I also
このページを最初にブックマークしてみませんか?
『jetthoughts.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く