简体   繁体   English

任何人使用ruby没有任何框架?

[英]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? 如果是的话,你能指点我一些资源来学习它吗?

It might be wise to at least leverage Rack , and maybe Sinatra gets enough out of your way for you to feel comfortable. 至少利用Rack可能是明智的,也许Sinatra可以让你感到舒服。 Sinatra isn't much more than a very small, simple wrapper around the rack handler afaik. Sinatra不仅仅是一个围绕机架处理器的非常小的简单包装器。

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.

相关问题 使用除Rails之外的Ruby框架有任何潜在的缺点吗? - Are there any potential disadvantages in using a Ruby framework other than Rails? 任何使用 detrusion 的人 - Anybody using detrusion.com, web application firewall for ruby on rails 使用Ruby的SOAP请求,无需使用任何gem - SOAP REQUEST USING Ruby without using any gem 在不使用任何额外宝石的情况下在铁轨上开发红宝石是不是很奇怪 - Is it weird to develop in ruby on rails without using any additional gems Ruby:没有 Ruby on rails 框架的参数化字符串(Jekyll 插件) - Ruby: parametrize string without Ruby on rails framework (Jekyll plugin) 如何在不使用任何额外表的情况下在Ruby中实现USERS TABLE的多对多关系? - How to implement Many to many relationship for USERS TABLE in ruby on rails without using any extra table? 如何在不使用任何内置方法的情况下删除数组元素并将其附加到ruby中的数组前面? - How to remove array elements and append it to the front of the array in ruby without using any inbuilt methods? 在Rails上使用ruby仅从github api提取未解决的问题,而没有任何拉取请求 - Extracting only open issues from github api without any pull request using ruby on rails 在没有ActiveRecord的情况下使用Ruby on Rails - Using Ruby on Rails Without the ActiveRecord Rails 上是否有 c# web 框架,例如 Django 或 Ruby? - Is there any c# web framework like Django or Ruby on Rails?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM