Replies: 3 comments 3 replies
-
I have a few medium-largish applications. They're reasonably organized (IMHO), but I'm guessing there is still some room for improvement. You didn't mention specifically what issues you were having, but here are a few design decisions I've made as it's grown:
One thing I miss is the ability to have route-specific methods, without cluttering the entire application. I've done a few approaches, and I'm not really sure the direction I like yet. A few that I've tried are:
I've seen some people suggesting subclassing from Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
My largest application has about 50 route branches and 150 models, so still very much a medium-sized application and not a large application. It's structured basically the same as roda-sequel-stack (https://github.com/jeremyevans/roda-sequel-stack), with one routing file per branch. In comparison to @adam12:
I have few route-specific methods in my application, and all are due to code written before the switch to Roda (the application was converted from Rails to Roda in 2014). A lot of routes use route-specific data (local variables declared before the hash branch). Like @adam12 said, it would be easier to provide more specific advice if you let us know what specific issues you are having. |
Beta Was this translation helpful? Give feedback.
-
Thank you both for your great suggestions. Can you provide links to your mentioned repositories? Sorry for not being more specific in my entry post. I thought it would be easier if i could search for solutions in existing projects instead of discussing details here but both of you already addressed my main problems perfectly. I see route files getting larger and more complex in my project. "Mystery guest instance variables" are indeed another problem. The state of various variables is getting unclear in my project and i think the mentioned Besides that, i always like to read code of external projects with the same technology stack for inspiration. I almost always find something that leads to improvement in my own code. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
my own Roda/Sequel application is growing in size and i have some problems in keeping my project structure organized.
Do you know any well-structured medium/large-sized projects using the roda/sequel stack which one can use for inspiration about project/code structure?
Thanks for any recommendations :)
Beta Was this translation helpful? Give feedback.
All reactions