Profile

Cover photo
1 follower|4,136 views
AboutPostsPhotosVideos

Stream

byte archer

Tutorials & Books  - 
 
It's hard to update a new version of a library. Semantic versioning screws things just enough, so it's safer to manually edit package.json than to attempt npm acrobatics. Here's the correct way to update dependencies using only npm from the command line. Updating to close-by version with
1
Add a comment...

byte archer

Shared publicly  - 
 
If you use npm install --save to install packages, npm updates dependencies in package.json and re-indents the file to use 2 spaces. Depending on your coding standards this might not be to your liking. To makes matters worse, committing a change to package.json with varying indentation creates hard-
1
Add a comment...

byte archer

Shared publicly  - 
You see both ES6 and ES2015 names used for the version of JavaScript that introduces arrow functions, template strings, and Promises. You'd like to get things right. Which name is correct? What name should you use? Officially it's ECMAScript 2015 Language Officially, the name is "ECMASc
1
Add a comment...

byte archer

Shared publicly  - 
 
You need good tools for writing tests Writing tests is not the most enjoyable task for many developers. Things become much easier when you have a fast response time in the edit-compile-test cycle. Combine it with a good expressive testing framework and you're off to a better start. Test-driven d
1
Add a comment...

Communities

4 communities

byte archer

Shared publicly  - 
 
It's hard to update a new version of a library. Semantic versioning screws things just enough, so it's safer to manually edit package.json than to attempt npm acrobatics. Here's the correct way to update dependencies using only npm from the command line. Updating to close-by version with
1
Add a comment...

byte archer

Shared publicly  - 
Performing something after an asynchronous call has ended requires you to place subsequent program logic inside a callback. Performing multiple steps leads to deeply nested callbacks. Is there any way avoid deeply nested callbacks? There are two good ways to flatten nested callbacks. They both have
1
Add a comment...

byte archer

Shared publicly  - 
 
You've seen both 'single quotes' and "double quotes" used for writing strings in JavaScript. You're wondering if they have any difference. Is there a preference over the other? Which way should you use in your code? They are the same thing In JavaScript, a string is a seque
1
Add a comment...

byte archer

Shared publicly  - 
 
Committing changes to git is laborious. First, you view the changes with git diff , maybe refine the output with advanced options, then git add the files and finally git commit the changes. Make a couple of typos on the way and this adds up to about 30 keystrokes. The efficient developer in you star
1
Add a comment...
Communities
4 communities
Story
Tagline
Teachings on JavaScript, Node.js and TypeScript so you can be at home in today's all-JS web development world.
Introduction
Accompanying you to modern day JavaScript - across the stack development tips from Node.js to TypeScript