@code_barbarian Profile picture

Valeri Karpov

@code_barbarian

Indie dev, author, blogger, beach chair philosopher. Building @mongoosejs @mastering_js #nodejs #mongodb

Joined May 2013
Similar User
swyx 🔜 @NeurIPSConf x Latent.Space photo

@swyx

mongoosejs photo

@mongoosejs

Tyler McGinnis photo

@tylermcginnis

Paul Irish photo

@paul_irish

Addy Osmani photo

@addyosmani

Robin Wieruch photo

@rwieruch

BrendanEich photo

@BrendanEich

Miško Hevery (AngularJS/Angular/Qwik) photo

@mhevery

not just pixels photo

@getifyX

Apollo photo

@apollographql

kitze 🚀 photo

@thekitze

Mastering JS photo

@mastering_js

David Walsh photo

@davidwalshblog

Lee Byron photo

@leeb

Joe Previte photo

@jsjoeio

My wife is working to save the bees 🐝 Please support @terravera 's campaign on Indiegogo. This is some seriously cool tech that can help protect pollinators and our food supply Check it out and spread the buzz please 🙏

Big news! 🐝 We’re excited to announce that the Indiegogo waitlist is LIVE for ApiVera—Terra Vera’s latest innovation to revolutionize beekeeping and support global food security! 🌎 See comments for more info. Stay updated by Joining the Waitlist: indiegogo.com/projects/autom…

Tweet Image 1


Reason #24601 why you should build and ship npm packages in vanilla JavaScript with no build step: easy to just sub in a GitHub link in package.json for test/dev thecodebarbarian.com/github-is-my-f… vs having to build the package in GitHub actions or some other wacky hack #JavaScript


Thank you @FrontendMasters for sponsoring me on @github You can join them at my sponsors profile: github.com/sponsors/vkarp…


Valeri Karpov Reposted

Mongoose 7.8.3 and 6.13.5 released: 🛠️ Disallow using $where in match #NodeJS #MongoDB #JavaScript


Valeri Karpov Reposted

Mongoose 8.8.3 released 🛠️ Disallow using $where in match 🏎️ Cache results from getAllSubdocs() on saveOptions, only loop through known subdoc properties github.com/Automattic/mon… #NodeJS #MongoDB #JavaScript


Pro tip: you can hack missing webapp features from Chrome console Example: Canva doesn't allow download images Workaround: `document.querySelectorAll('img')` from Chrome console to get image url Also good for summing bank transactions #CodeNewbie

Tweet Image 1

Valeri Karpov Reposted

Mongoose 8.8.1 released 🏎️ Make a few micro-optimizations to help speed up findOne() 🛠️ Apply embedded discriminators to subdoc schemas before compiling top level model so middleware applies correctly github.com/Automattic/mon… #NodeJS #MongoDB #JavaScript


When people think songs about NYC they typically think Sinatra or Jay-Z So wrong The best, most iconic song about NYC is GNR's Welcome to the Jungle IYKYK youtu.be/o1tj2zJ2Wvg?si…


Alright TypeScript devs, how do I fix this annoying compiler error? It's driving me nuts ☹️ #TypeScript #CodeNewbie

Tweet Image 1

Valeri Karpov Reposted

Mongoose 8.7.3 released 🛠️ Close underlying query cursor when calling destroy() 📚 Add JSONSerialized helper that can convert HydratedDocument to JSON output type github.com/Automattic/mon… #NodeJS #MongoDB #JavaScript


Deleting 177M documents from a MongoDB cluster be like #MongoDB #JavaScript

Tweet Image 1

Mongoose's `strict: 'throw'` is helpful with `deleteMany()`, because it prevents Mongoose from deleting every document in the collection if you mistype a field name #NodeJS #MongoDB #JavaScript

Tweet Image 1

Valeri Karpov Reposted

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/mon… #NodeJS #MongoDB #JavaScript


In business always remember "never too high, never too low" Some days you'll feel on top of the world. Other days you'll be wondering if you should become a truck driver Pick yourself up on the bad days, and keep your foot on the gas on the good days


Great event! Looking forward to React Miami '25

Big thank you again to @vercel for sponsoring our React Miami Ship & Sip! We greatly appreciate your support and for sponsoring our conference for all 4 years! (btw these mugs are great for margaritas 🍹)

Tweet Image 1
Tweet Image 2


I get it, node_modules is MASSIVE for node.js projects. Especially when Next.js gets involved But have you ever built a Rust API? 10 GB+ target directory easily


Always hard to maintain backwards compatibility when you figured out "oh, that API has a very inconvenient flaw" Very tricky stuff with Mongoose's `InferRawDocType` helper github.com/Automattic/mon…


Recursion is hard. Why? Because recursion is hard.


Pro tip: make your top-level Vue app component a property on `window` So you can hack whatever state you want from Chrome console Catch style issues easily, like how "Send Me an Invoice" doesn't have disabled style here #JavaScript #CodeNewbie

Tweet Image 1

Valeri Karpov Reposted

Mongoose 8.7.1 released 🛠️ Set flattenObjectIds to false when calling toObject() for internal purposes 🛠️ Add mongodb 8 to test matrix github.com/Automattic/mon… #NodeJS #MongoDB


Loading...

Something went wrong.


Something went wrong.