-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactoring codebase #56
Conversation
60dd170
to
48cb333
Compare
48cb333
to
fe4ad4a
Compare
fe4ad4a
to
3d8264c
Compare
I'm not an expert Ruby programmer so I'm not sure what the best practices are here. |
Here I'm just
Here I'm just on phase one of use Sinatra's modular code styling. According to the Sinatra docs: “When a classic style application is run, all Sinatra::Application public class methods are exported Besides mitigating scoping issues, we could reduce code duplication(by using lambdas) e some other advantages. I have not done every changes needed to switch our app from classical to modular style, because this would be a huge PR. In this PR I made a few changes in a way that the code keeps running properly without the need to change anything. A couple more PRs will be required to fully modularize. |
Hi, if Sinatra makes the recommendation of this code organization then I'm in support, thank you! It largely matches the Ruby on Rails style of directory structure. I agree with @icarito that perhaps we should link to the Sinatra recommendation by way of explanation, perhaps also in the readme? Thank you! |
I guess I'll go ahead and merge this and if you could drop in the link in the description at top that'd be great! Thanks! |
Hi @alaxalves just wanted to mention that in this repo, once the |
Part of publiclab/spectral-workbench#506