this post was submitted on 05 Aug 2023
706 points (98.0% liked)

Programmer Humor

35000 readers
26 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
(page 2) 26 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 2 years ago
[–] [email protected] 3 points 2 years ago

I do it sometimes, especially when the bug is hard to reproduce and I know exactly what's causing it. Sometimes it's quicker to write the tests than to test manually.

[–] [email protected] 2 points 2 years ago

I usually define all the tests I want to have but dont implement the testing logic. It helps me gather my thoughts like TDD would like you to do and I already have to start thinking somewhat about inputs and outputs. Its kind of a middle ground of TDD that works well for me.

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago) (2 children)

TDD is up there with CBT if no one knows how to implement it properly

load more comments (2 replies)
[–] [email protected] 2 points 2 years ago
[–] [email protected] 1 points 2 years ago

You're goddamn right.

[–] [email protected] 0 points 2 years ago* (last edited 2 years ago) (1 children)

OOP is another case of nice in theory.

[–] [email protected] 2 points 2 years ago

The dev who don't know how to TDD their poorly designed object oriented spaghetti code are downvoting you, lol. Wear that with pride, but be sure to charge extra when it's time to fix their shit.

load more comments
view more: ‹ prev next ›