开发者

Building a Web Framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

开发者_运维问答 Improve this question

I was looking for some advice on building a Web Framework. I'd like to build a custom framework built on Ruby (but not Rails) focused on security and usability. Can someone point me toward resources for building such a Framework?


I'm also trying to build a Ruby web framework from scratch. I recently came across this book: http://rebuilding-rails.com which goes through creating a ruby web framework from scratch. I haven't read it yet, but it looks like a great resource.


For creating a web framework (if you don't want to handle all of the http stuff) i'd look into rack

for example:

class App
  def call
    [200, {"Content-type:" => "text/html"}, ["Hello"]]
  end
end

# config.ru

run App.new


Here's a list of Ruby Frameworks. http://www.thepixelart.com/ruby-frameworks-what-are-they-and-why-should-you-choose-one-which-one/

You could get ideas/ inspiration from their architectures.


You cannot possibly build a viable framework from scratch, more so build one focused on usability.

It has to grow organically and be first based on your own needs and follow your own requirements. Only after having built several applications you can extract common portions into a separate framework, refining and polishing the details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜