this post was submitted on 30 Nov 2024
60 points (80.0% liked)

Programmer Humor

19865 readers
34 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 month ago (1 children)

Yeah I guess I should think before I say shit.

You're right.

[–] [email protected] 1 points 1 month ago (1 children)

Thank you for acknowledging that. I'd also like to say for the record that you were literally one word off from being correct.

[–] [email protected] 1 points 1 month ago (1 children)

In my head I had conflated duck and weak typing. I'm not an oop programmer (tbh I'm not much of a programmer to begin with) and since what Python does e.g. with file handles is closer to say in Haskell making a wrapper

DataStream x -> FileHandle x

Where like implementing the read/write/open etc methods are equivalent to implementing the function mappings.

Which is very different from say JS "Herr durr I'm going to cast an int to a string and then error" I assumed the latter was "duck typing"

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago)

I don't know enough Haskell to tell you whether you're right about that or not (read: I know literally zero Haskell) but that sounds vaguely correct. That said, JavaScript is strongly and dynamically typed as well -- it's just a lot more lenient with implicit type conversions than Python is because of obscure 90s bullshit.

Also: don't let anyone tell you you're not a real programmer. If you even know what Haskell is, you've more than passed my bar.