5 Matching Annotations
  1. Nov 2023
    1. 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...

  2. Jun 2023
    1. 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.
    2. 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.
  3. Feb 2022
  4. Sep 2019
    1. 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,