News for hackers. Stuff that matters.
Re:Developers should be force-fed state machines (2011) by vemv on Thursday April 20, 2023 @08:00AM (#35638720)
When they seemingly need go "back and forth" I typically consider it good timing to create a new instance (object, or DB row) instead of keeping mutating the same instance.

e.g. one can consider a re-purchased return simply a new purchase, instead of doing a purchased->returned->purchased transition.

There are no comments on this comment yet.