Advertisement
Advertisement
β‘ Community Insights
Discussion Sentiment
43% Positive
Analyzed from 521 words in the discussion.
Trending Topics
#tests#unit#never#integration#test#write#world#reading#used#slop
Discussion Sentiment
Analyzed from 521 words in the discussion.
Trending Topics
Discussion (9 Comments)Read Original on HackerNews
I'll never forget the cycle, after staunch objections to integration/e2e/manual tests and zealously insisting on full unit test coverage, the senior dev deployed changes ... boom. The process failed hard minutes after start because there was a bug in main. Full production outage. A bug so obvious we should have caught it by eye. Clearly, in the weeks developing the feature, he had never bothered to even run the application. Each part was fully polished in isolation but utterly failed when integrated into an application.
The way I've come to think of it: Unit tests are for libraries, a closed world where you can neatly define all inputs and outputs. Integration/E2E tests are for applications, an open world which require systems thinking, simulations not proofs. Know which world you're working in!
Unit and integration tests serve different purposes and one isn't necessarily better than the other.
I used to read anything and everything on HN, but my allergy to slop has made me stop doing that. I suppose that's a good thing?
> The one repository with working CI has a workflow file of about 40 lines that runs a type check, the test suite, and a build on every pull request. Sixteen other repositories use the same test runner. Copying it sideways is an afternoon.
So I think they're saying that they never wired up CI, and as a result the value provided by their test suite in preventing bad code from shipping is limited.
I'm developing a distracting hypervigilance that kicks in whenever I start reading anything linked from here or lobsters or LinkedIn. Instead of focusing on whatever it's saying, I'm looking for the tells instead.
I hate what AI's doing to reading. It's like when the desktop publishing revolution reached folks who never could have put together a decent banner to save their lives, and suddenly chintzy Broderbund Print Shop-generated examples were hanging in every classroom. But at least that was limited to peeps who had access to a dot matrix printer and scads of tractor feed paper. Now clankers write for everybody who either can't write or won't put in the time, and the low-effort slop is everywhere.
It'd be one thing if they used AI to write a draft and then rewrote it to make it theirs. I'd read it! But they can't be bothered. Very unfortunate, and I refuse to waste my time on it.
Just post the prompt you used, Brand, I'd probably get more value...
This is the most recent AI slop phrase the models produce, keep an eye out you'll see it everywhere.