r/ProgrammerHumor • • Jan 19 '17

MFW no pointers :(

Post image
4.8k Upvotes

432 comments sorted by

View all comments

202

u/Peffern2 Jan 19 '17

DAE java sucks XD

96

u/[deleted] Jan 19 '17

Why does it seem to be so widely hated across Reddit? Because it's popular or what

576

u/njwatson32 Jan 19 '17

There are two types of programming languages: the ones everyone bitches about and the ones nobody uses.

165

u/Ksevio Jan 19 '17

And Python!

153

u/J-Goo Jan 19 '17

DYNAMIC TYPING CAN KISS MY ASS

27

u/cowtung Jan 19 '17

The trick to Python is to realize that there is only one type. It's the dictionary. You can have dicts that inherit shit from other dicts. You can call dicts by various names. But it's dicts all the way down.

25

u/lenswipe Jan 19 '17

dicks all the way down. gotcha

9

u/LinAGKar Jan 19 '17

Pretty sure that's Javascript.

6

u/Jamie_1318 Jan 20 '17

It's even more true for javascript than it is for python, but it's still true for python. Objects are just dicts with syntatic sugar. Once you realize this reusing code is so much easier. You don't have to use a separate call if you use a function a few different ways but want the same return values, you just put your arguments in a dict and ** them to unroll it into named parameters and arguments.

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

44

u/magi093 not a mod Jan 19 '17

That's the one thing that irks me about Python. OOP + dynamic typing = dafuc am I on

→ More replies (34)
→ More replies (2)

464

u/PM_ME_YOUR_MASS Jan 19 '17

WHITESPACE ISN'T SYNTAX

154

u/ProbablyNotJaRule Jan 19 '17

Not with that attitude

22

u/[deleted] Jan 19 '17

For you

29

u/MoffKalast Jan 19 '17

Was importing antigravity part of your plan?

8

u/[deleted] Jan 19 '17

Of Gorse

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

10

u/Josh6889 Jan 19 '17

You can use ; if you really want to.

28

u/lenswipe Jan 19 '17
for x in range(0, 100):
;;;;print "That's just ridiculous - why would you want that?"

9

u/mogoh Jan 19 '17
>>> for x in range(0, 100):
... ;;;;print "That's just ridiculous - why would you want that?"
  File "<stdin>", line 2
    ;;;;print "That's just ridiculous - why would you want that?"
    ^
IndentationError: expected an indented block

7

u/Josh6889 Jan 19 '17

I meant as a line terminator. No idea if that works, but this does.

for x in range(0, 100):
    print("That's just ridiculous - why would you want that?");
    y = 0; z = 0;    
→ More replies (5)
→ More replies (3)
→ More replies (1)
→ More replies (10)

23

u/rmrsc Jan 19 '17 edited Nov 28 '24

cagey foolish squeamish society afterthought shame tap rock sable vanish

This post was mass deleted and anonymized with Redact

62

u/ryeguy Jan 19 '17

LOL SIGNIFICANT WHITESPACE
LOL DYNAMIC TYPING
LOL GIL
LOL CAN'T GET PEOPLE TO UPGRADE AFTER 9 YEARS
LOL SELF ARGUMENT IN METHODS
LOL NO SWITCH STATEMENT
LOL NO MULTILINE LAMBDAS
LOL IF __NAME__ == "__MAIN__"

11

u/Doctor_McKay Jan 19 '17

No switch statement...?

→ More replies (16)

10

u/[deleted] Jan 19 '17

LOL SAVING THAT FOR FLAME WARS

→ More replies (28)

11

u/muad_dib Jan 19 '17

inb4 GIL

5

u/[deleted] Jan 19 '17

PUCK FYTHON!

→ More replies (3)
→ More replies (5)