サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
パリ五輪
dhh.dk
By David Heinemeier Hansson on April 30, 2014 The classical definition of a unit test in TDD lore is one that doesn't touch the database. Or any other external interface, like the file system. The justification is largely one of speed. Connecting to external services like that would be too slow to get the feedback cycle you need. That was probably true in 1997 when you were connecting to a mainfra
By David Heinemeier Hansson on April 29, 2014 "Code that's hard to test in isolation is poorly designed", goes a common TDD maxim. Isolation meaning free of dependent context and separated from collaborators, especially "slow" ones like database or file IO. The prevalent definition of "unit" in unit testing (though not everyone agrees with this). This is some times true. Some times finding it diff
By David Heinemeier Hansson on April 23, 2014 Test-first fundamentalism is like abstinence-only sex ed: An unrealistic, ineffective morality campaign for self-loathing and shaming. It didn't start out like that. When I first discovered TDD, it was like a courteous invitation to a better world of writing software. A mind hack to get you going with the practice of testing where no testing had happen
By David Heinemeier Hansson on Jan 6, 2013 In languages less open than Ruby, hard-coded class references can make testing tough. If your Java code has Date date = new Date(); buried in its guts, how do you set it to a known value you can then compare against in your tests? Well, you don't. So what you do instead is pass in the date as part of the parameters to your method. You inject the dependenc
By David Heinemeier Hansson on Dec 27, 2012 There are lots of à la carte software environments in this world. Places where in order to eat, you must first carefully look over the menu of options to order exactly what you want. I want this for my ORM, I want that for my template language, and let's finish it off with this routing library. Of course, you're going to have to know what you want, and y
By David Heinemeier Hansson on Dec 24, 2012 My appearance on the Ruby Rogues podcast recently came up for discussion again on the private Parley mailing list. A long list of topics were raised and I took a time to ramble at large about all of them at once. Apologies for not taking the time to be more succinct, but at least each topic has a header so you can skip stuff you don't care about. Maintai
I write regularly on HEY World and speak on The REWORK Podcast. I welcome emails to dhh@hey.com. You can also find me on Twitter, on LinkedIn, and on Instagram. Creator of Ruby on Rails Hundreds of thousands of programmers around the world have built amazing applications using Ruby on Rails. The open-source web framework that I created in 2003. Some of the more famous include Github, Shopify, Airb
このページを最初にブックマークしてみませんか?
『David Heinemeier Hansson (DHH)』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く