Skip to content

floydawong/lua-patterns

Repository files navigation

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)

About

A collection of design patterns/idioms in Lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages