Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize code vertically (by feature) #149

Closed
7 tasks done
Martinsos opened this issue May 23, 2024 · 0 comments
Closed
7 tasks done

Organize code vertically (by feature) #149

Martinsos opened this issue May 23, 2024 · 0 comments
Labels

Comments

@Martinsos
Copy link
Member

Martinsos commented May 23, 2024

For example, File Upload functionality should be vertically organized, so that file upload / download stuff is all at a single place (ideally in a single directory, both client and server code) and can be easily deleted at one go (I was deleting it manually and that was quite a PITA, hunting it all down through the codebase).
Some stuff will be harder to organize like this and that is fine, but I believe most of the stuff we will be able to organize. For example Admin stuff, that should also be easy to group under one directly.
Same goes recursively, we can group stuff by sub-feature in a bigger feature.

While at it, consider also grouping declarations in main.wasp by feature. For example, File stuff, be it entities, routes, queries or actions, should be grouped together. This makes it easier to delete them or update them all at once, or just get a sense of what is happening with File, what is it about.

This is a big change, so I suggest doing it at the moment (if we have a choice) when we don't have a ton of PR's active, because those will all need to be updated accordingly.

TODO:

@Martinsos Martinsos mentioned this issue Jul 2, 2024
2 tasks
This was referenced Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants