/lua-patterns

A collection of design patterns/idioms in Lua

Primary LanguageLua

lua-patterns

中文

A collection of design patterns/idioms in Lua

Current Patterns:

Pattern Description
3-tier data<->business logic<->presentation separation (strict relationships)
mvc model<->view<->controller (non-strict relationships)
singleton only one instance create with same Class
abstract_factory use a generic function with specific factories
factory_method delegate a specialized function/method to create instances
prototype use a factory and clones of a prototype for new instances (if instantiation is expensive)