Skip to content

Instantly share code, notes, and snippets.

@lemonmade
Last active February 10, 2016 17:37
Show Gist options
  • Save lemonmade/8ea2aaf0fed09301973a to your computer and use it in GitHub Desktop.
Save lemonmade/8ea2aaf0fed09301973a to your computer and use it in GitHub Desktop.
|- app
| |- assets
| | |- javascripts
| | | |- popover.js
| | |- stylesheets
| | | |- popover.scss
| |- helpers
| | |- ui_popover.rb
| |- views
| | |- styleguide
| | | |- popover.html.erb
|- test
| |- javascripts
| | |- unit
| | | |- popover_test.js
| |- unit
| | |- helpers
| | | |- ui_popover_helper.rb
different repo...
|- components
| |- popover
| | |- popover.sketch
| | |- README.md
|- components
| |- popover
| | |- popover.js
| | |- popover.scss
| | |- popover.rb
| | |- README.md
| | |- test
| | | |- popover-test.js
| | | |- popover_test.rb
@ry5n
Copy link

ry5n commented Feb 10, 2016

I’ve previously worked on projects (caveat: not Rails) that made this switch. The biggest vote of confidence was from the lead dev who set up the original structure, but wasn’t deeply involved in the change. He started up a new project (we built lots of projects with the same scaffolding) and immediately fell in love with the change.

Beyond anecdotes, I sympathize with this being different from Rails conventions. OTOH, in terms of front-end, the paradigm shift has already happened. Components (not HTML/CSS/JS) are the primary way of factoring an interface. It’s not a blocker of course, but the current way is a source of conceptual friction. The assets package is a great opportunity to re-align things. I’m in favour of pursuing this at least to the next stage, where we can see in more detail what the implications are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment