|over 1 year ago||5 months ago|
|MIT License||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
We haven't tracked posts mentioning Workflow yet.
Tracking mentions began in Dec 2020.
Practical State Machinery
3 projects | dev.to | 29 Mar 2023
State Machines (Ruby) - A popular library providing a Ruby DSL for easily building finite state machines
Why Developers Never Use State Machines (2011)
2 projects | news.ycombinator.com | 22 Jan 2023
As a regular user of the state_machine Ruby gem, I wouldn't recommend it. If you don't believe me, just check out the "Class definition" section of the usage examples: https://github.com/state-machines/state_machines#usage
The problems are obvious. It's built on magic and indirection. This leads to difficult to debug state machine problems. For anything beyond simple state machines you quickly lose any idea of what your object is doing.
ActiveRecord: Adding Boolean methods for DateTime columns
4 projects | /r/rails | 17 Sep 2022
Might this be better handled with a state machine with active record integration?
Ruby 3 Released
5 projects | /r/programming | 24 Dec 2020
Here's an example of how it can happen - look at the code examples in https://github.com/state-machines/state_machines - almost everything you are coding is in the DSL of that library if you are using it:
What are some alternatives?
AASM - AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
State Machine - Adds support for creating state machines for attributes on any Ruby class
Statesman - A statesmanlike state machine library.
FiniteMachine - A minimal finite state machine with a straightforward syntax.
simple_states - A super-slim statemachine-like support library
FeatureFlags - Feature flags for Rails application.Manages ‘flags’ within your Rails app that determine whether various features are enabled or not.
StatefulEnum - A very simple state machine plugin built on top of ActiveRecord::Enum
transitions - State machine extracted from ActiveModel