Fantastic question Zain, thanks for noticing and posting this.
The environment variables for cloud servers or docker are loaded differently. You likely won’t want a file to travel with your code, as I mentioned. So then how do you get those? If running in Docker you can use Docker’s features to load ENV (several ways). If…
Thanks for the feedback and question. That’s a good point, that you can use the
package.json to store some configuration and read it in your Node.js app.
When deciding to use
package.jsonfor config, I recommend not using sensitive values. The file is checked into source control and can be…
Don’t let other people make you feel like the language you program in is a bad language. It’s literally not, and it’s most likely very necessary and useful!
Nice article. I see a few things from a different perspective, respectfully.
RE: Extra compilation tax … This is true … until it is not true. Browsers are clamoring and close to supporting ES6/ES2015 now, yes. But we’re already wanting to use ES7/ES2016 features like decorators and async/await. So the browsers will then be…
I disagree with this statement “many apps don’t need everything these large frameworks put in the box”. Not because I think many need it, but because this is too vague. What kinds of apps? What constitutes a large framework? What constitutes a framework? Why don’t they need what’s in them? This is too vague to travel down that road.
React and Angular both feel much more JS-like than Angular 1 (or Ember, or Knockout or Backbone) did. They both lean on newer ES201x features and are cleaner. But they both also still have some sugar syntaxes. I don;t see this as a difference in the two