When using ESM in Node.js you don't have `__dirname` anymore and you have to do a little dance to get something equivalent.
It can be a bit tedious, but I recently found out from @delvedor that there's an amazing package called `desm` that will make things easier! π
#nodejs
@delvedor doing a LIVE DEMO of @fastifyjs and getting everything right at the first attempt with his great #vim setup is really impressive to see!
Chapeau!
Happening now at @manc_js
When doing coding challenges often you have to create indices using a combination of data structures like HashMaps and Vectors.
I found a nice way in #Rust to initialize the nested structure only if it doesn't exist already. I don't know if it's idiomatic, but I love it! π