[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 15:32:06 +0200
On Thu, Feb 27, 2014 at 3:16 PM, Philipp Janda <siffiejoe@gmx.net> 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
dynamic language. There is this common idea that 'patterns compensate
for language limitations' but this seems unnecessarily harsh. 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:
http://en.wikipedia.org/wiki/Design_Patterns#Patterns_by_Type
A quick look indicates that only a few are specific to classic
statically-typed languages.
steve d.