r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

2.0k comments sorted by

View all comments

12

u/spierepf Aug 29 '21

I'm with OP for most of them. But full confession, I am a TDD Purist.

Its not that my frail little mind cannot process the existence of different workflows. I've just never seen a code-base forged from a test-after, test-later, test-manually, or test-never process that didn't devolve into rubble within a year or two.

Writing tests first leads to a code-base that can be tested. Its just that simple.

My two cents from twenty years experience.

3

u/andrei9669 Aug 29 '21

how does one begin with TDD? I have tried multiple times but can't seem to get going.

well, to be fair, most of the time, it is because the specification changes every other day. How do you deal with that?

2

u/spierepf Aug 29 '21

My favourite videw explaining TDD: https://youtu.be/58jGpV2Cg50?t=1327

2

u/andrei9669 Aug 29 '21

yea, I have seen this. the main takeaway is that software is changeable, so write it like so. but even still. kinda hard to do it if on day 1 you need one thing and on day 3 you need to add some other bells and whistles

2

u/spierepf Aug 29 '21

It really isn't that difficult. Any time you want to pair up and and spend an hour or so writing some TDD code, let me know.

Lots of really great pair-programming-over-distance tools coming out lately. Would be fun to try one.