Use JavaScript like TypeScript with JSDoc & VSCode - Code with Hugo - Jun 16th 2020
Welcome to the 80th Edition of the Code with Hugo newsletter about JavaScript, Node.js & Enterprise patterns.
Here are 3 links I think are worth your time this week,
-
“How to get type-checking and generate TypeScript Typing declaration (types.d.ts) from JSDoc annotations” How to achieve TypeScript-like behaviour in Vanilla JavaScript using JSDoc and @ts-check in VSCode. (5 min read) : https://codewithhugo.com/jsdoc-typescript-typings-types-d-ts/
-
Only Intrinsic Motivation Lasts - Last week I left my cushy job at Amazon after 8 years. Despite getting rewarded repeatedly with promotions, compensation, recognition, and praise, I wasn’t motivated enough to do another year. (5 min read): https://medium.com/@dvassallo/only-intrinsic-motivation-lasts-92c0497cf97c
-
Your framework can fuck off - Obese frameworks like React and Vue are all the rage. I’m here to tell you that they can fuck off, plain and simple. (1 min read): https://kbarker.dev/2020/04/21/your-framework-can-fuck-off.html
Tweet of the week a11y PSA by@SaraSoueidan:
Saw a tutorial containing this snippet:
<button aria-label="Add to Cart">Add to Cart</button>
This is ARIA overuse. Text inside the
<button>
will be used as an accessible label for the button by default. You don’t needaria-label
here.— Sara Soueidan (@SaraSoueidan) May 10, 2020
The book recommendation this week is/This month/week I recommend/I’ve finished/been thinking about [book]. [INSERT REVIEW/NOTES]
That’s all for this week, stay tuned for more JavaScript tips to help you get stuff done.
Hugo