pluginaweek/state_machine
View on GitHub ↗ ★ 3,715 Ruby
Adds support for creating state machines for attributes on any Ruby class
8 mentions on Hacker News by 8 people: 0 stories, 8 comments · first 2011-06-13 · latest 2024-03-24
20082026
-
…lines of: Can't transition Command from 'ordered' to 'to-deliver': paid() == false look at this gem https://github.com/pluginaweek/state_machine to get an idea of what features are possible
comment by kjqgqkejbfefn · 2024-03-24 · in Programmers are bad at managing state (2020) -
…at one time was very hot and actively maintained but went on to get left in an aggressive limbo ( https://github.com/pluginaweek/state_machine ).
comment by dasil003 · 2018-09-28 · in Upgrading GitHub from Rails 3.2 to 5.2 -
…a neat source file per SM that contains only the allowed transition mappings or do something like https://github.com/pluginaweek/state_machine where the transitions are contained behind methods. My experience with recursion has been the…
comment by mtkd · 2018-02-27 · in Why Developers Never Use State Machines (2011) -
…framework/language you use is a very important factor in their adoption. 1 current version: https://github.com/pluginaweek/state_machine 1a original unmaintained version: https://github.com/pluginaweek/state_machine
comment by danmaz74 · 2018-02-27 · in Why Developers Never Use State Machines (2011) -
In ruby we have the very mature and featureful state_machine gem: https://github.com/pluginaweek/state_machine I recently found out you can even choose to define states using arbitrary objects/functions, eg. date ranges. Sounds a bit crazy…
comment by JonnieCache · 2014-05-01 · in Co-routines as an alternative to state machines (2009) -
Is hexagonal.js basically a very simple state machine framework? :) E.g., https://github.com/pluginaweek/state_machine
comment by bjfletcher · 2013-02-22 · in Non-framework approach to JavaScript apps - hexagonal.js -
This is what bugs me about state machines (like https://github.com/pluginaweek/state_machine ). Adding a history or audit always seems like a giant hack.
comment by joevandyk · 2011-08-12 · in Storage is Cheap, Don't Mutate - Copy on Write -
…would learn more about state machines from looking at the Ruby gem that's linked to in the article: https://github.com/pluginaweek/state_machine
comment by pacemkr · 2011-06-13 · in Why developers should be force-fed state machines