3 ms·
I myself am one of these people. But even if Ruby worked anywhere and I could share all my code, I would still prefer TypeScript because of its support for type
by emteycz 5y ago
I myself am one of these people. But even if Ruby worked anywhere and I could share all my code, I would still prefer TypeScript because of its support for typed JSX and excellent typing system overall. The IDE can help me in most cases, while it stays silent a lot with Ruby. I just don't see what more Ruby offers - and I'm saying that as someone who really likes OOP and really wanted to like Ruby.
- the_gastropod 5y agoI think JavaScript benefits from typing a lot more than Ruby does. Ruby is at least strongly typed, so doing something like `[] + {}` or `4 + {foo: "bar"}` will raise an exception instead of return you a seemingly-arbitrary value. As far as what Ruby offers over JavaScript? It's a bit personal preference, but I prefer Ruby for several reasons: - More stable ecosystem. There are more canonical "best" tools for the job. There's one dominant web framework, one dominant background job processor, one dominant task runner, debugger, testing framework, etc. - More robust standard library. Enumerable rocks. And rolls. - Better fits "OO" definitions—everything is an object in Ruby. It supports public/private/protected instance methods/variables.