开发者

Anybody using ruby without any framework?

I am experimenting with Ruby and Rails. I like Ruby, but not Rails. I have Java开发者_如何转开发/PHP background, I have used some frameworks, but never totally liked any of them.

Anybody using Ruby to build web apps, but not any of the frameworks? (rails, merb etc). If yes, can you point me to some resources to learn it?


It might be wise to at least leverage Rack, and maybe Sinatra gets enough out of your way for you to feel comfortable. Sinatra isn't much more than a very small, simple wrapper around the rack handler afaik.


Doing Web apps in Ruby without using a framework is like cooking without heat. I question the sense of trying this.

That said, you could probably hook up Apache to call a Ruby program as a CGI. I suspect it would be dog slow, though.

Edit: Apparently you're not the only one crazy enough to attempt this, though: I found a tutorial on Simple Ruby CGI. The author claims as his rationale that "he has nothing better to do."


Your question looks quite similar to Ruby off the rails, so you probably should read the answers of that one.


I'm using ruby instead of bash and python on my ubuntu server for sysadmin tasks.

I've found Ruby a particularly clean and powerful replacement for the places I'd have previously used bash and python in sysadmin.


I personally found one thing for myself. When I prepare some interview or I am gonna build something from scratch, in most cases I need some basic features included in Rails. That usually happens when you build something not complex, but still non trivial. In 99% of cases I need ActiveRecord, ActiveSupport etc. It is easy to get those things in your Gemfile and play with them. One thing you will always repeat is basic application structure, easy console access with preloaded libs, rakes... I created minimal gem for myself to organise this process though.. :) If you read sources you'll see what I constantly do to start something new. It is not a big deal not to use any framework at all.

https://github.com/einzige/framework

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜