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

Programmer Humor

19512 readers
652 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 (3 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] 121 points 1 year ago* (last edited 1 year ago) (1 children)

CI/CD is useful regardless of which language you’re using. Sooner or later some customer is going to yell at you because you didn’t discover the fatal error before deploying.

[–] [email protected] 56 points 1 year ago (3 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] 6 points 1 year ago

4x as many unit tests

Well... the people fighting against TS are simply not testing things thoroughly. So they are not writing those tests.

Some times that's even perfectly ok. But you don't want to build things over a complex library that has this attitude.

(Except for svelte. It's meaningless for svelte, as TS was always a really bad fit for it.)

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

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

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

Hey man it passed the CICD. Not my problem