3 ms·
I interviewed Uncle Bob on Monday (shameless plug: http://tiny-giant-books.com/blog/robert-uncle-bob-martin-interview-audio/?id-7 http://tiny-giant-books.com/bl
by DanielBMarkham 14y ago
I interviewed Uncle Bob on Monday (shameless plug: http://tiny-giant-books.com/blog/robert-uncle-bob-martin-interview-audio/?id-7 http://tiny-giant-books.com/blog/robert-uncle-bob-martin-int...). It was mostly biographical stuff, but I did cover functional programming. There was a bunch of technical stuff I left off because of time constraints.
The topic I really wanted to cover but didn't was TDD in startups. I have a simple belief: the value of your code debt can never exceed the value of your code. That is, if you code has no monetary value, it is impossible for you to have any code debt, no matter who you are, what your code does, or what the code looks like. Think about it. It makes sense.
It's interesting that Bob took a "saw the baby in half" approach here, outlining the various things he'd throw away and the various things he'd keep. While I think there are definitely shades of gray, it would also be useful for him to directly address the question of code that has no value. If I write a function that I save on my hard drive and never use, does it need a test? I belief the ludicrously obvious answer is "no", but I haven't heard him say that yet.
- surbas 14y agoHe did mention if it is throw way code he doesn't write tests in his second to last point. "A few months ago I wrote an entire 100 line program without any tests. (GASP!)"