5 Matching Annotations
- Nov 2023
-
edgeguides.rubyonrails.org edgeguides.rubyonrails.org
-
ActiveRecord::Base.normalizes declares an attribute normalization. The normalization is applied when the attribute is assigned or updated, and the normalized value will be persisted to the database. The normalization is also applied to the corresponding keyword argument of query methods, allowing records to be queried using unnormalized values.
Guess I don't need to use mdeering/attribute_normalizer gem anymore...
-
- Jun 2023
-
stackoverflow.com stackoverflow.com
-
What I have seen is situations where things were made horribly complicated to get around protections for which there was no need, and to try to guard the consistency of data structures that were horribly over-complicated and un-normalized.
-
Far more preferable is to minimize data structure so that it tends to be normalized and not to have inconsistent states. Then, if a member of a class is changed, it is simply changed, rather than damaged.
-
- Feb 2022
- Sep 2019
-
mobx.js.org mobx.js.org
-
With MobX you don't need to normalize your data.
flip side: https://codeburst.io/the-curious-case-of-mobx-state-tree-7b4e22d461f:
MobX cannot guarantee your data is JSON serializable,
-