Hacker News new | ask | show | jobs
by corndoge 3745 days ago
This article is the ML equivalent of Hello World.
2 comments

So where does my MNIST classifier fall? The ML equivalent of opening a text editor?
It's the FizzBuzz.
Hello World is not trivial if you are writing it in java.
Not a great analogy. It's still one line of code; just a very stupid one line of code. [System.out.println("Hello World"))]
It's not even a stupid line of code - it's just a line of code which happens to namespace things which most other languages don't.

System is a global object which handles various pieces of the runtime system. One variable on this object is `out` (of type PrintStream) which represents stdout. The `println` method of PrintStream actually does the work.

I get why this seems overly verbose in comparison to Python and similar languages, but I don't think it's stupid. It's just emphasizing explicitness and uniformity over brevity.