Skip to content

How do you organize components? #67

Closed Answered by joelhawksley
dimitrikochnev asked this question in General

You must be logged in to vote

@rosendi a couple folks have brought up this same concern, both publicly and privately.

With the convention to organize class files in the module/class_name.rb format, giving each component its own folder unfortunately leads to naming issues as you've identified.

For now, we've been pretty aggressive about using modules to namespace / group our components.

We have app-specific components in app, and components we plan to extract to a gem (that don't depend on any app-specific code) in lib.

I'm hoping we can share some of these components with the public soon.

Replies: 10 comments 8 replies

You must be logged in to vote
0 replies
Answer selected by joelhawksley

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@PedroAugustoRamalhoDuarte

You must be logged in to vote
1 reply
@mickenorlen

You must be logged in to vote
5 replies
@johannesschobel

@malawi89

@johannesschobel

@joelmoss

@johannesschobel

You must be logged in to vote
1 reply
@malawi89

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #67 on May 07, 2020 20:24.