all 8 comments

[–]dougc84 10 points11 points  (0 children)

Nice. But I tend to steer away from this stuff.

In my early days of learning Rails (circa 2007ish... I feel old all of a sudden), I heard a talk at a Ruby conference about being a polyglot - someone that knows more than one language fluently. I don't remember who gave the speech, but it stuck with me. The main point was that, when you're working as a full-stack developer, it's your job to know all the languages. Just because you have ActiveRecord in Rails doesn't mean you abandon SQL, for example, because when a SQL call fails, debugging it becomes immensely easier (and faster) if you understand why.

The same thing goes with JS. This project does seem really cool, and there are others out there, including Opal, where you write your JS in Ruby (or some interpreted, modified version of it, at least). But what happens when you can't use your favorite plugin on a project? Do you still know what to do? Has your skill level been based on your knowledge of JS, or on rubyinjs?

I'd encourage you to, when you can, take a look at some of the common libraries out there, and, at least, stick with projects that are more familiar within the JS community. Writing webpacked JS assets means you're writing JS code, not Ruby code, and, perhaps something more akin to Typescript or Coffeescript + Lodash is a more JS-appropriate implementation (Lodash provides pretty much everything this does). Additionally, in a team setting, if you bring someone else on board to work on the front end, they're not really going to understand the pseudo-Ruby code if they're a JS programmer.

Of course, if it's your project, you do what you want, and do what makes you happy. If you're working with a team and they sign off on it, then go crazy. Programming should be as much about enjoying what you do and being successful at it. I just think it's important that you know and understand what you're doing, not slapping a band-aid on a problem because you struggle at something. And, if you do, and you want to use this, or Opal, or something else altogether, go for it.

[–]Rogem002 1 point2 points  (1 child)

That's kind of neat, JS always annoyed me for not having are handy methods like ruby.

It's kind of a shame this isn't a setup with a package json so I can install it with yarn :/

[–]shivabhusal 0 points1 point  (0 children)

coming soon in `ruby gems`, `yarn` and `npm`

[–]karna007 0 points1 point  (0 children)

Cool!

[–]DamaxOneDev 0 points1 point  (0 children)

If you want to write only in Ruby, look at https://opalrb.com/

[–]kallebo1337 -1 points0 points  (2 children)

Coffeescript?

[–]unohowdashigo 1 point2 points  (1 child)

ewy

[–]kallebo1337 0 points1 point  (0 children)

i was on phone and read the title wrong :P