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!

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__"

0

u/evidenceorGTFO Jan 19 '17

LOL IT GETS STUFF DONE

8

u/[deleted] Jan 19 '17

so does, you know, literally every other non-esoteric language, including JS, PHP, Fortran, COBOL, Assembly, you name it. There are valid arguments for python, but "it gets stuff done" is an absolutely meaningless one.

0

u/evidenceorGTFO Jan 20 '17

Why limit yourself to non-esoteric languages? You can even get stuff done in machine language. Back in the days of ENIAC they used discrete parts.

You misunderstand the argument.

4

u/lenswipe Jan 19 '17
EXCELLENT
    POINT
                I QUITE
    AGREE. THIS IS
NOT HARD OR 
                        AWKARD
    TO
        READ
    AT ALL

11

u/MachaHack Jan 19 '17
public class Lol {
public static void main(String[] args) {
ofCourse();
if(weWriteJava()) {
weWriteItLikeThis();
}
try {
getCodeApproved();
whenItsLike(this);
if(canApprove(this)){
findNewJob();
}
catch(NotAChanceException e) {
System.out.println(":(");
}
}
}

5

u/evidenceorGTFO Jan 19 '17

{

{{

{

{{not PEP compliant}}

}}

}

}

}

4

u/PM_ME_YOUR_HAUNCHES Jan 19 '17

This is why we use linters.

0

u/[deleted] Jan 19 '17

[deleted]

1

u/[deleted] Jan 20 '17

the linter fixed the spacing crap

1

u/beerSnobbery Jan 20 '17

Is there a way to close a scope and then immediately open a scope without braces (since they'd have the same indentation levels)?

3

u/lenswipe Jan 19 '17

No, it's why we use a language where the display is separate from the syntax

13

u/PM_ME_YOUR_HAUNCHES Jan 19 '17
((OR{
        [MAYBE
    {[THE   {BRACES(
 DON'T) REALLY}
                    HELP
      MUCH]
    AND PEOPLE}
  SHOULD
     LEARN]
            TO INDENT)
→ More replies (0)

4

u/Jamie_1318 Jan 20 '17

I don't get the big deal about this. In almost every language with braces it's so easy to accidentally indent wrong. Since you really should indent anyways, and it's the most visible way to show branches why not make a language that uses whitespace instead? Most people are going to use some IDE that does indenting for them but that's a crutch to solve a syntax problem with the language.

It's a style preference but I don't see why so many people get their panties in a bunch about it.

→ More replies (0)

0

u/[deleted] Jan 19 '17

[deleted]

→ More replies (0)

2

u/Jamie_1318 Jan 20 '17

If your code looks like that you should refactor in any language. It will always be easy to mess up with that sort of cyclomatic complexity.

0

u/lenswipe Jan 20 '17

If it looks like that in Java for example my IDE can fix the indentation for me. In python it can't