2 Matching Annotations
- Feb 2021
DSLs can be problematic for the user since the user has to manage state (e.g. am I supposed to call valid? first or update_attributes?). This is exactly why the #validate is the only method to change state in Reform.
The reason Reform does updating attributes and validation in the same step is because I wanna reduce public methods. This is to save users from having to remember state.
I see what he means, but what would you call this (tag)? "have to remember state"? maybe "have to remember" is close enough
Or maybe order is important / do things in the right order is all we need to describe the problem/need.
- good point
- order is important / do things in the right order
- have to remember
- simplicity by design
- annotation meta: may need new tag
- reform (Ruby)
- making it easy to do the wrong thing
- making it easy to do the right thing
- state management