Login
You're viewing the techdon.dev public feed.

Replies

  • Nov 4, 2026, 10:27 PM

    @juliank @jaredwhite @soller
    > slop unit tests are basically fine!

    No, they're not. Tests are useful if they meaningfully exercise the code paths. Slop tests can give a false sense of comfort when making changes (humans can write slop tests as well, to be clear)

    💬 2🔄 0⭐ 0
  • Nov 4, 2026, 10:42 PM

    @jbowen I think it's a matter of what you're testing perhaps.

    Like consider APT I'm not necessarily interested in the test testing for the right behavior, I just want to add tests that assert the current behavior because any change of behavior could be a bug and having a test will tell me about it and let me judge it.

    Even when I write a test by hand I might just add a test for a FIXME case behaving wrong as an expected output and leave a FIXME in the test.

    @jaredwhite @soller

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 4, 2026, 11:10 PM

    @jay_peper I like to think in terms of probable, and it seems probable it would catch issues but it's not a guarantee. The same applies to fuzzers or property based testing.

    Think of this as just trying to fuzz more of the code with random examples for a stochastical probable regression prevention rather than say a rigorous unit test.

    Or to put it in other words I happily ship a test I don't understand fully because there's a chance it catches something.

    @jbowen @jaredwhite @soller

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 4, 2026, 11:49 PM

    @juliank @jay_peper @jbowen @jaredwhite @soller Compaq would not even attempt to add my corrected boot code to their PCs, though it was fine for other consumer products. Why? Because the original coders wrote slop code and designed slop tests to "prove" their slop worked. Unless it could pass the fake slop tests, it would not be accepted, because QA was incapable of designing code, and wouldn't touch it.

    LLMs are devouring our natural resources. Anyone behind them needs to be prosecuted to the fullest extent of the law. This is mass murder on a global scale.

    I think arguments about how beneficial it might be are drowned by the rising sea level, the loss of glacial ice, and the struggle farmers will have growing the food we eat.

    Machine learning is not the problem. LLMs and their gargantuan data centers are. How many forests must we lose, how many glaciers must be melted away, before people wake up?

    Enjoy your debugging tool from hell.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 5, 2026, 1:32 PM

    @jbowen @juliank @jaredwhite @soller Good unit tests can also serve as documentation of intent. Where bad unit tests just show that the code matches the test. Unit tests that serve as documentation are harder to write, but are gold when trying to understand code.

    💬 0🔄 1⭐ 1
  • Nov 5, 2026, 1:54 PM

    @gwadej I think there's a difference between tests that serve to define the interface expectations that you'd write as part of writing the code and then piling on a bunch of tests that check corner cases you forgot about to drive up the test coverage.

    And that's where I'm sometimes saying oh I don't quite care about that corner case right now but let's keep the test for it so we notice if we change that and can make an informed decision.

    @jbowen @jaredwhite @soller

    💬 1🔄 0⭐ 0
  • Nov 5, 2026, 11:18 PM

    @juliank Corner case tests aren't just "driving up coverage". They are useful for documenting battle scars in code. At some point, someone will try to clean up code by removing some ugly patch and the test documents that the code is intended to exist.

    I've spent too much time arguing about (or going back and fixing) code that someone without context was certain didn't matter.

    @jbowen @jaredwhite @soller

    💬 0🔄 0⭐ 0