You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm new to Sinatra (and ruby generally) I'm searching for an entry point to start reading through the source, something like we did with the Rack project (we started reading run and use first).
The other issues that are opened till now seems a little advanced to me, so I'm wondering if there's a simpler way to start.
EDIT: As I see 95% of Sinatra is mainly in sinatra/lib/base.rb.
I've also noted that this file is kinda large (~1600 loc).. so I was wondering: Why didn't they broke up the code into smaller pieces (eg. separate files)? Wouldn't it make the code easier to maintain?
Isn't Sinatra considered to be a "monolithic" app, which is not a good thing?
@codereading/readers
The text was updated successfully, but these errors were encountered:
Sinatra isn't monolithic. Reading through base.rb: it uses one file, but inside that file is a bunch of Modules and within the Modules there're a bunch of classes. Physically, sure, it's one big file. But logically it's a bunch of separate namespaces and whatnot.
I'm going through issue 2 as best I can: seeing what happens when the simple.rb example is executed. If you'd like, I'd love a few more pairs of eyes over there.
As I'm new to Sinatra (and ruby generally) I'm searching for an entry point to start reading through the source, something like we did with the Rack project (we started reading
run
anduse
first).The other issues that are opened till now seems a little advanced to me, so I'm wondering if there's a simpler way to start.
EDIT: As I see 95% of Sinatra is mainly in
sinatra/lib/base.rb
.I've also noted that this file is kinda large (~1600 loc).. so I was wondering: Why didn't they broke up the code into smaller pieces (eg. separate files)? Wouldn't it make the code easier to maintain?
Isn't Sinatra considered to be a "monolithic" app, which is not a good thing?
@codereading/readers
The text was updated successfully, but these errors were encountered: