Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Using Java 9 Modularization to Ship Zero-Dependency Apps. Parent comment
1) Install node.
2) Write script. e.g.
console.log('hello');
> node script.js hello
1-10) Download Java *
11) Ensure JAVA_HOME is set right
12) Write java
public class Hello { public static int main(String[] args) { System.out.println("hello"); } }
> javac Hello.java
> java Hello hello
EDIT: Code formatting thanks to https://news.ycombinator.com/formatdoc
There are no comments on this comment yet.
1) Install node.
2) Write script. e.g.
3) Run script: Java1-10) Download Java *
11) Ensure JAVA_HOME is set right
12) Write java
13) Compile java 14) Run java * Yes, this is obviously facetious.EDIT: Code formatting thanks to https://news.ycombinator.com/formatdoc