Code Monkey home page Code Monkey logo

Comments (7)

Trevoke avatar Trevoke commented on August 27, 2024

Any reason not to just use thin?

from busker.

pachacamac avatar pachacamac commented on August 27, 2024

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.

Trevoke avatar Trevoke commented on August 27, 2024

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.

pachacamac avatar pachacamac commented on August 27, 2024

Seems like your thought has been brought to code here: https://github.com/tenderlove/the_metal

from busker.

Trevoke avatar Trevoke commented on August 27, 2024

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.

chadwpry avatar chadwpry commented on August 27, 2024

@pachacamac How difficult would it be to port this to Puma?

from busker.

pachacamac avatar pachacamac commented on August 27, 2024

@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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.