Skip to content

Repository files navigation

lua-patterns

中文

A collection of design patterns/idioms in Lua

Current Patterns:

PatternDescription
3-tierdata<->business logic<->presentation separation (strict relationships)
mvcmodel<->view<->controller (non-strict relationships)
singletononly one instance create with same Class
abstract_factoryuse a generic function with specific factories
factory_methoddelegate a specialized function/method to create instances
prototypeuse 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

67 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages