
Widely regarded as the language of the web, Ruby’s always been pretty damn hawt. But now it’s about to get even hotter. AltRubies have been pushing Ruby into realms we never thought possible. Is Ruby set to become the preferred language of the browser? Of mobile apps? Of hardware, even? Let’s take a look at some of these alternative Rubies and the exciting things they bring with them…
One of the biggest shifts I’ve seen in the last year or so is towards dynamic front ends – spearheaded by JS frameworks such as Angular and Ember. As nice as these might be, there’s one thing you just can’t escape when using them – Javascript! As a Rubyist, I am sure you’ll agree that JS (or even CS) doesn’t quite cut the mustard. It simply doesn’t possess the panache – that special something – that many of us feel Ruby does.

鑫鑫向融
翻译于 2014/10/31 14:36
1 人 顶 此释义
被广泛的可能是 web 语言的 Ruby 一直都是大红大紫,但是现在它将十分走红。AltRubies 将 Ruby 推到了我们从未想过的高度。Ruby 是不是成为了浏览器、移动app甚至是算法的首选?让我们一起来看看它们可选的Rubies和这些带给的令人振奋的东西…
这一年多我目睹了由 Angular和Ember 带来的动态前端的最巨大的改变之一。和这些一样好的是有一件事情使你无法不使用这些——javascript!作为一个Ruby使用者,我相信你会同意JS(甚至CS)不那么成功。它没有Ruby中我们好像的某些独特的东西。
Opal lets you write Ruby that compiles to Javascript. Yep – this means you can now write Ruby that runs in the browser! Opal also has a number of gems that extend it, such as Opal-jQuery and Opal-Vienna (the latter being a front end, Backbone-style library). But this is just the beginning.
Opal is now paving the way for new Ruby frameworks that run on the front end, or even the front and back end, and I’m hearing a lot of buzz around how Opal is one of the hottest things in Ruby right now and is set to play a big part in its future. I agree, and we’re only just starting to see why…

鑫鑫向融
翻译于 2014/10/31 14:48
1 人 顶 此释义
Opal可以使你的Ruby编译成Javascript,这意味着你可以在浏览器上运行Ruby! Opal 也有一些扩展佳作,例如 Opal-jQuery , Opal-Vienna (后者是一个前端, Backbone类型库),这还只是直到。
Opal 正在为运行在后端的新Ruby框架铺平道路,甚至是前后端,我听见周围诸多议论Opal现在是怎么的火还有将来的不可限量。我同意,我们仅仅是刚开始了解其中的隐情...
Volt is an exciting new Ruby framework that runs on the front and back end, and even has plans to integrate with RubyMotion further down the line.
Volt is a reactive framework, meaning it creates a persistent connection between the client (the user’s browser) and the server, and when data is updated in one client, it propagates – if you want it to – to all other listening clients (with the option to update your database in the process). Welcome to the world of real time apps (RTAs).



鑫鑫向融
翻译于 2014/10/31 14:57
1 人 顶 此释义
Volt是一个运行在前后端的令人振奋的新Ruby框架,将来还将完全整合RubyMotion。
Volt 是一个响应式框架,它创建和客户端的长久连接(用户浏览器) 和服务器, 当数据在一个客户端上更新,如果你想的话,它会散播到这些客户端(带有在进程中更新的选项). 欢迎回到实时app的全球 (RTAs).

When Volt did the rounds in the Ruby media recently, unsurprisingly it generated a heap of interest – before it was remotely ready for prime time! This, however, has turned into a blessing by allowing early feedback on many of its features – something the Volt team have been listening and reacting to. One such feature is adding a user and auth system into the core framework – a stellar move in my view.
I really like how Volt embraces cutting edge web technologies and methodologies: declarative HTML, web components, websockets and of course Ruby on the client side. They’re also adding RethinkDB support – a new database that is also rumoured to become big in Ruby.

鑫鑫向融
翻译于 2014/10/31 15:27
1 人 顶 此释义
Volt 最近在 Ruby 界傲视群雄,这时候,意料之中的招来了诸多兴趣——在它为黄金时代的来临做好准备之前!不管怎样,这现在已然成为了许多属性的晚期反馈的福音——Volt团队在处理的大事。其中一项属性是在体系框架中添加用户和认证功能——在我看来是一项主要的改变。
我真的钟爱Volt拥有的web前沿技术和原理:声明的HTML,web组件,websocket,当然还有客户端Ruby。它们正在加入RethinkDB支持,它是一个新型,Ruby使其显得举足轻重。
Of course Volt isn’t just for RTAs, but I’m sure we’ll all be thinking of creative ways to add a little real-time sparkle to our sites! I’m excited to see what everyone is going to do with it. Oh, and if you’re worried about the initial lag often associated with sites running front end JS frameworks, don’t – Volt is concurrent, meaning it’ll render the first page a user hits on the server, making it lightning fast.
If you are a Rubyist then you are probably already familiar with RubyMotion, so I won’t go into the details here – but if you’re facing the same RubyMotion vs Swift dilemma that I was, here’s why I’ll be learning RubyMotion:

鑫鑫向融
翻译于 2014/10/31 22:15
1 人 顶 此释义

Volt当然不只是为了RTAs,但是我深信我们将要创造性地反思,为我们的官网加入实时灵感。我为见到每个人都准备用Volt做的大事感到振奋。不要为运行前端JS框架的官网经常出现的初始延迟担忧ruby语言阅读,Volt是并发的,它将渲染用户点击的服务器上的第一个页面ruby语言阅读,使其很快响应。
如果你是Ruby使用者,你也是早已熟悉了RubyMotion, 所以这儿不再赘述。但是所以你和我以前一样面临着同样的RubyMotion vs Swift困境,以下是为什么我选择了RubyMotion:
There are lots of other reasons too, but the main reason for me is our old friend Ruby. While you still need to learn the associated frameworks, Ruby is there for the rest of it… allowing you to write mobile apps in the language you know and love. And if you do ever decide to move to Swift, none of the time spent learning the Apple frameworks is wasted, because you take that knowledge with you.
This it Matz’s own little baby. Little being the operative word! It’s tiny, and that’s the whole point – to make it lightweight enough to use in embedded systems (hardware). Thanks to its C99 compliance it is extremely portable, yet manages full compatibility with Ruby 1.9.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-119433-1.html
网商是大趋势
平时手机电量都能用一天