Node version changing made easy:
https://www.npmjs.com/package/n
Simply `n` launches a select node version screen
Typing `n 6.10.3` will install and switch to node version 6.10.3
Simple, fast and super efficient!
Visual Studio code & Es5 to Es6 plugin
Visual Studio Code, I used webstorm for the past +1 year (2 maybe?) and really enjoyed working with it. However my version is not getting any younger and does not support for more than ES5 so a change had to be made! Since most of the office is working on Visual Studio code the choice was obvious.As for the plugin:
Helps removing a lot of boilerplate code, take advantage of more strict variable declaration and most importantly it's one step further to transition old code projects to something a bit more up to date.As a fun fact I can say that after running this plugin on a legacy code controller there was a saving of only 20 lines of code but the keyword function count dropped from 125 to ... 2. That is a lot of nice and clean arrow functions!
DB migration
Just a note to self, checking that no one else is using your local db remotely was a good move but doing a local backup before reinstalling (just in case) is a good move that I should remember to do not only on production servers. Local backups are also useful!
No comments:
Post a Comment