this post was submitted on 14 Aug 2023
3 points (100.0% liked)

Programmer Humor

19149 readers
1219 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
 
top 8 comments
sorted by: hot top controversial new old
[–] CodeBlooded@programming.dev 0 points 1 year ago* (last edited 1 year ago) (1 children)

If this language feature is annoying to you, you are the problem. You 👏are 👏 the 👏 reason 👏 it 👏 exists.

I worked in places where the developers loaded their code full of unused variables and dead code. It costs a lot of time reasoning about it during pull request and it costs a lot of time arguing with coworkers who swear that they’re going to need that code in there next week (they never need that code).

This is a very attractive feature for a programming language in my opinion.

PS: I’m still denying your pull request if you try to comment the code instead.

❗️EDIT: A lot of y’all have never been to programming hell and it shows. 🪖 I’m telling you, I’ve fixed bayonets in the trenches of dynamically typed Python, I’ve braved the rice paddies of CICD YAML mines, I’ve queried alongside SQL Team Six; I’ve seen things in production, things you’ll probably never see… things you should never see. It’s easy to be against an opinionated compiler having such a feature, but when you watch a prod deployment blow up on a Friday afternoon without an easy option to rollback AND hours later you find the bug after you were stalled by dead code, it changes you. Then… then you start to appreciate opinionated features like this one. 🫡

[–] ricojo777@lemmy.sdf.org 0 points 1 year ago (1 children)

I'll start calling SQL "squeal" now in the spirit of this comment

[–] Magnetar@feddit.de 0 points 1 year ago (1 children)

No amount of propaganda will ever get me to pronounce it "sequel". I'll die in that hill.

[–] CodeBlooded@programming.dev 0 points 1 year ago (1 children)

Wait… how do you say it? es queue el?

[–] Magnetar@feddit.de 0 points 1 year ago

I do, unashamedly.

[–] fkn@lemmy.world 0 points 1 year ago (1 children)

Also Go: exceptions aren't real, you declare and handle every error at every level or declare that you might return that error because go fuck yourself.

[–] zorro@lemmy.world 0 points 1 year ago (1 children)

Because that's sane and readable?

[–] r1veRRR@feddit.de 0 points 1 year ago

It's better than "invisible" exceptions, but it's still the worst "better" version. The best solution is some version of the good old Result monad. Rust has the BEST error handling (at least in the languages i know). You must handle Errors, BUT they are just values, AND there's a easy, non-verbose way of passing on the error (the ? operator).