822
you are viewing a single comment's thread
view the rest of the comments
[-] UnfortunateShort@lemmy.world 42 points 1 day ago* (last edited 1 day ago)

In bigger projects, you tend to miss type safety really bad, really fast. Rust has it built in, Python can have it bolted on. That's simply one of the many aspects to consider when choosing your programming language.

But don't worry about it too much. If one thing's for sure, it's that you will regret that choice in any case.

[-] myxi@toast.ooo 2 points 5 hours ago* (last edited 5 hours ago)

Yeah I usually love Python but right now I'm working on a paid project where I need to deal with tasks that are critical to mostly work on first try. Now, if it would be a different matter if my code was just completely idiotic and still worked but Python doesn't error even when there is obvious typo that any statically compiled language could've picked up on a breeze at compile time.

I am scared to even implement a better logging system in my program because sometimes I forget to sanitize the arguments and my program fucking crashes at runtime because I added a new fucking logging statement.

I so fucking wish I had static type checking right now. The libraries I am using doesn't have types (via annotations) so unless I spend days fixing their shit, I will have to continue with these shitty runtime crashes for the shittiest small mistakes. I also can't trust these annotations because even if they are "wrong" their code coul perfectly work fine and they could even ship the wrong types. I would have the burden of dealing with their shitty annotations if that happens.

[-] rumba@lemmy.zip 3 points 1 day ago* (last edited 1 day ago)

It's like learning Perl back in the day, then needing to learn use strict;

[-] mindbleach@sh.itjust.works 3 points 22 hours ago

Perl is a write-only language.

[-] rumba@lemmy.zip 4 points 22 hours ago

I used to love it, it could look a lot like c, or you could do crap like

$_=<<'';y;\r\n;;d;$_=pack'b*',$_;$_=eval;$@&&die$@;$_

Admittedly, they're trying to obfuscate it, but even unpacking it a bit, it looks alien.

[-] mindbleach@sh.itjust.works 5 points 22 hours ago
[-] rumba@lemmy.zip 2 points 22 hours ago

Yes! That was the other thing I wanted to include, but I couldn't remember the name or search for it, so I wrote it off as a fever dream!

this post was submitted on 08 Jan 2025
822 points (98.0% liked)

Programmer Humor

19910 readers
2081 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 2 years ago
MODERATORS