While I agree in some part, most of those examples aren't actually programs. Issuing a statement to print a string at the prompt is not the same thing as a program. BASIC allows you to add the program line number to the print statement and now it is a fully runnable, re-runnable and re-entrant program. How would you re-run the Lisp, shell, AWK, Python, Ruby or Java "Hello world" script? You would have to retype it or make us of line recall in the shell. Same goes with editing the program. Only the C example qualifies as a program, but of course it has to include the main loop in order to do that whereas BASIC only needed the line number and print statement to be a fully qualified program.
This is why BASIC shines here. It doesn't need to be written to a file to be re-runnable/invoked. All the other languages require additional steps or code in order to qualify as a program. This is why I made my comment as I did. I knew that it could bring discussion over the qualifications of what makes a program a program. This sub needs more discussion topics and here we have one now.
Some of your examples are incorrect.
For example, JAVA
System.out.println("hello world")
Nice try dude. You cannot simply compile and run that statement.
You need
public static void main(string[] args) { System.out.println("hello world") }
Which is quite a bit more verbose than 10 ?"Hello world"
Plus, the Lisp example isn't technically an application. Nor a routine of any kind. It's simply a string.
Edit: inb4 "nitpicking". Nuance is crucial to logic, mathematics.
(post is archived)