5 ms·
Ruby is going the way of Perl, same as the Dodo. I wouldn't recommend anyone learn Ruby over Typescript, JS, Python, C#, or Java. There's too much magic and Ru
by spricket 8y ago
Ruby is going the way of Perl, same as the Dodo. I wouldn't recommend anyone learn Ruby over Typescript, JS, Python, C#, or Java.
There's too much magic and Ruby is seriously sllllooowww. Slower than PHP, Perl, and Python. The main draw of Ruby was rails, which is functionally obsolete for modern front end frameworks like React and Angular. It's the OSS version of Asp.Net WebForms
- chalupa-mankey 8y agoRuby is a little faster than Python in most situations these days, to nitpick.
- mixmastamyk 8y agoEvery new version of Py has speed improvements as well.
- spricket 8y agoNo definitely not. Reply with a link to any benchmark from the last couple years and I'll believe you
- tny 8y agohttps://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/ruby.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Ruby is fast in some cases and python in some other cases.
- pmontra 8y agoFrom 2018 https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/ruby.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Sometimes Ruby's faster, sometimes Python is. However all those benchmarks are probably useless. They are not testing how the language is used or should be. The trick with all the scripting languages is to make the CPU spend most of its time in the C code inside the standard library or the implementation of the native constructs of the language with as little overhead as possible. Example: you don't want to do numerical computation using plain Python, you want to use Numpy. You also want to learn very well all the ways Ruby's standard library can group operations in a single method call saving time compared to naive multi method chains.
- TheTruth321 8y agoInconvenient.
- intertextuality 8y agoRuby 3 is specifically going to address speed issues, among other features. However in a lot of cases that’s usually not where the bottleneck is. Using rails-api as a backend with your choice of frontend is still a viable option. Perhaps it’s not one’s first choice these days but it’s far from obselete.
- freehunter 8y agoAgreed. Rails API and whatever Javascript front-end you want is the best possible option out there. It's fast to develop, it's well documented since Rails has been around forever, Ruby on the backend is sooo much nicer than Javascript, and you still get access to the front end trickery you need from modern Javascript. I have three languages I use. My web sites are done in Rails because it's fast and logical. One site has a Vue front end, only on a couple of pages where I need the JS fancy stuff. Most of my pure APIs are done in Flask because it's lighter weight. I use React Native for my native apps. I tried using Express.js for the APIs backing these apps but I could never get it all working right. I ended up rewriting it in Rails and now it's rock solid and fast as hell. I'd also like to mention most web development out there is still right in line with even old school PHP and does not need React or Angular or anything fancier than Rails. YAGNI.
- h1d 8y agoWhile I like ruby, your post is completely based on your experience. I have a Koa (express.js successor) with TypeScript and it's rock solid and since I don't like rails that much, I feel pretty loose there.
- spricket 8y agoAgree 100% Koa from the original devs of Express is amazing. Rails is worthless for modern webapps, there's just much better options
- mromnia 8y agoIsn't this comparing apples to oranges? I haven't used koa, but it seems to be same level of abstraction as express - basically a thin layer over HTTP with routing. Rails or Django are several levels higher - they include auth, database interaction, CRUD etc. I'm not saying that either approach is better, just that the comparison seems strange.
- llamataboot 8y agoWait, I've heard this one before!
- jjtheblunt 8y agoExcept for crystal-lang, which is compiled Ruby, more or less, and smokes all the above mentioned interpreters, no?
- deleted 8y ago[deleted]
- intertextuality 8y agoCrystal is magnificent in its typing and speed compared to Ruby, but it’s still a niche language (small ecosystem / lack of developers) and breaking changes happen all the time. When it reaches 1.0 and becomes stable I’d like to work with it again. For small simple APIs raze was great.