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 π¨
Thanks for the post Harrison, but there is a part of me that would prefer an object which is missing a property, to instead contain something explicit, like null or better yet a failover. With that said, my way or this way we would still be checking downstream that something is not here OR is null or failover. But mine would not need gork time, maybe π€·ββοΈ (I'd do something else wierd instead)
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 π¨
Thanks for the post Harrison, but there is a part of me that would prefer an object which is missing a property, to instead contain something explicit, like null or better yet a failover. With that said, my way or this way we would still be checking downstream that something is not here OR is null or failover. But mine would not need gork time, maybe π€·ββοΈ (I'd do something else wierd instead)
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.