ended8월 6일· 1 sources

State Pattern: oggetti che cambiano comportamento in base al proprio stato

Why it matters

Il problema: lo switch sullo stato che divora il codice Un ordine in un e-commerce ha diversi stati: draft, pending, paid, shipped, delivered, cancelled, refunded. Ogni operazione dipende dallo stato ...

1
Sources
+0
24h
Growth
46d
Active

Sources

Related Issues