top | item 29137598

(no title)

abhisuri97 | 4 years ago

Fully agree with this. The fact that the "hello world" program involves the use of several keywords (public static void main String[] args System.out.println) that students will have no idea about until 1-2 months later is not ideal. Compare that to python "print('hello world')" is very intuitive.

discuss

order

yeputons|4 years ago

I don't see much difference between `System.out.println` and `print`. Both should be spelled exactly as they are. You cannot say `write`, `say` or `Print` in Python despite it being somewhat synonym to `print` in English.

They are parts of syntax, and any language will have some syntax to learn, and there are always syntactic quirks.

Granted, Python has lighter syntax than Java, but I don't think Java is too verbose for beginner's purposes.

cerved|4 years ago

what's System

what's out

why is there a period, what does that mean

what's ln

what's pubic

what's static

what's void

what's main

what's String[]

what's args

Java is as verbose as it gets with lots of unnecessary information at a beginner level

bbarn|4 years ago

I think AP's point here wasn't that command, it's all of the class structure required to get to the coding. You either have to introduce that as "don't worry about that, it'll come later" or introduce OOP basics on the way to simply stating hello world.