|
|
|
|
|
by iandanforth
3977 days ago
|
|
There is a fairly important point that is missed by this article. You do not need build tools to write JavaScript and depending on which tools you use there are significant drawbacks to using any them. Before you dive into the world of build tools and process management I urge you to write unminified, ES5 (aka the JavaScript that runs without transpilation today) until it hurts. Write unminified JavaScript and watch your page load times. Write ES5 and time how long it takes you to complete projects of a given size. Write reactjs code but use the JSXTransformer. Watch page performance. Watch how many times you reload the page in a given sitting. It's really only when you find yourself with a problem that you can quantify that these tools start to make sense. Discover for yourself why these tools exist or you'll waste a ton of time learning the newest thing and in the end not have gained much at all. |
|
Three exercises along the lines of the parent that I found particularly valuable:
1. Compare VanillaJS TodoMVC to your framework of choice
http://todomvc.com/
https://github.com/tastejs/todomvc/tree/gh-pages/examples/va...
What does the framework buy you? Is the framework-powered code easier to read? Easier to understand for a newcomer to the code base?
2. Read every line of Effective Javascript (it's short and eminently practical) and write out every code example.
http://www.amazon.com/Effective-JavaScript-Specific-Software...
There are about a dozen small errors in the code in the book, see if you can find them.
3. Read substack's alternative Javascript build flow:
http://substack.net/task_automation_with_npm_run
Think about the possibilities and limitations. (I personally love his approach at the beginning of projects when I could care less about fiddling with gulp and want to get into exploring the guts of a problem)