Comment on Union, intersection, difference, and more are coming to JavaScript Sets
vexikron@lemmy.zip 8 months ago
Ah yes, javascript, the database language.
Jesus fucking christ I am so glad I don’t work in the corporate tech sector anymore.
Comment on Union, intersection, difference, and more are coming to JavaScript Sets
vexikron@lemmy.zip 8 months ago
Ah yes, javascript, the database language.
Jesus fucking christ I am so glad I don’t work in the corporate tech sector anymore.
kogasa@programming.dev 8 months ago
Sets aren’t just for databases
vexikron@lemmy.zip 8 months ago
If you need to be able to do unions and you are doing it in javascript, you are being absurdly inefficient compared to setting up a postgres db, but i wont be able to convince you of this because of basically nonsense brainwashing from your corporate conditioning.
median_user@lemmy.one 8 months ago
Sets are super useful for all sorts of stuff where you want the datatype to guarantee there is only one instance of a value in the collection. UI components where you are incrementally adding things to a selection is a great example.
It’s a completely standard feature in many stdlibs and has nothing to with turning JS into a database.