Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
# .bash_profile | |
# Copy this file on the desired machine. | |
# This script will change your iterm tab color and the background for that tab. | |
# Requirements | |
# - iterm as terminal | |
# - a profile named Prod in iterm. You can configure it how ever you want. A profile can be found in Preferences -> Profiles | |
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers: