7 ms·
I for once would appreciate it if Ruby programmers would stop trying to avoid writing JavaScript by writing their own JS-based implementation of Ruby. With ES6
by pluma 11y ago
I for once would appreciate it if Ruby programmers would stop trying to avoid writing JavaScript by writing their own JS-based implementation of Ruby.
With ES6 and Babel this "new programming language" provides nothing interesting other than making your code look more like Ruby.
- klibertp 11y ago> Ruby programmers would stop trying to avoid writing JavaScript by writing their own JS-based implementation of Ruby I would appreciate it if people knowing very little about programming languages stopped commenting on new languages. Nearly every comment here is either baseless or irrelevant or simply wrong. It's frustrating. In your specific case: CoffeeScript and this are most certainly not a "JS-based implementations of Ruby." This is: http://opalrb.org/ http://opalrb.org/ And how the language "looks" - its syntax - does matter, but not in the way most people think it matters. It's just that the syntactically simpler constructs tend to be used more often, so the choice of syntax affects the code people write. The rest, including "readability" or simply "beauty", is meaningless in the long run. EDIT: I'm in no way involved in this project!
- pluma 11y agoThat's why I said "their own" JS-based implementation. And the point is that it goes out of its way to re-invent features already supported by ES6 just so they look more like Ruby. Like using string interpolation instead of template strings, for example. It's not a language built on top of JS to improve upon JS, it's just as contrived as CoffeeScript (which unlike this one actually had a reason to exist in that it influenced the development of ES6 when a lot of features it implemented weren't yet part of JS). What is the benefit of learning this language? Who is this for? JS programmers? No, they could just use Babel to write something that will eventually become vanilla JS. Does it bring anything new to the table like ClojureScript or LiveScript does? No, it's basically CoffeeScript with ES6 scoping rules and JSX elements. So in the end all it adds is another barrier to entry for new developers joining your project/company with the only benefit being that it's "prettier". I'm not saying bad ideas aren't worth exploring -- they are, and if your bad idea happens to involve creating your own programming language, all the more power to you. But the only "good" reason to use this language is if you want your JS to look like Ruby. Just like Haml is for people who want their HTML to look like Ruby; and like Sass (not SCSS, I mean the original braceless syntax) is for people who want their CSS to look like Ruby.
- techpeace 11y agoHere's a quick (incomplete) list of web innovations you can thank the Ruby community for either popularizing or inventing outright: * REST * Many parts of ES.next * Front-end build tools * CSS pre-compilation * JS transpilation I spent years happily using multi-line template strings while JS developers informed me how idiotic I was for using a transpiler. Since Ruby's goal is to be a language that brings joy to the user, I see nothing wrong with bringing that ethos to other languages. You yourself acknowledge the impact it had on the development of JavaScript. We in the Ruby community will keep innovating, and you keep hoping that we'll stop, and we'll see which happens.
- hlfw0rd 11y agoRuby did not popularize nor invent REST. The other points I don't feel like arguing about..
- techpeace 11y agoI didn't claim that the Ruby community invented REST. Rails 1.2 (2006) was the first major web framework to implement it. Do you have any evidence to support your claim that I'm incorrect?
- anotherangrydev 11y agoREST was either popularized or outright invented by Ruby? What the f* are you on? Or were you born a few years ago and just worked with Ruby since then? Really, how could somebody be so oblivious to this field in order to state stuff like that?
- techpeace 11y agoCould you point me to a major web framework that used REST before Rails 1.2 (2006)? > What the f* are you on? Or were you born a few years ago and just worked with Ruby since then? I've been using Ruby professionally for 10 years.
- 11y ago