Hacker News new | ask | show | jobs
by hitchstory 558 days ago
Tests are usually soul crushing and boring for the same reason PHP was in 1999 - a complete lack of structure, tooling and separation of concerns made it tedious and difficult.

I find it interesting that when people describe to me how they use LLMs to write code it's either short throwaway scripts or to write the kind of code that would make me retch (e.g. tests stuffed full of horrible mocks, spaghetti boilerplate).

1 comments

Bear with me here: what if that retch-inducing code works fine? It's generated by an AI, can be understood by an AI (presumably), does what it should, so why should it be palatable for a human? You're not in the loop anymore...
If it remains perfectly bug free until the end of time then yes it's fine /s
And when a bug shows up (as they always do), some AI will fix it.