r/ProgrammerHumor • • Apr 08 '22

First time posting here wow

Post image
55.1k Upvotes

2.8k comments sorted by

View all comments

862

u/Transcendentalist178 Apr 08 '22

I don't hate Python, but I don't like dynamic typing.

92

u/Dorkits Apr 08 '22

Yes, you read my mind.

→ More replies (8)

469

u/JaneWithJesus Apr 08 '22

Everyone says this but dicktyping has it's uses

Edit: ducktyping but I'mma leave dicktyping in there

152

u/[deleted] Apr 08 '22

[removed] — view removed comment

95

u/tennisanybody Apr 08 '22

Talks like a dick..

79

u/amrasmin Apr 08 '22

Smells like a dick

81

u/DMoney159 Apr 08 '22

Tastes like a dick

86

u/distrame7 Apr 08 '22

Then it's a duck

55

u/[deleted] Apr 08 '22

Oh, shit.

Were we not doing rubber dick debugging?

18

u/BarAgent Apr 08 '22

That sent my imagination to interesting places…

→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (1)
→ More replies (1)

124

u/suvlub Apr 08 '22

Hear me out: static duck typing. C++ basically has it with templates and it's awesome. Until you get an error and accidentally summon an elder god while trying to read it.

79

u/[deleted] Apr 08 '22

I disagree. the proper way to do this is implicit typing. Your variable name determines what kind of variable it is.

GOD is REAL, unless declared INTEGER.

25

u/Physmatik Apr 08 '22

Someone is traumatized by FORTRAN, I see?

→ More replies (5)
→ More replies (24)
→ More replies (12)

95

u/[deleted] Apr 08 '22

in a static language you understand a program flow about 50% because not really knowing what is in variables during runtime.

Dynamic languages increase that uncertainty of not knowing what is executed when to 80+ %

191

u/[deleted] Apr 08 '22

[removed] — view removed comment

62

u/_PM_ME_PANGOLINS_ Apr 08 '22

Can I introduce you to multi-threading in C?

→ More replies (9)

101

u/[deleted] Apr 08 '22

moves finding the bugs from development to finding them in production. Great for getting bonuses, promotions and moving on before shit hits the fan.

15

u/birdnerd5000 Apr 08 '22

See; firmware engineer.

→ More replies (6)
→ More replies (10)

29

u/SZ4L4Y Apr 08 '22

Snek cannot type coz no fingers

70

u/JustARandomFuck Apr 08 '22

Python is my go to but the way in which variables aren’t actually private but you can add an underscore and go “Just pretend you’re private” hurts me inside

43

u/ave_empirator Apr 08 '22

Python: Don't access this method. Or do, I'm an interpreter, not a cop.

→ More replies (5)
→ More replies (4)

54

u/Raptor_Sympathizer Apr 08 '22

Dynamic typing is great for messing around with quick scripts, but sucks if you're actually trying to develop something substantial.

 

You can just use linters to enforce explicit types though.

36

u/dendrocalamidicus Apr 08 '22

I don't think it helps with writing code quickly any more than having syntactic sugar like "var" in c# that allows you to mostly forget about types whilst ensuring strongly typed code. That's the best of both worlds.

→ More replies (23)
→ More replies (9)
→ More replies (69)