Absolutely - I tend to agree that while there are some cases where this pattern is useful, itβs often better to keep a consistent object schema, and explicitly set the missing properties to null.
As with all things (especially somewhat obscure patterns), use with caution!
Howβs it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK π¬π§
Education
10 plus years* active enterprise development experience and a Fine art degree π¨
Absolutely - I tend to agree that while there are some cases where this pattern is useful, itβs often better to keep a consistent object schema, and explicitly set the missing properties to null.
As with all things (especially somewhat obscure patterns), use with caution!
It's a hobby to know strange JavaScript, I can relate.
I am also interested in the obscure, checkout my labeled loops post, it's right up there in the do not do this camp.