24 ms·
Where is Ruby Headed in 2021?
- pcwalton 5y agoPersonally, I still haven't really found a better tool for little one-off throwaway scripts than Ruby. Python's always been verbose for me and lacks the awk heritage that makes text processing tasks so easy. Node forces me to deal with async I/O. Shell has annoying quoting rules. I don't feel strongly about any of this and if another language is your favorite for small one-offs, that's great. Ruby works well for me though, and I hope it sticks around.
- jamesfinlayson 5y agoAgreed - I really like Python but the ease with which you can do a Ruby one-liner on the command line makes it just that bit nicer.
- antod 5y agoI'm in the same boat. The syntax sugar for shell integration in quickly hacked up scripts is the main (only?) area I prefer Ruby over Python.
- chespinoza 5y agoI agree, but the worse of Node IMO it's installing thousands of packages and MB just for doing a small thing, it's madness, every time I have to install NPM in a new computer I feel like I'm poisoning it.
- emodendroket 5y agoDon't get me wrong. I'm happy to see type declaration support in Ruby and have sorely missed it working on long-lived Rails codebases. But it is pretty funny that after years of rah-rah about how static typing was a pointless barrier to productivity, all the "duck-typing" languages have eventually added it after all.
- fastball 5y agoI think it's less funny and more an endorsement of how good tooling has gotten over the last few years. Intellisense et al. have changed the game so that you can actually be more productive from the start with statically typed languages because the inference (and UX/DX to utilize those inferences) is so much better than with dynamic/duck typing.
- emodendroket 5y agoThat was true when they were talking it up too and was acknowledged as the final frontier by boosters (look at the Yegge article on this topic, for instance, which spends a fair bit of time on the topic and how it could be improved http://steve-yegge.blogspot.com/2008/05/dynamic-languages-strike-back.html http://steve-yegge.blogspot.com/2008/05/dynamic-languages-st...). If anything, those tools have made truly impressive strides even in hard cases like JS and Ruby.
- stickfigure 5y agoLast few years? Java IDEs have been doing this for decades (plural). C++ IDEs for another decade beyond that.
- tonyedgecombe 5y agoC++ IDEs lagged Java IDEs on this stuff.
- stickfigure 5y agoC++ IDEs predate the existence of Java, let alone Java IDEs. Microsoft Visual C++ was excellent for the time, and did most of what you expect a modern IDE to do. In 1993.
- tonyedgecombe 5y agoVisual C++ didn't get Intellisense until 1997 and even then it was poor. C++ has never caught up with the tooling that Java and .Net developers have.
- hiitechk 5y agoI started my development career on at the tail end of the Ruby on Rails craze and in the middle of the JS framework explosion. I've always wanted to learn Ruby, but it always seems to me that it would just be learning it for learning's sake and not for any professional development. It's unfortunate, because the little Ruby I did learn, I enjoyed.
- Gigachad 5y agoRuby on rails still hasn't peaked yet so I'm not sure what you mean by the tail end. Rust micro services might be the new trend for big tech but there would be more rails apps in development now than there ever has been.
- hello_moto 5y ago> Rust micro services might be the new trend Golang is the trend. (I don't have any opinion in either Golang or Rust; but most jobs out there are looking for Golang microservice deployed in K8S)
- Gigachad 5y agoIf you are really paying attention to the hype train, I think Rust has more energy and blog posts behind it at the current moment. Golang probably gets more use like ruby on rails does.
- reducesuffering 5y agoIf you are actually really really paying attention to the hype train, Next.js is actually the trendiest app development tool. Go is a bit more infra and Rust more niche performance cases. Source: https://insights.stackoverflow.com/trends?tags=next.js%2Crust%2Cgo https://insights.stackoverflow.com/trends?tags=next.js%2Crus... https://star-history.t9t.io/#rust-lang/rust&golang/go&vercel/next.js https://star-history.t9t.io/#rust-lang/rust&golang/go&vercel...
- skunkworker 5y ago
- andrei_says_ 5y agoI’d like to use this to voice my appreciation for Ruby. Its ergonomics, flexibility, elegance and power continue to bring me joy and make me smarter every day. It is incredibly malleable and yet pure. It carries a certain warmth and kindness that permeate its community. It becomes faster every couple of years :) I feel so grateful to work with a language that makes me feel like a wizard and look forward to writing code. The community is so incredibly creative, smart and generous that I feel humbled every day.
- jack_riminton 5y agoI second this. There's something about the language that makes the community incredibly welcoming (or is it vice versa?) Whereas the impression I get of the javascript community is that everyone is paranoid about doing the hottest new thing, like "oh you're still using x? how quaint, haven't you heard everyone is using y now?"
- kayodelycaon 5y agoRuby was built for programmer happiness and has always had a passionate community. During the height of its popularity, it was just like JavaScript with the paranoia. Now it’s a mature language and things are settled down. I miss _why and the whimsy the language had before.
- kayodelycaon 5y agoThis is really cool. I’ve used a number of languages and dabbled in a few frameworks but nothing I’ve used brings me joy like ruby does. I approach programming creatively. I think in large systems and architecture. Ruby allows me to skip worrying about the details. Code blocks abstract away thinking about loops and just focus on data. Just about every array operation I could want is there, waiting for a code block. In other languages, things don’t flow like that. I’ve tried purely function languages and I just can’t wrap my head around them because they abstract too much. I’ve tried python, but I end up having to deal with the mess of importing modules and having to set up loops when all I want to do is map data. Node.js comes so close but anemic standard library and absolute mess of explicit async everywhere just gets in the way. I want to love JavaScript. :( Then there is Rails. Nothing even comes close. The attempts to replicate it in other languages ends up missing part of what makes it so great. I’m sad about the move to mounds of JavaScript. Nothing can match the productivity of simple_form and bootstrap. My entire career has been in Ruby on Rails. I hope improvements to Ruby can keep it relevant. If not, I suppose JavaScript will do.
- mehphp 5y agoI just left a rails gig to go back to django. I like ruby ok but not a big fan of rails. I totally see the value and understand why someone would like it but I just never could get to that point with it. I much prefer the explicit imports, loops, etc I suppose
- chespinoza 5y agoThat's interesting, what you think Django excels that Rails doesn't? Which ones were the pain points in your opinion?
- mehphp 5y agoI think it’s just preference really. I don’t think Django is better I just prefer some of it’s choices. For example, I really don’t like that rails implicitly imports stuff into the namespace. I like being able to follow the imports explicitly at the top of the file. I feel like there is way less of “where does this come from or what IS this?” when working with Django.
- eloisius 5y agoThe RBS files seem like a weird compromise to me. I I'm not sure I see the practical benefit, but maybe someone who has used .d.ts files can explain it. Is it just helpful if your IDE has tooling to use it? Seems like it could be helpful, but also sounds like it will become an annoying "code quality" hoop those of us that don't use VSCode will have to jump through for little benefit. When you read code outside of your IDE, like a code review, will you have to scan both files at once in order to benefit from static type information? Does it enforce types at runtime? I'm curious but it's a tough sell to me. I've used optional types in both PHP and Python and found them to be an annoyance compared to strong typing in Rust, where they basically guide you at every step. The IO/performance improvements and concurrency improvements are exciting. Reading this makes me want to try out ractors.
- kayodelycaon 5y agoI tend to use guard statements in ruby methods to prevent invalid input. It helps people understand how the method is supposed to be used while also failing early with an obvious error, rather than late with a cryptic one. If there was a way to do a type signatures inline without making things ugly, I would use them. Optionally enforcing @param and @return comments would be good enough for me. A separate file is useless for me because I don’t use an IDE.
- eropple 5y agoYou might not use "an IDE", but you can get language server support for a ton of languages in almost any text editor worth using these days. There are Vim LSP plugins for TypeScript, even.
- kayodelycaon 5y agoI suppose. I use a number of linters with Sublime.(1) It’s just not as rich or integrated as a real IDE would be. 1: I have my reasons for using Sublime over the alternatives.
- jamesfinlayson 5y ago
- Mikeb85 5y agoHonestly I don't get why some people want to move to static types. Ruby is a dynamic language, that's the point of it... Giant orgs can just use Java or something. We need some languages to stay productive for those of us who work solo or in small groups. If I wanted static types I'd use Java, Go or something (probably Haskell).
- muglug 5y agoBy the time they get giant with [interpreted language], the giant org cannot pivot to Java without sacrificing a year of forward momentum on product development. It's far easier for them to adopt a static analysis tool that mimics the type safety that Java provides than to migrate their codebase.
- mwint 5y agoMostly, I really want Rails in a typed language.
- Mikeb85 5y agoThere's a reason it didn't come from a typed language... It uses a lot of dynamic features and metaprogramming.
- kayodelycaon 5y agoThat would be nice. There are so many attempt to clone it and the clones are always missing some important piece of what makes rails rails. Lack of good, heavily integrated libraries is a universal failure of all of the ones I’ve seen.
- truly_not_next 5y agoRedwood does this in TypeScript
- abstract_put 5y agoThis is the most frustrating part - having worked in an enterprise Rails project, I wouldn't wish that on anyone valuing their own time. At the same time, it is the most complete offering I've used by a long shot for getting started. I was writing a web app in Rust (I want to be cool!) and only after a couple hours of implementing CRUD did I realize I'd effectively made an inconsistently implemented rails scaffolding. The default opinionated round trip for DB -> application -> UI for CRUD is still really slick.
- navaneethpk 5y agoWe recently migrated ToolJet (https://news.ycombinator.com/item?id=27421408)'s https://news.ycombinator.com/item?id=27421408)'s server from Ruby ( Rails ) to TypeScript ( Nest.js ). Our goal was to have only one language in our stack so that it will be easy for the open-source contributors. I have been working as a Ruby dev since 2015 and I really love Ruby. Initially I thought we might miss a lot of things when we switch to TS. But it turned out to be a great decision in the end. The bad: - Cannot compare Rails' ActiveRecord with TypeORM. TypeORM still lacks proper documentation and sometimes we even had to write raw SQL (or use the query builder feature )for joins. - Testing using Minitest (Ruby) is easy and the code looks very clean. It is not as easy to go through our Jest tests. Also the test suite required some customisations for small stuffs like cleaning the db after every test. - There is no clear winner for web frameworks in Node ecosystem. The framework you choose will be less adopted and less matured than Rails. The good: - A lot more applicants for the backend roles. We tried to hire senior Ruby developers in June and we got only a few applicants. After switching to Node, hiring has become easy. - Having only one language in the stack is helping us get contributions from more external developers. - Nest.js is not very opinionated, we can easily customise it to follow the conventions and directory structure followed by Rails. We have explained more on our blog: https://blog.tooljet.com/migrating-toojet-from-ruby-on-rails-to-nodejs/ https://blog.tooljet.com/migrating-toojet-from-ruby-on-rails...
- Scarbutt 5y agoHonestly typeorm and nestjs are pretty bad.
- navaneethpk 5y agoTypeORM has a lot of issues but in our case it hasn't caused any major blockers. Most of the time the issue is with documentation and sometimes you run into issues like this: https://github.com/typeorm/typeorm/issues/316 https://github.com/typeorm/typeorm/issues/316. NestJS on the other hand is very solid. It has good documentation and a good community. We haven't faced any issues with NestJS yet.
- 88913527 5y ago
- ecshafer 5y agoThis is a pretty interesting read. It looks like there are some exciting things happening in Ruby. I am new to Ruby, but I have been learning it after years of python and Java and Javascript, since I took a job at a Ruby shop. And I am falling in love with it. Its a really nice language, and I prefer ruby to Python personally. I like that Ruby has a small talk like sense of sending messages.
- VectorLock 5y agoI know I'm going to take it on this chin for this but if I'm gonna be honest I hope "away, forever."
- kayodelycaon 5y agoWhy? Ruby is relatively harmless. Now C… that’s a blight that’s never going away. ;)
- VectorLock 5y agoI think Python does everything in Ruby's niche but better and Ruby's only benefit is to be different.
- setpatchaddress 5y agoIt’s OK to be completely wrong, but you should reflect on why.
- zeppelin101 5y agoI think Rails is considered to be the best framework for prototyping purposes. I don't have a lot of experience with it, but I was impressed by it. My understanding is that Rails is effectively the only thing that makes Ruby relevant.
- klelatti 5y agoShow me you don’t understand Ruby without telling me you don’t understand Ruby.
- reiderrider 5y agoWe are hiring the type of rails developer reading this thread. BackNine Insurance (quoteandapply.io) | Remote | Rails Developer We automate life insurance from submission to commission so companies can easily sell online. Thousands of companies (from brick and mortar insurance agencies to publicly traded banks) use BackNine's software to quote, apply, and manage their life insurance business online. We need a Rails developer with 2+ years of professional experience. Please email reid@back9ins.com
- Minor49er 5y agoThe future of Ruby is in Crystal https://crystal-lang.org/ https://crystal-lang.org/
- coldtea 5y agoWanna bet and check back in 5 years?
- d3nj4l 5y agoI love Ruby but I'd still cautiously take that bet. At the same time, I don't think it's easy to come up with terms for a fair judgment of who wins. What does Crystal being the future of Ruby mean? To me, I think in the specific cases where people who like Ruby want Ruby - mostly webapps with great dev ergonomics and productivity - Crystal will definitely start to gain ground, because both Amber and Lucky are lovely frameworks with a lot of excitement behind them. But will it take over Ruby? Probably not.
- gls2ro 5y agoAdding to d3nj4l's answer, that Ruby also has a great community of active and passionate (yes, in the proper sense passionate of the programming language) developers. I think Elixir has better chances of taking over some of the Ruby pie from this perspective as the Elixir community is a lovely and helpful as the Ruby one. Without such community it is very hard to build momentum and most programming languages remains great options but limited to a small number of projects. I like Crystal and played with it a little bit. I tried to use it in production for a small project where I offloaded some tasks from Rails into Crystal small programs.
- Minor49er 5y agoI'm game
- coldtea 5y agoOK, let's get it on. I'm bookmarking this. God willing, we can check back in 5 years. Would job postings and TIOBE be enough?
- symlinkk 5y agoRuby is dead. It’s the next Perl.
- stiltzkin 5y agoEvery year Ruby is dead.
- revskill 5y agoI see Ruby and RoR is the best gateway to become a senior fullstack engineer. I've seen some folks dealing with Java, NodeJS, Python as their first (and only) tech stack and they never become a senior developer one. So, what i love the most from Ruby and RoR is how it helps you on your career path to become a better engineer in a concise way that no other framework/languages can offer you. Learn from what the Ruby/RoR teach you in a short timespan and you'll see the whole new world of real world programming. From my story: I started with Ruby and RoR in 2 years then i can master all other languages, framework in NO time. All concepts are there, learnt from Ruby/RoR already. No need to re-learn new things to get the job done in your future tech stack.
- wraptile 5y agoCould you elaborate more? Your comment doesn't make much sense otherwise - if anything I'd argue that NOT tying yourself to a single framework is what makes you grow into a senior developer. I'd argue that Python (or similar) back-end and JS-flavor front-end is a better path to growing since it's just a much wider area of growth.
- revskill 5y agoUpdated my original comment to include my story. Once learning Ruby/RoR techstack, you can jump to all other techstack in NO time as it already taught you everything you need. The rest is ecosystem and syntax. About your concern, other frameworks/languages offer you only part of story, Ruby and RoR offers you complete story in a concise way, it's the difference.
- t-writescode 5y agoI would argue that’s anything. I started by web service development career in C# and moved to Python and Rails was easy enough to figure out except for the magic junk. Most systems use similar-enough patterns you can carry them over where-ever. It doesn’t have to be rails, but it was for you.
- 5y ago
- Jerard_Victor 5y agoWhay it's not mentioning Truffleruby project?
- chishaku 5y agoOther than Rails, what do people use Ruby for?
- gls2ro 5y agoSinatra is a great framework for fastly developing REST APIs. It benefits from almost the whole Rubygem possibilities while being fast to develop. Middlemanapp is a great static website generator written in Ruby and easy to extend that I used many times to generate simple generated websites. Jekyll is a great static blog generator.
- thunderbong 5y agoI've never used Rails. I used Sinatra in the early days and over the last 8 years I've used Roda[0] and Sequel[1]. Our stack is front-end heavy with a very mature JS framework and the back-end is mostly an API server. Databases range from SQLite to Postgres. Development is usually done on SQLite and staging / production on Postgres. Quite a few projects with SQLite DB in production as well. [0]: https://roda.jeremyevans.net https://roda.jeremyevans.net [1]: https://sequel.jeremyevans.net https://sequel.jeremyevans.net
- huma 5y agoThe first time, a while ago, when I tried Ruby, coming from Java, it was pure joy of freedom :) I really liked the duck typing approach and the dynamic feel of the language. It's rather sad to see static "Java" creeping into it.
- Axsuul 5y agoIt’s optional but is a sign that it’s being used for more serious use cases.
- chucke 5y agoI think this article missed a key element of where ruby is going: developer productivity tools. It is kind of hinted at with static typing, but the real story behind a lot of what happened since ruby 3 was released has been the tools and IDE plugins around it. Static Typing via RBS is also the existing LSP integration + VSCode plugin, the Typeprof plugin which allows scaffolding .rbs files for untyped modules, and the new debugger which will ship with 3.1, finally a core-blessed debugger, but above all, a debugger one can integrate with docker and IDE. I'm expecting more of this in the future, such as a production-ready profiler, better tracing, overall better monitoring.
- joelbluminator 5y ago> but above all, a debugger one can integrate with docker and IDE. Can you expand? We have a kubernetes setup at work and I can't do binding.pry locally to get a breakpoint! (the containers aren't running on the developer's machine just clarifying). I was wondering what it would take for us to have breakpoints at work.
- Axsuul 5y agoWith byebug you can launch a server and connect to it remotely to intercept break points.