Re:Erlang creator on how to get started and learning to program
by roel_v on Tuesday July 12, 2011 @10:45AM
(#2754887)
No, it was also about a production setup. The author boasted about how he after 20 or 30 or whatever years of writing software still only used a text editor and make.
And a programming language where of 5 lines of the most simple program only one is really concerned with what the program actually does, is not a suitable beginner's language, or at least is not of particular use to demonstrate the most basic concepts of programming. From the article:
-module(hello).
-compile(export_all).
start() -> "hello world".
> c(hello).
> hello:start().
Compared to PHP's (boo! hiss!):<?php echo "hello world";
(arguably one would have to add the second command for calling it from the command line to this for a fair comparison; on the other hand the command for starting the Erlang shell wasn't included in the 5 lines either:
c:\php\php.exe helloworld.php
)
Anecdote: a complex toolchain that I have worked with for cross-compiling programs for an ARM development board was easier to set up for the command line - using an IDE just added more steps, more mystery and more problems.