this post was submitted on 10 Sep 2023
798 points (98.3% liked)

Programmer Humor

19572 readers
1851 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
[–] [email protected] 22 points 1 year ago (16 children)

I recently made a small pure JS package at my company. It just fucking worked, can you believe it? No setting up compilation and CI/CD for build + release. Just put it in the repo and publish manually, and it just worked, it's ridiculous

[–] [email protected] 56 points 1 year ago (7 children)

Did it work? How do you know that? A consumer of your package sends a int when your package expects a string.

What now?

[–] [email protected] 45 points 1 year ago (2 children)

Consumer just needs to write 4x as many unit tests to make up for lack static typing. Hopefully the library author has done the same or you probably shouldn't use that library.

[–] [email protected] 2 points 1 year ago

It's ok, just do what my company does and write no tests at all!

load more comments (1 replies)
load more comments (5 replies)
load more comments (13 replies)