1050
submitted 7 months ago by stsquad@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] magic_lobster_party@kbin.social 1 points 7 months ago* (last edited 7 months ago)

Often I use Python for exploratory purposes. Like, I got a bunch of data, and I want to know if a particular algorithm might work or not. I implement the algorithm, but realize the results don’t look good enough. So I tweak the algorithm, maybe even do major refactoring. Or maybe I realize my visualizations or metrics don’t capture what I need to see. Or maybe I must settle for some compromise?

I iterate on this repeatedly until I find something I’m happy about (or until I give up). Sometimes I end up with something completely different from my initial idea.

TDD won’t help me much here because the end result is unknown. For each iteration of this idea process I might even need to rewrite all the tests because none of them are valid anymore.

[-] tryptaminev@feddit.de 1 points 7 months ago

in this process it is just normal to get runtime errors. Your expectation is too high imo.

this post was submitted on 02 Feb 2024
1050 points (98.3% liked)

Programmer Humor

32060 readers
1496 users here now

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

Rules:

founded 5 years ago
MODERATORS