Tag Archives: Cleaner

Speaking method: Recognizing context for cleaner design – JavaScript Developer

Speaking method: Recognizing context for cleaner design A Quick Introduction This can be a brief publish protecting a comparatively helpful sample for writing capabilities that I’ve discovered very relevant to anybody writing fashionable software program. The sample itself is not significantly arcane, and plenty of developers discover themselves adopting this type with time. Nevertheless, I’ve…

Read More

No Strive/Catch! A JavaScript library to make your asynchronous code cleaner! – Node Developer

No Strive/Catch! A JavaScript library to make your asynchronous code cleaner! When you write apps utilizing Node.JS, you’ve got most likely ended up in then-catch hell. This code under works, however when it’s a must to do giant operations that require you to chain many guarantees collectively, it may possibly get tremendous repetitive and exhausting…

Read More

Some cool JavaScript Shorthand that will make your code cleaner than your peer’s – JavaScript Dev Feed

Some cool JavaScript Shorthand that will make your code cleaner than your peer’s Here are 7 JavaScript shorthands that you as a JavaScript developer should know because who doesn’t like shorter and cleaner code ¯_(ツ)_/¯ Convert string to number Normally we use the parseInt() to do this. But, you can do this using the unary…

Read More

My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code – JavaScript Dev Feed

My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code 1. Destructuring Assignment Destructuring assignment allows one or more object properties to be assigned to variables in a single expression. The created variable will have the same name as the property. let myObj = { id: 1, name: ‘My Object’ }; // without destructuring…

Read More

5 Async/Await Design Patterns for Cleaner Async Logic – Node Dev Feed

5 Async/Await Design Patterns for Cleaner Async Logic At Mastering JS, we love async/await. You might even say we wrote the book on async/await. Here’s 5 design patterns we use regularly. Do not use an async callback with forEach(). In general, the way to simulate forEach() with async functions is to use await Promise.all([arr.map(callback)]) const…

Read More