[英]Anybody using ruby without any framework?
I am experimenting with Ruby and Rails. 我正在尝试使用Ruby和Rails。 I like Ruby, but not Rails.
我喜欢Ruby,但不喜欢Rails。 I have Java/PHP background, I have used some frameworks, but never totally liked any of them.
我有Java / PHP背景,我使用过一些框架,但从来没有完全喜欢它们中的任何一个。
Anybody using Ruby to build web apps, but not any of the frameworks? 有人使用Ruby构建Web应用程序,但没有任何框架? (rails, merb etc).
(铁轨,merb等)。 If yes, can you point me to some resources to learn it?
如果是的话,你能指点我一些资源来学习它吗?
Doing Web apps in Ruby without using a framework is like cooking without heat. 在不使用框架的情况下在Ruby中创建Web应用程序就像没有热量的烹饪。 I question the sense of trying this.
我质疑尝试这种感觉。
That said, you could probably hook up Apache to call a Ruby program as a CGI . 也就是说,您可以将Apache连接起来将Ruby程序称为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 . 编辑:显然你并不是唯一一个疯狂的尝试这个,但是:我找到了一个关于Simple Ruby CGI的教程。 The author claims as his rationale that "he has nothing better to do."
作者声称他的理由是“他没有更好的事情可做”。
你的问题看起来非常类似于Ruby ,所以你可能应该阅读那个问题的答案。
I'm using ruby instead of bash and python on my ubuntu server for sysadmin tasks. 我在我的ubuntu服务器上使用ruby而不是bash和python来进行sysadmin任务。
I've found Ruby a particularly clean and powerful replacement for the places I'd have previously used bash and python in sysadmin. 我发现Ruby是一个特别干净和强大的替代品,用于我之前在sysadmin中使用过bash和python的地方。
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.
当我准备一些面试或者我将从头开始构建一些东西时,在大多数情况下我需要一些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.
在99%的情况下,我需要ActiveRecord,ActiveSupport等。很容易在Gemfile中获取这些内容并使用它们。 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 https://github.com/einzige/framework
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.