Thursday, August 19, 2004

How to Write Unmaintainable Code

Great article that did the rounds a few years ago. I'm just happy because I can still read the code in these snippets, so I can't have been completely Microsoft-ised just yet:

"LISP is a dream language for the writer of unmaintainable code. Consider these baffling fragments:

(lambda (*<8-]= *<8-[= ) (or *<8-]= *<8-[= ))

(defun :-] (<) (= < 2))

(defun !(!)(if(and(funcall(lambda(!)(if(and '(< 0)(< ! 2))1 nil))(1+ !))
(not(null '(lambda(!)(if(< 1 !)t nil)))))1(* !(!(1- !)))))

"

0 Comments:

Post a Comment

<< Home