this post was submitted on 26 Sep 2023
628 points (91.6% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
all 50 comments
sorted by: hot top controversial new old
[–] Rooki@lemmy.world 85 points 2 years ago (3 children)

Python has to be another clown with their error messages

[–] jjjalljs@ttrpg.network 27 points 2 years ago (1 children)

Most python error messages are pretty straightforward so I legitimately don't know what you're talking about

[–] UnfortunateShort@lemmy.world 24 points 2 years ago

I was gonna say, next to C++ you better don't shame other languages for their errors. Otherwise I wish you some "fuck you: error in library used in library used in template of template:: some template object is not correct type of template obejct"-type bullshit.

[–] Turun@feddit.de 19 points 2 years ago (1 children)

Which part in particular? They were improved in 3.10 and 3.11

[–] noughtnaut@lemmy.world 6 points 2 years ago (1 children)

3.11 is Python for Workgroups, right? Feels like it came out ages ago....

[–] Mechanite@lemmy.world 2 points 2 years ago (1 children)

Hoping Python NT will be coming out soon

[–] RickyRigatoni@lemmy.ml 1 points 2 years ago

Not sure why Python 2000 is slated to release in 2030 but respect.

[–] superduperenigma@lemmy.world 60 points 2 years ago (1 children)
[–] Fades@lemmy.world 1 points 2 years ago

they’re gonna be looking for army guys

[–] DarkenLM@kbin.social 36 points 2 years ago (1 children)

Say what you want about it, but it will not go down without using everything in the vicinity as a weapon if ammo runs out. While others go down, they will be kamikazeing themselves to get the job done.

[–] MrPoopyButthole@lemmy.world 21 points 2 years ago (1 children)
[–] Ddhuud@lemmy.world 2 points 2 years ago

.catch( error => { } )

??

[–] orca@orcas.enjoying.yachts 22 points 2 years ago* (last edited 2 years ago) (2 children)

I write JS/TS daily and I agree with this lol.

I’ve offset it with Golang lately.

[–] Badland9085@lemm.ee 12 points 2 years ago (1 children)

Ehhh, golang’s pretty down there for me too. Sure, you have types, but the way you “implement” an interface is the sussiest thing I’ve seen in most well-known programming languages. Not to mention all the foot guns (pointers for nullables is a common one, and oh, if you forgot that a function returns an error, and you called it for its effects, you’ve just built a possibly very silent bomb) you end up building into your programs. I use in prod, and I get scared.

[–] orca@orcas.enjoying.yachts 2 points 2 years ago (1 children)

I’m pretty new to it. The types and struct stuff are a bit hand-wavey, but I like how quickly I was able to ramp into it. I built a simple API with it in a few hours.

[–] Badland9085@lemm.ee 2 points 2 years ago (1 children)

2 things I like about golang is just 1) the ease of getting someone to start work, and 2) goroutines. I have no complains about goroutines cause I’ve barely used it, and when I do it’s been fine. The first point though, I’d say the simplicity of the language is a double-edged sword — it’s easy to learn with little surface to cover, but it forces you to implement a lot of basic machinery you find in other languages by yourself, and so your codebase can get clunky to read really quickly, especially as your project grows.

Not trying to dissuade you from learning golang tho. I think it’s a good language to learn and use, especially for small simple programs, but it’s not the great language many try to say it is. It’s… fine. There are many reasons why it grinds my gears, but I’m still fine with using it and maintaining it for prod.

[–] orca@orcas.enjoying.yachts 3 points 2 years ago

“Clunky” - this hit it on the head for me. When I was initially getting started, some of the setup and boilerplate felt awkward. It feels very barebones, which I can see the benefit if you’re not a fan of opinionated, but as a project grows, it seems like a dark corner that technical debt and spaghetti code would amass.

[–] AeonFelis@lemmy.world 9 points 2 years ago

Go has the pitfalls you'd expect from an abused configuration language, not from a modern statically typed language.

[–] PP_BOY_@lemmy.world 19 points 2 years ago (1 children)
[–] HawlSera@lemm.ee 1 points 2 years ago

I cam here to post this

[–] 4am@lemm.ee 14 points 2 years ago

Until today I thought being a typist just meant you could press keys quickly

[–] desmosthenes@lemmy.world 9 points 2 years ago (2 children)

lol is the web a joke to you? jk

[–] tsonfeir@lemm.ee 26 points 2 years ago (3 children)
[–] skullgiver@popplesburger.hilciferous.nl 9 points 2 years ago* (last edited 2 years ago) (1 children)

[This comment has been deleted by an automated system]

[–] tsonfeir@lemm.ee 1 points 2 years ago* (last edited 2 years ago)

I’m not really sure why this image chose to put JavaScript and python in with C# and Rust. Just one of those anti-JavaScript nuts

[–] desmosthenes@lemmy.world 4 points 2 years ago* (last edited 2 years ago) (2 children)

I still use PHP in like 1/8 client projects - it’s fast as shit now ^^ lolol

[–] tsonfeir@lemm.ee 2 points 2 years ago

I’ve been a PHP developer for 20 years. I concur.

[–] blackn1ght@feddit.uk 1 points 2 years ago (1 children)

Serious question: what's the use case for using PHP in greenfield projects? Is the client dictating the use of PHP or your own choice?

[–] tsonfeir@lemm.ee 2 points 2 years ago

I use PHP as a back end language for an API. The front end is Vue. It’s fast as fuck, runs anywhere, doesn’t need tons of dependencies, and just does what I want it to.

The environment is all on-premise, so that does limit our options… but I’d still pick PHP.

[–] Ddhuud@lemmy.world 2 points 2 years ago* (last edited 2 years ago) (1 children)
[–] tsonfeir@lemm.ee 2 points 2 years ago

Fatal error

[–] Quik 1 points 2 years ago

That is, indeed, the case.

[–] Tartas1995@discuss.tchncs.de 1 points 2 years ago

I disagree with the meme but mostly because I think all programming language are fucking clowns at times. I Don't think that you should use typeless languages for huge projects but I also think that for a little Js library, Js is fine.

[–] SnowdenHeroOfOurTime@unilem.org 0 points 2 years ago