2 ms·
I'm unfamiliar with whatever recent chatter on "primitive obsession" there's been, but it's not a new idea ( http://www.jamesshore.com/Blog/PrimitiveObsession.h
by angersock 10y ago
I'm unfamiliar with whatever recent chatter on "primitive obsession" there's been, but it's not a new idea ( http://www.jamesshore.com/Blog/PrimitiveObsession.html http://www.jamesshore.com/Blog/PrimitiveObsession.html ) and has been discussed elsewhere ( http://wiki.c2.com/?PrimitiveObsession http://wiki.c2.com/?PrimitiveObsession ).
Frankly, while I do see the point about fixing it with value objects and whatnot, I rather think that is a sign of wannabe architect/PL wankery.
Javascript has a basically useless type system in practice (especially with legacy code) and has a lot of really handy/flexible features that would only interact badly with attempts to fix this "primitive obsession" stuff.
I don't think it matters in the JS ecosystem.