[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How can I learn about Object Oriented programming with lua?
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 27 Feb 2014 16:09:49 +0200
On Thu, Feb 27, 2014 at 3:56 PM, Philipp Janda <siffiejoe@gmx.net> wrote:
> I've heard that before (from a Lisp guy, surprise!). I think it was Paul
> Graham (see here[1]).
Ah, the original Mr Opinions...(I do like his essays tho)
Good quote from that page:
""Peter Norvig found that 16 of the 23 patterns in Design Patterns
were 'invisible or simpler' in Lisp."
http://www.norvig.com/design-patterns/"
For Lisp, read Lua ;)
But note - some of those patterns did not disappear...
e.g. "Observer is a publish/subscribe pattern ...". That's a useful
idea. It's not difficult to implement in Lua, but that has nothing to
do with its usefulness. You have various subsystems, and they need to
track changes. Rather than forcing the changing code to notify them
all, rather make the subsystems subscribe to events caused by the
change.
steve d.