Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2018 (3)
20082026
  1. …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)
  2. …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
  3. …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…
  4. …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
  5. 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…
  6. Is hexagonal.js basically a very simple state machine framework? :) E.g., https://github.com/pluginaweek/state_machine
  7. 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.
  8. …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