50
submitted 2 months ago by Apytele@sh.itjust.works to c/asklemmy@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] barsquid@lemmy.world 3 points 2 months ago

Wish we had more like you in the industry. It's a skill to write non-brittle non-trivial tests but surely it's not actually as difficult as the results indicate?

[-] xia 3 points 2 months ago

I think it rubs people the wrong way because (though it looks like code) in some sense it is not programming... it's like the negative image of a program... like a mold or specification-box that contains and fits around the code, which reverses several key principles.

It also can highlight if the code needs to be moved or reorganized, and let me tell you... the LAST thing that devs want is to interpret the struggle to write a unit test as a sign the code needs rework, they would MUCH rather keep unit tests as an after-thought; like some kind of mandated torture-ritual that produces a thing of no value.

Speaking of not valuing tests... I've literally seen devs blithely invert test assertions (that where clearly valid), those that made sense in context, and even some that were PART OF THE TEST'S NAME... just to brush the "meaningless failures" out of their way... as if they could not be bothered to even read one sentence to understand the "why"... uggh.

Anyway, I digress and ramble. If you really want more of me in the industry, I can provide one more! If you happen to know of any teams that need a professional-unit-testing-developer, I'm recently on the market! :)

[-] nik9000@programming.dev 1 points 2 months ago

Pre-merge code review should stop that kind of thing. I honestly haven't seen anything like this in years.

[-] xia 1 points 2 months ago

Many code-reviewers likewise devalue tests, giving only a cursory skim over the unit-test section of PRs, if they examine them at all, and sometimes code-review itself is devalued to the point of a rubber-stamp (e.g. "great, we need someone from team X to approve it too... doesn't matter who, though...").

If I could tell you, you would be SHOCKED at how high-profile and recent this sordid project was; it's literally in the news and discussed in my podcasts.

this post was submitted on 06 Jun 2024
50 points (96.3% liked)

Asklemmy

43027 readers
1667 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS