Skip to content

State design pattern

Devrath edited this page May 23, 2021 · 9 revisions

Why we use this pattern

  • We use the State design pattern to handle different states for a feature also, more importantly, there is a possibility that in the future more features added with the same states, and those states behave differently in new features compared to existing ones.
  • Remember not to use the state design pattern just to handle few states, which is called abusing the pattern un-necessarily and increasing the complexity

Projects
ToolBox

Project: Toolbox

Toolbox

Clone this wiki locally