3 ms·
I don't mean this as an attack, it's an honest question: Why? I don't grasp the value of this sort of thing. If it's meant mostly as a novelty, a "because I co
by camccann 17y ago
I don't mean this as an attack, it's an honest question: Why?
I don't grasp the value of this sort of thing. If it's meant mostly as a novelty, a "because I could" type thing, then that's always fun, but I get the impression that people would use this for other purposes.
Yes, Ruby is a charming language, but I don't really see what it offers in this context that Javascript doesn't. Are there some crazy metaprogramming techniques that can be done in Ruby to reduce code size that wouldn't work in JS? Do people really hate the idea of having to use more than one language in different layers of an application?
I could see the desire to compile something very different into JS (e.g., a static-typed language), but Ruby and JS seem similar enough that I'm just not getting it.
- tolmasky 17y agoThere are a large number of Ruby libraries that I would want to be able to use in JavaScript. In fact, after I saw this I immediately tried it on a few (unfortunately this project is not far enough along to be able to handle some of them yet). Of course anything can be written in any language, the value of a project like this to me is that it is quite unfortunate that there exist pieces of functionality that are walled off in the gardens of language choice. In that respect, the fact that JS and Ruby are so similar makes the project even more worthwhile.
- jmonegro 17y agoI'm guessing that by handing over some of your tasks to javascript, you can reduce server load because javascript is a client-side language. Also to quote from the Red github link, "What does this mean for today’s Ruby developer? Simple. You don’t need to learn JavaScript."
- thwarted 17y agoOh, the burden of learning and increasing your marketability.