Comments (7)
Any reason not to just use thin?
from busker.
Well yes. As stated in the Readme one of my core design principles for this little project was to have NO dependencies whatsoever except whats available in the Ruby Standard Lib. Surprisingly to me, WEBrick is in there but Rack isn't. I'm considering to drop this one design principle (or create a new project without it) and just build upon Rack instead of using WEBrick (or Thin, etc).
The other alternative would be to monkeypatch PUT/DELETE into WEBrick but since it's not really great in any other way except that it's present in the RubySTDLib, I'm strongly leaning towards option A.
Any other ideas/suggestions/questions? :)
PS: Thanks for caring enough about this little project to comment on this.
from busker.
Hmm. I see what you mean.
Rack isn't in the stdlib because it doesn't really solve a problem for
stdlib, it's more of a concept for building web apps (and it seems to be
outdated, too:
http://blog.plataformatec.com.br/2012/06/why-your-web-framework-should-not-adopt-rack-api/
), while webrick is a useful default tool.
I admit I would ask: is a webserver really part of the web framework? Maybe
it's a separate concern altogether!
On Thu, Aug 28, 2014 at 5:04 AM, Marc [email protected] wrote:
Well yes. As stated in the Readme
https://github.com/pachacamac/busker/blob/master/README.md one of my
core design principles for this little project was to have NO dependencies
whatsoever except whats available in the Ruby Standard Lib. Surprisingly to
me, WEBrick is in there but Rack isn't. I'm considering to drop this one
design principle (or create a new project without it) and just build upon
Rack instead of using WEBrick (or Thin, etc).The other alternative would be to monkeypatch PUT/DELETE into WEBrick but
since it's not really great in any other way except that it's present in
the RubySTDLib, I'm strongly leaning towards option A.Any other ideas/suggestions/questions? :)
PS: Thanks for caring enough about this little project to comment on this.
—
Reply to this email directly or view it on GitHub
#6 (comment).
from busker.
Seems like your thought has been brought to code here: https://github.com/tenderlove/the_metal
from busker.
OOh nice!
On Tue, Sep 2, 2014 at 12:45 PM, Marc [email protected] wrote:
Seems like your thought has been brought to code here:
https://github.com/tenderlove/the_metal—
Reply to this email directly or view it on GitHub
#6 (comment).
from busker.
@pachacamac How difficult would it be to port this to Puma?
from busker.
@chadwpry I just searched through the Puma code for something like "mount_proc" in Webrick since that is where most of the magic happens but couldn't find anything on the fly.
Apart from that, it would break with Buskers design principle nr 2: No dependencies except what is in the Ruby Standard Lib. I think it would be much smarter to rely on Rack and have the web server interchangeable if one would go and break this principle.
May I ask what you're trying to build with Busker? :)
from busker.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from busker.