The End of Bugs?
adam.blog.heroku.com
The End of Bugs?
1–10 of 21 posts
Re: The End of Bugs?
#2Re: The End of Bugs?
#3Re: The End of Bugs?
#4Re: The End of Bugs?
#5Re: The End of Bugs?
#6Re: The End of Bugs?
#7You can't do exploratory programming writing unit tests first, can you?
There is a tradeoff. You end up with a longer program that does the same thing - that's bad. On the other hand it works better, and you're likelier to know if you break something - that's good. People argue about whether the bad exceeds the good or vice versa, but surely that can't be answered all one way or the other.
My experience is that this style of programming is well suited for the OO environments that it emerged from. OO object graphs get complex very quickly and you need a device for managing side effects (i.e. unexpected breakage). Unit tests, specifically TDD, are the best currently known device for that. But to me a better approach is to program functionally in a way that eschews (most) side effects and to test one's code by evaluating expressions in a REPL. That gives most of the benefits of unit testing in a much lighter-weight form. I still write the occasional unit test, but only in targeted places where the code has to do something tricky and I want to keep a record of good examples. All I do in that case is put the expressions I've been playing with in the REPL into a function somewhere.
Re: The End of Bugs?
#8Nice to hear that BDD/TDD is doing well for you. I love RSpec's stories. Unfortunately in a land where using the Spring framework is a big risk (e.g. corporate software development), BDD is not going to be widely adopted, let alone seriously considered. Startups are for those who want to expand their technological comfort zone. Average companies in the other hand, they're fine with remaining average.
Re: The End of Bugs?
#9Re: The End of Bugs?
#10Please can someone explain more about "BDD" here?