The March of Progress (in programming language syntax :)
alan.dipert.org
The March of Progress (in programming language syntax :)
1–10 of 29 posts
Re: The March of Progress (in programming language syntax :)
#2Re: The March of Progress (in programming language syntax :)
#3Using Scala and co only brings you a part of the way, especially if you have to interact with Javaesque APIs like in Android, where you have dozens of different abstract classes (or sometimes interfaces) begging for anonymous inner classes.
Re: The March of Progress (in programming language syntax :)
#4Re: The March of Progress (in programming language syntax :)
#5Re: The March of Progress (in programming language syntax :)
#6 MACLISP (1980):
(format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996)
--> Week fifteen of the one hundred second month of the year MDCCCCLXXXXVI
C/C++/Java/Python/Ruby:
...uh...
COMMON LISP:
(format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996)
--> Week fifteen of the one hundred second month of the year MDCCCCLXXXXVI
There are powerful print functions and then there are powerful print functions.Re: The March of Progress (in programming language syntax :)
#7I'm not sure what the point of this is. It seems pretty petty. To wit, we could have just we well written... MACLISP (1980): (format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996) --> Week fifteen of the one hundred second month of the year MDCCCCLXXXXVI C/C++/Java/Python/Ruby: ...uh... COMMON LISP: (format t "Week ~R of the ~:R month of the year ~:@R~%" 15 102 1996) --> Week fifteen of the one hundred…
Of course, like all irony the glass is only half funny.
Re: The March of Progress (in programming language syntax :)
#8Is the author related to this post made 4 days ago here on HN? http://news.ycombinator.com/item?id=3942636
Re: The March of Progress (in programming language syntax :)
#9 printf "%10.2f"
-- Haskell, 1990.Re: The March of Progress (in programming language syntax :)
#10As a Java programmer, I agree that NumberFormat looks ridiculous there. It's a lot of work for a single number to string conversion.
Luckily, since Java 5 there is a printf function:
System.out.printf(...);