-
Notifications
You must be signed in to change notification settings - Fork 207
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
Break up Amber::Router::Cookies module #1014
Comments
@eliasjpr wdyt? |
I thought of doing that previously. I think is a good idea |
Was looking at renaming There might be room for discussion around naming and seeing if we can develop some consistency between the module names. One option might be to aim for singular names. It may be better to go from
|
Some will always be singular, server for example. But I think any namespaces/folders which represent a collection of things should be plural. Validations, Extensions, Support, etc. Is Support plural? Whatever... |
I was in the past proposing the idea to modularized the code further, to something maybe towards this I know the team was hesitant to do so then. I am not sure how the team feels now, to slowly organize and document the project so we can generate crystal docs. |
@dwightwatson I agree with @robacarp. It depends on what the purpose of the module is. If it is name spacing a collection of items, it should be plural but if it's used to be included in a class, it's more than likely singular. Closing this issue. Thanks for the contribution! |
Description
The file for
Amber::Router::Cookies
contains multiple class and module definitions, andAmber::Router::Cookies
may not even need to be a class itself. I think it would be beneficial for the classes and modules defined in the namespace to be broken up into individual files so that it's easier to find.I suspect that there may be other instances of file/class inconsistencies that would be good to address as well.
Amber::Router::Session::Store
located inamber/router/session/session_store.cr
Amber::Pipe
located inamber/pipes
directoryThe text was updated successfully, but these errors were encountered: