Just for larks
© 18 Oct 2011 Luther Tychonievich
Licensed under Creative Commons: CC BY-NC-ND 3.0
other posts

A few bits of pseudo-code.

 

Sometimes I pause and ponder how many different ways there are to write programs. They really are different languages. There’s the c-like languages:

if( this.understood ) {
  you.celebrate();
} else {
  you.learn( cLikeLanguages );
}

and the *nix tools

echo ’abc dbe’ | tr ’ecadb’ ’bdgjo’ | sed ’s/o/oo/’

and the lisp dialects

(define learn
(lambda (n)
(letrec ((inner
(lambda (known needed)
(if (> known needed)
"done"
(inner (+ known 1)
needed)))))
(inner 0 n))))

not to mention the more esoteric choices like prolog and coq

What is it about humans that drives us to uniqueness? The languages can all express the same things; why have so many ways to say things?

Even more curiously, why do I feel an urge to learn them all?




Looking for comments…



Loading user comment form…