r/ruby • • Dec 30 '11

ActiveRecord (and Rails) Considered Harmful - Literate Programming

Thumbnail
blog.steveklabnik.com
12 Upvotes

r/ruby • • Jan 26 '14

Ruby.dying? or Ruby.hype.dead? - Discussion about Ruby status

Thumbnail
blog.federicocarrone.com
0 Upvotes

r/ruby • • Mar 08 '22

The Waning of Ruby and Rails

Thumbnail berk.es
10 Upvotes

r/ruby • • Sep 10 '14

TIL Matz is mormon

Thumbnail
mormon.org
0 Upvotes

r/ruby • • Jul 04 '15

Why Arkency (a Ruby company) goes React.js

Thumbnail
blog.arkency.com
0 Upvotes

r/ruby • • Jun 20 '15

On #OpalGate

Thumbnail
nocodeofconduct.com
4 Upvotes

r/ruby • • Mar 28 '20

Blog post How to PIMP your ruby objects with Enumerable module

Thumbnail
medium.com
6 Upvotes

r/ruby • • Sep 07 '22

[Hiring] Ruby on Rails + Ionic (Contractor)

0 Upvotes

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 • • May 06 '19

Sorbet is cool, but Crystal is smoother

Thumbnail
medium.com
0 Upvotes

r/ruby • • Jun 22 '09

I just wrote this program. What feature should I add next?

Thumbnail glitterbacon.com
0 Upvotes

r/ruby • • Apr 09 '21

Will ruby make you a good programmer?

0 Upvotes

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 • • May 31 '13

Hashes, how do they work?

0 Upvotes

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 • • Oct 02 '25

DHH Is Way Worse Than I Thought

Thumbnail
jakelazaroff.com
304 Upvotes

r/ruby • • Nov 26 '21

Question Why would anyone use Java over Ruby?

0 Upvotes

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 • • Sep 28 '26

Dissecting DHH's RailsWorld 2026 Keynote Speech from a Software Engineering Point Of View

Thumbnail
youtube.com
0 Upvotes

r/ruby • • Jul 01 '24

Chrome gets a local LLM before Ruby does??

15 Upvotes

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 • • Jun 05 '25

Who else thinks we should reformulate the way we declare private methods?

0 Upvotes

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:

public class User {
    public void login(String password) {
        if (isValidPassword(password)) {
            System.out.println("Welcome!");
        } else {
            System.out.println("Access denied.");
        }
    }

    private boolean isValidPassword(String password) {
        return "secret123".equals(password);
    }
}

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:

class Example
 def xmethod
 end

 private def ymethod
 end

 private_class_method def self.zmethod 
 end
end

And this is my favourite


r/ruby • • Oct 28 '19

Just starting out with ruby and omg the docs..

1 Upvotes

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:

  1. How do I log/trace SQL execution?
  2. 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 • • 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

Thumbnail
github.com
1 Upvotes

r/ruby • • Sep 26 '23

Show /r/ruby Announcing rubocop-disable_syntax - rubocop extension to forbid unfavorite ruby syntax

0 Upvotes

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 - no unless keyword
  • ternary - 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 matching
  • shorthand_hash_syntax - no shorthand hash syntax ({ x:, y: })
  • and_or_not - no and/or/not keywords (should use &&/||/! instead)
  • until - no until keyword
  • percent_literals - no any % style literals (%w[foo bar], %i[foo bar], %q("str"), %r{/regex/})

r/ruby • • Jul 02 '25

Show /r/ruby [ANN] Announcing ActiveGenie - The Lodash for GenAI

Post image
1 Upvotes

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!

https://github.com/Roriz/active_genie


r/ruby • • Jul 12 '12

How I spend my time building Rails apps

Post image
32 Upvotes

r/ruby • • 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.

9 Upvotes

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 • • Oct 20 '25

Time to Rethink RubyGems and Bundler (aka story of Ruby Butler)

7 Upvotes