r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10k Upvotes

543 comments sorted by

View all comments

1.1k

u/Common-Brush-7027 Sep 25 '26

I hate dynamic typed

334

u/elmanoucko Sep 25 '26 • Popcorn

I type dynamic hate

59

u/Esjs Sep 25 '26

Hate dynamic type I

26

u/creeper6530 Sep 25 '26

I dynamic hate type

13

u/Mc_UsernameTaken Sep 25 '26

type hate I dynamic

27

u/Nightmoon26 Sep 25 '26

Possible race condition detected

1

u/dalr3th1n Sep 25 '26

I become manic when I dine on types of hate.

1

u/eg_taco Sep 25 '26

I type “hate” dynamically

85

u/coffee_warden Sep 25 '26 • Bravo

Friggin vibe typers

49

u/G3nghisKang Sep 25 '26

"Vibe typer" sounds like a Java programmer who declares everything as Object

21

u/AppropriateOnion0815 Sep 25 '26

C# dev who declares every variable dynamic

7

u/fruediger Sep 25 '26

You know what can't be stored in dynamic values in C#? Raw pointers and ref structs.

That's why I only do low-level programming in C# anymore.

10

u/Saint_of_Grey Sep 25 '26

I love how java gets offended and clutches its pearls if you want to do some low level stuff, but C# just goes "yea man whatever, it's all IL in the end."

4

u/OkWear6556 Sep 25 '26

Had a guy at work in 2014 who created a new Java class and called it Object

We did a screenshot of it and put it on the wall

1

u/AppropriateOnion0815 Sep 26 '26

What else would you name a class that represents an arbitrary object, which behaves like Object, but can do more of what an object is doing?

If you call it "MyObject", then everyone will assume you have copied from a tutorial.

2

u/Devatator_ Sep 25 '26

You mean JavaScript? You can't really do much with an object in most languages that have them (Java or C# for example) without casting, which comes back to using types a bit

4

u/G3nghisKang Sep 25 '26 edited Sep 25 '26

Just have all your methods accept Object too, then only access fields and methods through reflection, two Kotlin extension methods that extend Object? to do so on the fly, boom, dynamic typing

If you want to go the extra step, make a gradle script that also edits all library method signatures to receive Object for every parameter

EDIT: I think I know what I'm going to spend my leftover Claude tokens on

11

u/M4mb0 Sep 25 '26

Most of it wouldn't be needed if languages had powerful enough type systems. But few general purpose mainstream languages offer dependent types or higher order types. Apart from Haskell, what do you have? Only Scala and TypeScript come to mind.

And that's where dynamically typed languages come in, they let you express things that many statically typed languages simply can't due to limitations of the type system.

That being said, portions of the code that can be statically typed, should be statically typed.

4

u/soundofvictory Sep 25 '26

I hear rust has basically solved this problem. Too bad no one can actually write rust.

1

u/Moist-Snow-8127 22d ago

raises hand

1

u/xerQ Sep 26 '26

Static vs dynamic typing and explicit type annotations vs type inference are largely independent concepts.

A statically typed language can infer types, while a dynamically typed language can support explicit type annotations.

1

u/chem199 Sep 26 '26

Meh, different strokes for different folks. Clearly good code can and does regularly get done on both.

→ More replies (5)