Do you use Docker during development with a Node.js project?
My issues are:
- Running npm scripts is slow
- File watchers needs polling
- Installing dependencies is confusing. Should I stop container, install deps and re-run container?
- Debugging code inside editors like VSCode is a nightmare
Problem: You want to re-throw a JavaScript error to provide a friendlier error. But, you want to keep the original error details too.
Solution: Include the original error via `cause`.
More: https://t.co/TyF4IyYxju
#javascript
โ JavaScript
Error handling is sometimes quite difficult.
Free yourself from some headaches by properly using the "cause" option when rethrowing custom errors!
๐ https://t.co/H4sZ97DfWG
โ HTML
Ever wanted to submit a form with a button outside the <form> tag?
You can add the "form" attribute to your submit button to associate the action to a specific form anywhere on the page! ๐
๐ https://t.co/Ys2yR2aRdn
I have been asked several times, "Where are the docs for the IoC container"?
Before I write those, I wanted to share "Why you need an IoC container?" in the first place.
Here's my take on it. https://t.co/MYXOfobQi9
Feedback is welcome ๐
Note that this will only really matter for code that executes with a very high frequency
For code that only runs occasionally, there may be no noticeable gain. But for things that may have a ton of keys and run very frequently, a Map may help
Benchmark: https://t.co/fH0fTnGSKn
We are super thrilled to announce that @julien_rpt is now part of the core team ๐๐
He has contributed a lot to the ecosystem lately and we cannot miss the opportunity to work with him closely.
Some of his work includes ๐
HERE WE GO ๐
The version 5 of Japa is officially out and docs are available at https://t.co/PecPjvH91C
If you like it, then please show some โค๏ธ on Github by giving it a star https://t.co/rZaA4DfnlS