Bite sized JavaScript tutorials for busy developers Follow us on Substack: masteringjs.substack.com

null
We love this pattern: a `/api/status` endpoint that displays 1️⃣ Current package.json version 2️⃣ Current environment Makes it easy to double check what's in prod, and make sure you're not talking to prod Check out our ExpressJS tutorials 👉 masteringjs.io/express #NodeJS
2
3
3
171
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
15
Line items are probably our most commonly reused @mongoosejs schema. Pretty much every codebase we have needs something like this More on Mongoose schemas 👉 masteringjs.io/tutorials/mon… #JavaScript #MongoDB #CodeNewbie
3
2
99
Mastering JS retweeted
We recommend avoiding most API wrapper packages on npm They're typically poorly maintained, poorly documented, and bring a lot of security vulnerabilities Better to just use Axios to make requests directly Here's how we use Axios to send Mailgun emails #NodeJS #CodeNewbie
1
2
3
194
We recommend avoiding most API wrapper packages on npm They're typically poorly maintained, poorly documented, and bring a lot of security vulnerabilities Better to just use Axios to make requests directly Here's how we use Axios to send Mailgun emails #NodeJS #CodeNewbie
1
2
3
194
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
14
This is what most of our Webpack configs look like today The `type: 'asset/source'` is 💯 , means we can import HTML files and CSS files as strings Means we write Vue templates in HTML 🆒 masteringjs.io/tutorials/vue… masteringjs.io/tutorials/web… #JavaScript #CodeNewbie
1
120
Vue's `$emit()` function is great for passing data from child components back up to the parent For example, if you want to pass Stripe secret as a prop, and then return the new Stripe element for `confirmPayment()` masteringjs.io/tutorials/vue… #VueJS #CodeNewbie
1
1
5
212
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
1
25
TIL you can't run `node` on a glob of files Use a bash for loop to run node on every file in a dir instead 👇 #NodeJS #CodeNewbie
2
1
140
Mastering JS retweeted
Easy way to check the current major node version Learn more 👉 masteringjs.io/tutorials/nod… #NodeJS #CodeNewbie #JavaScript
1
2
3
250
Easy way to check the current major node version Learn more 👉 masteringjs.io/tutorials/nod… #NodeJS #CodeNewbie #JavaScript
1
2
3
250
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
11
Mastering JS retweeted
You can use the spread operator combined with arrow functions as a vanilla JS replacement for Lodash's omit(). More about spread operator 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
2
4
205
You can use the spread operator combined with arrow functions as a vanilla JS replacement for Lodash's omit(). More about spread operator 👉 masteringjs.io/tutorials/fun… #JavaScript #CodeNewbie
1
2
4
205
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
20
Mastering JS retweeted
A good heuristic for building your docs: whenever someone asks you a question, you should reply with a link to your docs. If you don't have a good answer in your docs, write one and link to it. #JavaScript #CodeNewbie
1
2
4
182
A good heuristic for building your docs: whenever someone asks you a question, you should reply with a link to your docs. If you don't have a good answer in your docs, write one and link to it. #JavaScript #CodeNewbie
1
2
4
182
Love our tutorials? Sign up for our weekly newsletter and never miss a tutorial! getrevue.co/profile/masterin…
7