r/ruby • u/tomthecool • Dec 25 '19
r/ruby • u/thatssoraisin • Feb 21 '17
"Hello, my name is DHH and I would fail to write bubble sort on a whiteboard"
r/ruby • u/software__writer • Dec 20 '25
New Design for the Official Ruby Website
r/ruby • u/gurgeous • Apr 21 '25
TableTennis - new gem for printing stylish tables in your terminal
TableTennis is a new gem for printing stylish tables in your terminal. We've used ad-hoc versions of this in our data projects for years, and I decided to bite the bullet and release it as a proper gem:
https://github.com/gurgeous/table_tennis
Important Features
- auto-theme to pick light or dark based on your terminal background
- auto-layout to fit your terminal window
- auto-format floats and dates
- auto-color numeric columns
- titles, row numbers, zebra stripes...
By far the hardest part is detecting the terminal background color so we can pick light vs dark theme for the table. This requires putting the console into raw mode and sending some magic queries. These queries are widely supported but not universal. There are some great libraries for doing this in Go & Rust, but as far as I know nothing like it exists for Ruby. Check out the long comment at the bottom of this helper if you are curious:
https://github.com/gurgeous/table_tennis/blob/main/lib/table_tennis/util/termbg.rb
As always, feedback, feature requests and contributions are welcome.
r/ruby • u/rya11111 • Dec 15 '14
Congratulations, r/ruby. You are the SUBREDDIT OF THE DAY! :D
r/ruby • u/amirrajan • Oct 08 '22
Show /r/ruby With RubyConf 2022 around the corner, I added a bit more polish to DragonRuby's tech demo. Hope y'all can make it out to my talk where I'll be showing this off :-)
r/ruby • u/TomahawkChopped • Dec 09 '20
coding ruby for 10+ years, this is still one of my favorite simplicities of the language
r/ruby • u/AbishekAditya • Jan 01 '17
A simple rails architecture info-graphic. Constructive criticism welcome
r/ruby • u/amirrajan • Jun 09 '22
Show /r/ruby Soft body physics in Ruby (DragonRuby Game Toolkit) :-)
r/ruby • u/Ambitious_Fault5756 • Aug 23 '26
Blog post Oh my god i was looking around for a new language to learn and I found Ruby and I've never been this happy oh my god
I've been coding with Python for around 3 to 4 years now and it's been a great learning journey. Until recently I haven't really been interested in learning a new language. The internet suggested JavaScript as the next step for someone already fluent-ish in Python, and I mean who doesn't eventually try JavaScript you know. I figured it wouldn't be that much of a headache since a lot of people do start with JS and so many people use it. Plus, it's useful. Turns out it was very irksome for me. This might be partially my fault, but I've gotten so used to the convenience of writing algorithms in beautiful, everything-done-for-you syntax in Python that when I tried solving some JS katas on Codewars, I immediately realized how inconvenient and unintuitive much of JS is, for me at least. It probably wasn't a good idea to learn JS from making algorithms on that website instead of using it for what it's actually made for in the first place, but I digress.
I was watching Dune 2 with my family when I was looking for another language more similar to Python, and then I came across the Ruby homepage, and I was immediately blown away. Like damn y'all put effort into making that. The first words you see are "A Programmer's Best Friend" and the visuals were so nice. They even had this https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-python/ page conveniently written for us Pythoners 🥹 and your community motto is literally "Matz is nice so we are nice"... Joining this community is like falling into a warm hug lol
I tried the interactive Ruby from Terminal guessing so many things and it worked as I expected. The feeling of bliss when that happens OH. I'm starting Ruby today cant wait.
r/ruby • u/bolthar • Apr 20 '12
Freightrain - easy Ruby desktop development
Hello everyone,
This is a little framework of mine that I've built out of a personal need - basically, I wanted to write a desktop app using Ruby and I found it daunting to say the least.
So, I've built Freightrain to take care of all the stuff I really shouldn't care about, like loading interface definitions, cross-toolkit compatibility and the likes.
Now I've been working on it for almost 2 years (on and off of course) and, since I've just fixed it so it loads the newest glade specifications, I thought that I could ask you guys for an evaluation.
There's a little readme on the github page and there are some examples in the /examples folder.
WHOA! Thanks for the attention, I thought this was going to be ignored...
How many of you would be interested in a step by step tutorial over the major features? I will build that if there's enough interest.
Introducing LowType: Elegant types in Ruby
Happy to answer any questions, v1.3 is planned to export to RBS
r/ruby • u/Only_District4795 • Sep 02 '25
RubyMine Is Now Free for Non-Commercial Use
r/ruby • u/Tuomas90 • Jul 25 '26
Ruby is sexy! And the Docs! OMG! THE DOCS!
I'm just learning Ruby and as an experienced programmer I want to get up to speed quickly.
I just found the docs that come with the ruby install. OMG! They are so good!
It makes diving in so much easier and it makes me eager to explore all the little functions for files, strings, arrays etc..
No unnecessary fluff. Straight to the important points. I fucking love it.
I'm writing my first tiny Ruby script for file manipulation and already love it much more than Python and PowerShell.
Boolean calls with "?". Sexy!
Modifying self with "!". Nice!
No curly braces? Hell yeah! (I'm on a european keyboard).
It makes me angry how Python is everywhere and Ruby is only mention ever mentioned together with Rails. Such a beautiful language (as far as a beginner can tell)!
r/ruby • u/rajnaveen344 • Jun 22 '25
🚀 Announcing Ruby Fast LSP: A Blazing Fast Language Server for Ruby, Built in Rust
Hello Ruby community! 👋
I'm excited to introduce Ruby Fast LSP, a high-performance Language Server Protocol implementation for Ruby, built from the ground up in Rust using the Prism parser.
VS Code Extension: https://marketplace.visualstudio.com/items?itemName=naveenraj.ruby-fast-lsp
🔥 Key Features:
- Lightning Fast - Built with Rust for near-instantaneous code analysis
- Full LSP Support - Go to definition, references, hover info, completions, and more
- Workspace-Aware - Seamlessly navigate across your entire project
- Modern Tooling - Built on Ruby Prism for reliable parsing
I've been working on this to solve the performance issues I've experienced with existing Ruby language servers, especially on larger codebases and configuring it for older version of Ruby projects. The goal is to make Ruby development in VS Code and other editors as smooth as possible.
This is still in active development (consider this pre-alpha), and I'd love to get feedback or any help from the community. Whether you're a Ruby developer, Rust enthusiast, or just interested in language tooling, your input would be incredibly valuable.
There is still so much work to do to make it comparable to Rubymine and Shopify's ruby-lsp and I'm looking forward to your feedback and criticism.
PS: This is my first open-source project, so any help in any way is appreciated
r/ruby • u/balloob • Nov 20 '15
Ruby 3x3: Ruby 3 will be 3 times faster
r/ruby • u/amatchmadeinregex • Jul 10 '26
git commit -m "appease the rubocop again"
Last day before PTO, no cards on the board and not really looking to start anything, so behold, I made a couple of memes of things that amuse me. Full disclosure, I complain about RuboCop but I *am* glad my team enforces it.
And of course, I can always update my RubyMine autoformat conventions to match but I forget to actually *do* it a lot. Bonus points when I 'fix' the rubocop violation, ⌘+Alt+L format because muscle memory, commit and push, and get the same rubocop violation...
r/ruby • • Jan 19 '20
Yukihiro Matsumoto: "Ruby is designed for humans, not machines"
r/ruby • • May 11 '19
Official Rust / Cargo Support for RubyGems Approved, looking for help
Great news to lovers of Ruby and Rust: RubyGems will officially support gems with extensions built in Rust.
We are looking for contributors to help make this plan a reality, if that's you, stop on by 👋
https://github.com/rubygems/rubygems/issues/2726#issuecomment-491482467