[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How can I learn about Object Oriented programming with lua?
- From: Philipp Janda <siffiejoe@...>
- Date: Thu, 27 Feb 2014 14:56:22 +0100
Am 27.02.2014 14:32 schröbte steve donovan:
On Thu, Feb 27, 2014 at 3:16 PM, Philipp Janda <email@example.com> wrote:
Am 27.02.2014 13:33 schröbte Wouter Scherphof:
If you want to reimplement the GoF patterns in Lua you probably need most of
the OO features that C++ provides. I don't know how reasonable that is.
I think their original background was Smalltalk, which is a very
IIRC, the implementations were done in C++. It has been a few years,
though, since I last looked at that book.
There is this common idea that 'patterns compensate
for language limitations' but this seems unnecessarily harsh.
I've heard that before (from a Lisp guy, surprise!). I think it was Paul
Graham (see here).
They are a way of looking at components of a *design* at a
higher-level. It's a lot easier to do these things in Lua, but they
are still useful tools for thinking.
Would be interesting doing a wiki page and systematically going
through the patterns:
A quick look indicates that only a few are specific to classic