Why does the Interpreter Pattern suck?

前端 未结 3 738
半阙折子戏
半阙折子戏 2021-02-05 14:25

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 inte

相关标签:
3条回答
  • 2021-02-05 14:52

    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.

    0 讨论(0)
  • 2021-02-05 14:57

    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.

    0 讨论(0)
  • 2021-02-05 15:08

    He loves it according to this: http://steve-yegge.blogspot.com/2007/12/codes-worst-enemy.html.

    0 讨论(0)
提交回复
热议问题