6
kiki
6y

Not knowing what persistence was and copying JS objects with JSON.parse(JSON.stringify(...)) trying to make it “pure immutable”.

Fml.

Comments
  • 0
    Yo i still do that
  • 0
    @sharktits use immutable.js or Mori.js bro, you make your apps suck at performance
  • 0
    What’s persistence tho?
  • 0
    @bcye it’s when you create copy of some data structure, and it’s just happens to be pointer to another node, like in linked lists. So it’s O(1), very fast
Add Comment