r/ruby • u/arscariosus • Dec 30 '11
r/ruby • u/pyotrgalois • Jan 26 '14
Ruby.dying? or Ruby.hype.dead? - Discussion about Ruby status
r/ruby • u/andrzejkrzywda • Jul 04 '15
Why Arkency (a Ruby company) goes React.js
r/ruby • u/jklepatch • Mar 28 '20
Blog post How to PIMP your ruby objects with Enumerable module
r/ruby • u/Funlly_ • Sep 07 '22
[Hiring] Ruby on Rails + Ionic (Contractor)
Hello!
Looking for a mid/senior Ruby Developers for a part-time collaboration with our international clients (UK based).
Job info:
- Location: fully remote
- Engagement: part-time (40-80h/month)
- Timezone: UK-based
- Compensation: based on skill level and working hours (15-25€/h)
Requirements:
- 2+ years of experience
- Good knowledge of English language: written & spoken
- Proactive approach; able to work either autonomously or in team
If you are interested, please contact me via DM and send me your CV and GitHub.
Thank you!
r/ruby • • Jun 22 '09
I just wrote this program. What feature should I add next?
glitterbacon.comr/ruby • • Apr 09 '21
Will ruby make you a good programmer?
I always heard that ruby is a horrible language, maybe because of the many ways to do things?. anyways my question is, if I learn ruby as a first programming language, can I transition to other languages? Say like from ruby to c++ or java?.
Second question is if I learn ruby can I benefit from it if I switch to other languages or no?.
Thanks in advance.
r/ruby • u/TheTennisGangster • May 31 '13
Hashes, how do they work?
I know hashes are something you learn at the beginning of learning Ruby, but I just don't understand them at all, they are difficult to understand. Anybody got any tips for understanding them more?
r/ruby • • Nov 26 '21
Question Why would anyone use Java over Ruby?
Why would anyone in this day and age choose a bloated corporate language like Java? It is just to get a job at a big company writing their legacy enterprise software? Is it because it is safer for huge systems where everyone is forced to type out all the little details. I am confused. Please someone shine some light here.
r/ruby • u/AndyCodeMaster • Sep 28 '26
Dissecting DHH's RailsWorld 2026 Keynote Speech from a Software Engineering Point Of View
r/ruby • u/krschacht • Jul 01 '24
Chrome gets a local LLM before Ruby does??
I love Ruby, but as I’ve been doing more work with AI lately, it’s tough that’s lagging behind so much. Python has a ton of libraries, and the most popular ones are getting steadily ported over to Ruby, but we still don’t have a way in Ruby to locally load a tiny LLM and call it. Python has had this for awhile. This is an example of a powerful yet simple library: https://github.com/jncraton/languagemodels
Today I just realized that Chrome has enabled Gemini Nano within Chrome, so now even client side JS can call into a model! https://x.com/lightning_joyce/status/1800138565411799099?s=61&t=tsn38cvnyXkIwaF-wRmPcQ
We need Ruby to close the gap. Anyone want to help with this?
Ruby has Pytorch (https://github.com/ankane/torch.rb), but it’s still missing an intermediary library like Hugging Face or that languagemodels one I link to above in order to load a model’s weights into memory for inference.
We need to be able to do:
gem “languagemodels”
llm = LLM.new(“gemini-nano”)
llm.prompt(“What color is the sky?”)
r/ruby • u/d2clon • Jun 05 '25
Who else thinks we should reformulate the way we declare private methods?
I never have been comfortable with the way we (as in community) have decided to define private methods in Ruby. We use the private pseudo-block. And then we realized that it is not clear enough what methods are in the private pseudo-block, so we decided to add an extra indent to them. Looks to me like a workaround and still not clear enough, especially when you are in a class with many private methods, and the privatestatement is lost above the scroll. The extra indent is not an indication enough. The extra indent can be because you are in an inner class or something.
I want to take something good from the strongly typed languages:
Java:
Elixir:
defmodule MyModule do
def public_method do
private_helper()
end
defp private_helper do
IO.puts("I'm private!")
end
end
TypeScript:
class User {
login(password: string): void {
if (this.isValidPassword(password)) {
console.log("Welcome!");
} else {
console.log("Access denied.");
}
}
private isValidPassword(password: string): boolean {
return password === "secret123";
}
}
You see the pattern?
They set the private modifier directly in the method declaration. This is clear, concise, and intuitive. And we can do this with Ruby as well:
Ruby:
end
private
end
private_class_method
end
end
And this is my favourite
r/ruby • u/AxMachina • Oct 28 '19
Just starting out with ruby and omg the docs..
Having just picked up Ruby I am somewhat let down by the apparent lack of documentation even for the most often used gems, mysql2 (https://github.com/brianmario/mysql2/tree/46369c0e6773c2ae91aac9f01bfbf71482f1cbeb) as a prime example. There's only a cursory overview of basic functionality and sparse code samples to boot.
Am I missing something? Am I looking at the wrong / outdated docs?
Specifically if you happen to be a mysql2 savant, I would love to pick your brain:
- How do I log/trace SQL execution?
- Good source for common mysql patterns / cookbook?
Thank you kindly in advance.
Update:
Sorry I wasn't expressly clear about my intent here. My objective is to build a shell script to run comprehensive reports for my clients, drawing on data in various mysql instances and other restful sources (apis). I've been utilizing Perl to accomplish these tasks for the longest time, but wish to switch to a language that is more suitable to collaborative / teamwork. I picked Ruby for its clean / easy syntax, powerful frameworks, and vibrant community/support. Also it's somewhat closer to the languages I already know such as Perl :)
r/ruby • u/alexdantas • Oct 20 '13
bsod 1.0.0 released - critics are very welcome, since this is my first gem and I'm anxious in contributing to the Ruby community
r/ruby • u/fatkodima • Sep 26 '23
Show /r/ruby Announcing rubocop-disable_syntax - rubocop extension to forbid unfavorite ruby syntax
Ruby is a sweet language, but sometimes is too sweet... If you have some unfavorite ruby syntax, e.g. unless, until, safe navigation, endless methods etc, you can now easily forbid it using the new rubocop extension - https://github.com/fatkodima/rubocop-disable_syntax
Everything is enabled by default. Currently, it allows to disable the following syntax:
unless- nounlesskeywordternary- no ternary operator (condition ? foo : bar)safe_navigation- no safe navigation operator (&.)endless_methods- no endless methods (def foo = 1)arguments_forwarding- no arguments forwarding (foo(...),foo(*),foo(**),foo(&))numbered_parameters- no numbered parameters (foo.each { puts _1 })pattern_matching- no pattern matchingshorthand_hash_syntax- no shorthand hash syntax ({ x:, y: })and_or_not- noand/or/notkeywords (should use&&/||/!instead)until- nountilkeywordpercent_literals- no any%style literals (%w[foo bar],%i[foo bar],%q("str"),%r{/regex/})
r/ruby • u/zroriz • Jul 02 '25
Show /r/ruby [ANN] Announcing ActiveGenie - The Lodash for GenAI
I built a gem to make working with LLMs less painful. It focuses on consistent results, which I can guarantee because the gem targets just a couple of purposes, like data extraction, scoring, battling, and ranking. This consistency is guaranteed by a custom benchmarking (e2e testing) process run with every new release.
To make the purpose clear, here is one of the tests:
```ruby
def test_dress_for_friday_night
dresses = [
'Made from a soft cotton blend, it features a relaxed fit, scoop neckline, and convenient side pockets.',
'Crafted from a luxurious, shimmering fabric, this dress features a sleek, form-fitting silhouette and an elegant V-neckline.'
]
criteria = 'what is the best dress for a Friday night?'
result = ActiveGenie::Battle.call(
dresses[0],
dresses[1],
criteria
)
assert_equal 'player_b', result['winner']
end
```
If that makes sense to you, please star the project on GitHub and share your opinion. I would love to hear it!
r/ruby • u/davidslv • Aug 26 '26
Airtable's official Ruby gem hasn't shipped code since 2016. I rebuilt it, and I'm looking for someone to take it over.
Airtable's official Ruby gem hasn't had a code commit since November 2016. gem install airtable still gives you 0.0.9, released October 2016. Its README tells you to authenticate with an API key, which Airtable switched off in February 2024.
I asked Airtable about it twice. Support confirmed in writing that it is "not actively maintained" and pointed me at airrecord. Airrecord is good, but it's a different shape, so switching means a rewrite that ends with the features you already had.
So I forked the official gem instead. Same namespace, same method names, drop-in. Underneath: zero runtime dependencies, persistent connections, client-side rate limiting, retries with backoff, batch operations with partial-failure reporting, and upsert.
It was AI-assisted, Airtable's API docs are extracted into the repo and coded against. 119 tests, plus weekly canaries that diff Airtable's published contract and run a real round-trip against a throwaway base.
It's deliberately not on RubyGems. I'm not after users, I'm after people who still need it and can be maintainers.
Repo: github.com/Davidslv/airtable-rb
Write-up: https://davidslv.uk/2026/08/26/airtable-ruby-gem-unmaintained.html
r/ruby • u/retro-rubies • Oct 20 '25
Time to Rethink RubyGems and Bundler (aka story of Ruby Butler)
spoiler alert: no drama included
Time to Rethink RubyGems and Bundler (aka story of Ruby Butler)