3 ms·
Yeah but "Hello World" in actual java is a main class and a quick write to stdout, like most any other normal (programming, not scripting) language
by tomc1985 6y ago
Yeah but "Hello World" in actual java is a main class and a quick write to stdout, like most any other normal (programming, not scripting) language
- dragonwriter 6y ago> Yeah but "Hello World" in actual java is a main class and a quick write to stdout, like most any other normal (programming, not scripting) language. Scripting languages are programming languages, and a class with a method is only typical of a narrow class of languages (most of which that aren't Java are specifically designed to closely follow Java); leaving aside those programming languages typically called “scripting” languages, in C++ it is just a function, just like C; D is pretty similar (as are most procedural languages, including those like C++ that also support class-based OOP without being obsessive about it, and also most impure functional languages.) In Haskell it's just: main = putStrLn "Hello, World!"
- tomc1985 6y agoMy point was that Java's hello world is comparable to most other language, and that hello world in Android is a poor example
- deleted 6y ago[deleted]
- dheera 6y agoWell here's GTK hello world in freaking C. One file that you can gcc and run "./a.out". Not 79 files with a build system that breaks every time you hit "upgrade", and which requires me to install gigabytes worth of SDK API bloat and agree to 10 different license agreements. Want a free build system that works for this for every version of Linux in the past decade and probably the coming decade? All you need is ONE "Makefile" and you're done. https://developer.gnome.org/gtk3/stable/gtk-getting-started.html https://developer.gnome.org/gtk3/stable/gtk-getting-started.... Any higher level language and ecosystem than C should be less verbose and less involved than this. Otherwise, what's the point of being higher level?