Skip to content

File structure by roles, not domain on top level #1183

Answered by flybayer
mizchi asked this question in Ideas
Discussion options

You must be logged in to vote

Thanks for this discussion @mizchi!

The reason we have the current file structure is that it's significantly more scalable than how Rails does it. For a lot of smaller apps, it doesn't matter either way. But we want to set you up with a default architecture that will scale very well instead of something that you will have to totally change at some point.

All large apps that I'm aware of end up using the file structure we have now in Blitz.

Here's an article from Shopify on why they changed away from the default file structure in their Rails app.

The first issue they chose to address was code organization. At this time, our code was organized like a typical Rails application: by software …

Replies: 7 comments 27 replies

Comment options

You must be logged in to vote
14 replies
@rama-kairi
Comment options

@svobik7
Comment options

svobik7 Oct 3, 2020
Collaborator

@flybayer
Comment options

@svobik7
Comment options

svobik7 Oct 6, 2020
Collaborator

@svobik7
Comment options

svobik7 Oct 6, 2020
Collaborator

Comment options

You must be logged in to vote
1 reply
@flybayer
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by flybayer
Comment options

You must be logged in to vote
3 replies
@flybayer
Comment options

@svobik7
Comment options

svobik7 Oct 12, 2020
Collaborator

@svobik7
Comment options

svobik7 Oct 14, 2020
Collaborator

Comment options

You must be logged in to vote
1 reply
@svobik7
Comment options

svobik7 Oct 13, 2020
Collaborator

Comment options

You must be logged in to vote
3 replies
@flybayer
Comment options

@svobik7
Comment options

svobik7 Oct 14, 2020
Collaborator

@flybayer
Comment options

Comment options

You must be logged in to vote
5 replies
@rizrmd
Comment options

@flybayer
Comment options

@rizrmd
Comment options

@flybayer
Comment options

@rizrmd
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
6 participants