> 1. isolated, reusable, testable code that is easy to reason
> about;
> 2. short “code change → visible result” cycle;
> 3. straightforward dependency management; and
> well-maintained tools.
> Sure, “classic” Rails gives our code some structure: there
> are separate folders for view templates, javascripts,
> stylesheets and images. But as the front-end complexity
> grows, navigating them quickly becomes a cognitive drain.
WAT?
1. I don't see how the directory renaming / npm config changes this at all.
2. I guess this is an argument for speed of asset pipeline? As mentioned in the article itself, Rails 5.1 webpack with hot reloading built in. How much faster can you get?
3. I don't think I've ever heard of npm referred to as a well-maintained tool.
Beyond that, the idea that Javascript-heavy web apps are "Modern" is kind of silly. They're certainly trendy. In the vast majority of the cases I've seen, there's no coherent reason for the added complexity.