#413 — November 23, 2018
Read on the Web
Create a Serverless Powered API in 10 Minutes — Use Cloudflare Workers to create and deploy a serverless API to 150+ data centers.
Cloudflare Workers sponsor
WebSockets: A Conceptual Deep-Dive — An extensive look at the world of WebSockets, the browser technology that can provide a fast, full-duplex persistent connection between a server and client.
Sr. Angular Engineer at Services/Product Firm (Toronto /Remote) — Do you love Angular and helping teams build products? Join forces with thought-leaders and Fortune 500 teams. Code, teach, speak.
Lead Front-End Developer with a Passion for UX (Remote) — Lead our front-end efforts, create tactful and experience-enhancing animations, and ultimately impact the way people learn design.
The Interaction Design Foundation
Join Our Career Marketplace & Get Matched With A Job You Love — Through Hired, software engineers have transparency into salary offers, competing opportunities, and job details.
📘 Tutorials and Opinions
Building an Interactive Infographic with Vue.js — A thorough guide to building a dynamic and interactive infographic using Vue.js, SVG and GreenSock (for animation).
Tackling UI Complexity with State Machines
Read Now: The Ultimate Guide To npm — Everything you need to know to know to use the npm CLI, from basic building blocks to time-saving tips and tricks.
Sean van Mulligen
Creating iOS 12 Shortcuts with JS and Shortcuts JS — GitHub repo.
How Do Top Developers Deliver Video? – Download the 2018 Video Report
How JSX is a Stellar Invention, Even with React Out of The Picture
Daniel Brain (PayPal)
I don’t have any special secret, I’ve made a personal commitment to writing regularly because I find it helps me refine my ideas. I spend a lot of time coding, and I write as a way to identify general principles from the day-to-day of finding bugs and adding features. Writing gives me a great excuse to try out new libraries or frameworks.
Have you seen any ways in which async/await are overused or misused that people should avoid?
The most glaring issue is using async/await with a framework without looking to see if the framework actually supports it! There’s probably a lot of developers out there wondering why their async Express route handler isn’t sending a response or why their React component’s async componentDidMount function isn’t working with server-side rendering.
I also see a surprising amount of code that uses async/await mixed with classic callbacks or promise chains. While passing an async function to a promise’s then() function as shown below is valid, it misses the point of async/await:
What resources should our readers check out to learn more about async/await?
When I first started working with co and generators, it took me a while to get out of my own way and be comfortable writing loops instead of reaching for libraries like async. My article on async/await design patterns has some more advanced examples of using async/await with loops.
The Pony Foo article on async/await is also excellent. While it’s an older article now, it does a great job explaining how code that uses async/await is every bit as asynchronous and non-blocking as callback-based code.
Valeri Karpov is the author of Mastering Async/Await — out now.
🔧 Code and Tools
Demoboard: A Live Code/Demo Editor That Integrates with npm
James K Nelson
create-yo: Use Any Yeoman Generator with npm init
Black Friday Sale: Quokka.js – Debug Without breakpoints/console.log — Quokka displays execution results in your editor as you type. Get it now with a 50% discount.
Nivo: D3.js-Powered React Data Visualization Components — Examples and code on the official homepage.
Awesome Angular GraphQL: A Curated Collection of Resources, Clients and Tools
React Day Berlin (November 30 in Berlin, Germany)
JS Kongress 2019 (March 11-12 in Munich, Germany)
JSHeroes 2019 (April 11-12 in Romania) — Two days of conference talks and workshops.
JSConf EU: Call for Speakers (June 1-2 in Berlin) — You can now submit talks for the 2019 JSConf EU. The deadline is December 23rd.