Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the Interpreter Pattern suck?

In Steve Yegge's review of Design Patterns, he calls the Interpreter Pattern an "in-joke". He goes on to talk about how the perception of compilers have changed, yet how interpreted languages are still s*** on, although I can't see how this ties into the pattern.

Anyone want to enlighten this ignorant student?

like image 643
Mike Douglas Avatar asked Jan 31 '09 03:01

Mike Douglas


2 Answers

That was irony :) Everybody loves interpreted languages nowadays but 10 years earlier people just thought they are too slow for anything practical. Much like today most of people thinks about static vs. dynamic typing.

like image 161
vava Avatar answered Sep 20 '22 14:09

vava


The INTERPRETER pattern sucks because it's a codification of Greenspun's tenth rule:

Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.

This was stated in 1993. A modern addendum might include C++ and Java.

like image 42
Jonas Kölker Avatar answered Sep 20 '22 14:09

Jonas Kölker