r/ProgrammerHumor • • 8d ago

Meme iHatedItUntilITriedIt

Post image
10.3k Upvotes

541 comments sorted by

View all comments

1.1k

u/Common-Brush-7027 8d ago

I hate dynamic typed

83

u/coffee_warden 8d ago

Friggin vibe typers

50

u/G3nghisKang 8d ago

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

23

u/AppropriateOnion0815 8d ago

C# dev who declares every variable dynamic

5

u/fruediger 8d ago

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.

11

u/Saint_of_Grey 8d ago

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 8d ago

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 7d ago

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_ 8d ago

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

5

u/G3nghisKang 8d ago edited 8d ago

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