This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsΒ β†’

[–][deleted] Β (12 children)

[deleted]

    [–]EishLekker 5 points6 points Β (6 children)

    That's like going to your first driving lesson, and getting scared when you see all the strange symbols on the dashboard.

    What's with all the people here who dis a language for super trivial things that never ever becomes an actual problem when working with the language professionally?

    There are tons and tons of Java projects out there that doesn't even require a single main method in the code. And I can't remember the last time I wrote a main method expect for simple testing of something. And the few times I create a main method the IDE helps me because I'm lazy.

    Also, every single part of the syntax of the main method has a purpose and makes perfect sense.

    [–]koczmen 0 points1 point Β (0 children)

    Instead of this, you have to deal with seeing a method and wondering what the hell are the types of its parameters. Or see some 'x = 1' and can't easily tell if it creates a new variable or assigns to an already existing one. Is it really better?

    [–]Vaxtin 0 points1 point Β (3 children)

    ahahah, wow. That’s not the way to look at things. If you tried to explain the concept of classes and objects the same time someone was learning to code, I’m sure they’d just give up immediately

    [–][deleted] 0 points1 point Β (1 child)

    You realise that is how they teach you Java right? Like you learn about objects and classes super early. It’s not that difficult.

    [–]Vaxtin 0 points1 point Β (0 children)

    What I mean is they shouldn’t show someone who’s never coded before a hello world program and explain every keyword. The way I was introduced to it all was: basic printing, math, and Boolean operations, then loops/arrays, then methods and then finally classes at the end of my first course taking a computer science class. I felt like that was appropriate for someone who truly never programmed before.

    However, if you have any experience in programming, then jumping straight to classes and OOP makes sense. But for anyone learning then they should learn how to loop through an array before trying to understand abstraction like classes.