this post was submitted on 12 Sep 2023
838 points (98.9% liked)

Programmer Humor

19176 readers
1374 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] shotgun_crab@lemmy.world 30 points 1 year ago (3 children)

You guys have unit tests…?

[–] BradleyUffner@lemmy.world 11 points 1 year ago (2 children)

Ohh yeah, loads! Do they actually test anything useful? Not so much.

[–] gornius@lemmy.world 1 points 1 year ago

I actually had to refactor configuration module some time ago. These really came in handy. But was it worth it? Well... it saved some time, the time that could be used to debug problems manually, but it made me a lot more confident that the functionality that worked before, worked after.

[–] jaybone@lemmy.world 1 points 1 year ago

You just have to mock everything, so it’s basically testing nothing. But you get those code coverage numbers.

[–] fibojoly@sh.itjust.works 3 points 1 year ago

The ones I have seen so far are probably written by the same people who don't understand the usefulness of comments, I reckon. And maintained with the same enthusiasm.