this post was submitted on 17 Sep 2024
252 points (100.0% liked)

Programmer Humor

421 readers
1 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 19 comments
sorted by: hot top controversial new old
[–] sus@programming.dev 34 points 2 months ago

bonus points if you're using a statically typed language but the library uses extensive metaprogramming seemingly for the sole purpose of hiding what types you actually need

[–] JackbyDev@programming.dev 10 points 2 months ago

This is probably my biggest complaint about trying to learn Python past the beginner level and into intermediate and beyond. This is also one of my strongest arguments in favor of static type systems over dynamic ones.

[–] AlexWIWA@lemmy.ml 10 points 2 months ago (3 children)

It's still crazy to me that Django doesn't have type hints.

[–] misterbngo@awful.systems 5 points 2 months ago (1 children)
[–] salmoura@lemmy.eco.br 2 points 2 months ago (2 children)

Will you share the source?

[–] misterbngo@awful.systems 6 points 2 months ago (1 children)
[–] AlexWIWA@lemmy.ml 2 points 2 months ago

I disagree with them, but I'm also not the one that would be spending days adding support, so fair enough.

[–] Midnitte 2 points 2 months ago (1 children)

Flask does - maybe a reason to switch? Lol

[–] AlexWIWA@lemmy.ml 1 points 2 months ago

I have been meaning to try it

[–] wasabi@feddit.org 2 points 2 months ago (1 children)
[–] AlexWIWA@lemmy.ml 1 points 2 months ago (1 children)
[–] fossphi@lemm.ee 2 points 2 months ago

One more reason to add to my hate list for kubernetes

[–] dudinax@programming.dev 9 points 2 months ago (1 children)

Rust crates have the second and third problems.

Rust at least has type annotation.

The type has private fields. There's no constructor. There's no implementation of the From trait except on itself. You can't find a function anywhere that returns the type.

[–] KindaABigDyl@programming.dev 6 points 2 months ago

I find Rust crates generally have pretty good docs. Docs.rs is a major time saver

[–] AVincentInSpace@pawb.social 7 points 2 months ago

you should learn Rust. the type system is so comprehensive that half the time you can guess what a function does (or at the very least what you're supposed to pass to it) without a single line of human written documentation.

[–] Evil_Shrubbery@lemm.ee 7 points 2 months ago* (last edited 2 months ago)

Using cryptic parameter names is just nonsense when you can obviously use lewd cryptic parameter names instead.

[–] umbrella@lemmy.ml 6 points 2 months ago

also how they are used as backdoors nowadays

[–] Reptorian@programming.dev 1 points 2 months ago* (last edited 2 months ago)

I'm just glad I have other options than just Python. Am not afraid of writing my solutions either. I rarely use Python these day.