Mongoose 8.7.2 released
🛠️ Recursively clear modified subpaths when setting deeply nested subdoc to null
📚 Make Buffers into mongodb.Binary in lean result type to match runtime behavior
github.com/Automattic/mongoo…#NodeJS#MongoDB#JavaScript
Mongoose 8.7.1 released
🛠️ Set flattenObjectIds to false when calling toObject() for internal purposes
🛠️ Add mongodb 8 to test matrix
github.com/Automattic/mongoo…#NodeJS#MongoDB
I've worked with S-Tier programmers that dev on Linux. Also ones that dev on OSX.
Even a couple that dev on Windows
Sorry to say it, but switching OS won't make you a better developer
#CodeNewbie#JavaScript
Good naming means making your names specific enough to inform what the function is doing from the function name
Today we saw a function named `parseAndValidateUserData()` 😭😭😭
On a scale from 1-10, that's a 2. 1 would be function named `doStuff()`
#100DaysOfCode
Controversial take: you shouldn't use `forEach()` in modern JavaScript.
Only possible exception is if you have a quick one-liner or if you really really know what you're doing.
Here's why: masteringjs.io/tutorials/fun…#JavaScript#CodeNewbie
JavaScript doesn't support named parameters, but destructuring objects can let you fake named parameters.
Just make the first parameter an object and destructure: masteringjs.io/tutorials/fun…#javascript#CodeNewbie
We find ourselves going back to this tutorial EVERY SINGLE TIME we add Webpack to a new project.
masteringjs.io/tutorials/web…
If only we could find a way to memorize Webpack configs 😆 Or maybe just write a CLI tool? 🤔
#CodeNewbie#100DaysOfCode
Thanks @tailwindcss for making it possible to build this UI in under 10 mins
Most of that was just scrolling through Tailwind UI picking what I liked
#CodeNewbie#100DaysOfCode