Rubyland
585 FOLLOWERS
A Rubyland Blog news, opinion, tutorials, about ruby, aggregated.
Rubyland
2h ago
Originally appeared on DEV Community: Brandon Weaver.
Perhaps my personal favorite recommendation for learning to program Ruby like a Rubyist, Eloquent Ruby is a book I recommend frequently to this day. That said, it was released in 2011 and things have changed a bit since then.
This series will focus on reading over Eloquent Ruby, noting things that may have changed or been updated since 2011 (around Ruby 1.9.2) to today (2024 — Ruby 3.3.x).
Chapter 14. (Don't) Use Class Instance Variables
From the last article:
Speaking of, next up we have class instance variables, which admittedly I am ver ..read more
Rubyland
11h ago
Originally appeared on AkitaOnRails.com.
Pra quem não conhece, é como se fosse uma rede social descentralizada (mas não serve só pra isso). Isso é atraente: não tem como tirar do ar. É que nem "bitcoin" só que mensagens. É só um protocolo o "Notes and Other Stuff Transmitted by Relays", "Nostr".
Aliás, o protocolo foi criado um brasileiro (!!), Giovanni Torres Parra (@fiatjaf), em 2020.
Aos interessados em Threads, Mastodon ou BlueSky, vou comentar sobre isso na 2a metade do artigo.
Sendo Nostr só um protocolo, não tem um único site ou um único app. Tem vários que implementam o protocolo (pens ..read more
Rubyland
14h ago
Originally appeared on Charles Oliver Nutter.
Hello friends! Today we start a series on improving JRuby startup time using the new OpenJDK Project CRaC (Coordinated Restore at Checkpoint)! If that sounds intriguing, read on!
The Hardest Problem in JRuby
JRuby is the most successful and widely-deployed alternative Ruby implementation, but is frequently overlooked as an option due to several misconceptions:
“JRuby won’t work for my app because we use C extensions”
Most popular C extensions have JRuby equivalents (using pure-Ruby or our similar JRuby extension API), and others can be replaced by ..read more
Rubyland
16h ago
Originally appeared on RoRvsWild's blog.
GenevaRB is more than just a meetup. It’s a free, friendly gathering, with insightful talks and refreshing drinks, where you can connect with the local Ruby developers. It’s the place to be if you’re in Geneva, Switzerland, and passionate about Ruby and Rails. We’re thrilled to support this fantastic initiative, and we’re grateful to Yannis for making it happen again.
The following four dates are already been announced:
September 18th: Optimizing Financial Data Ingestion at Inyova (Rafael Millán)
October 16th: Developer Tooling for the Modern Rails &am ..read more
Rubyland
16h ago
Originally appeared on Mintbit.
ActiveRecord::Base.connection plays a crucial role in Rails applications by providing a direct interface to the database. It allows you to interact with the database connection associated with your ActiveRecord models. Here’s a detailed overview of its role and usage:
Role of ActiveRecord::Base.connection
Database Connection Management: It manages the connection to the database for all ActiveRecord models. Rails automatically establishes a connection to the database defined in the configuration file, and ActiveRecord::Base.connection provides access to this co ..read more
Rubyland
21h ago
Originally appeared on The Ruby on Rails Podcast.
Our illustrious cohost Nick is back from parental leave! We talk about life as a parent and coder, committing to Ruby on Rails, being coworkers and finding time for hobbies. I'm looking forward to recording with Nick again ..read more
Rubyland
1d ago
Originally appeared on Ruby Magic by AppSignal.
Rails partials have been around for years, but they can be clunky since they're just ERB snippets without a backing object structure.
Recently, libraries like ViewComponent and Phlex have tried to improve the view layer by adding more semantic structure to the templates. These are great libraries and I personally reach for ViewComponent on almost every project I work on. That said, I still feel the humble Rails partial still works great for many use cases.
The Rails team is always trying to improve its offering, so let's look at a new feature int ..read more
Rubyland
1d ago
Originally appeared on DEV Community: Brandon Weaver.
Perhaps my personal favorite recommendation for learning to program Ruby like a Rubyist, Eloquent Ruby is a book I recommend frequently to this day. That said, it was released in 2011 and things have changed a bit since then.
This series will focus on reading over Eloquent Ruby, noting things that may have changed or been updated since 2011 (around Ruby 1.9.2) to today (2024 — Ruby 3.3.x).
Chapter 13. Get the Behavior you Need with Singleton and Class Methods
Not everything fits inside a nice box. For every rule there's counterexample, for ..read more
Rubyland
1d ago
Originally appeared on Posts on Kevin Murphy.
Frequently Played ?
I tend to listen to the same songs or albums on repeat that are evocative of how I’m feeling or what’s going on with me. Here is what I’m currently listening to over, and over, and over, and over, again.
The Blues, Mary ?
Brian Fallon may be best known as the lead singer of The Gaslight Anthem. I appreciate his solo work during their hiatus too. I think future entries of this series will feature a lot of Brian’s output.
Full Lyrics
I learned how to cry
In them lonesome September nights
I learned to get by
With the dogs and the ..read more
Rubyland
2d ago
Originally appeared on The Bike Shed.
How can asynchronous programming transform your Ruby on Rails applications? Today, Stephanie sits down with Hello Weather co-creator Trevor Turk to unpack asynchronous programming in Ruby on Rails. Trevor Turk is a seasoned software developer known for his work on Hello Weather, a minimalist weather app that delivers essential weather data quickly and precisely. He’s also the creator of Weather Machine, an advanced weather data platform designed to serve reliable and highly accurate forecasts via API. With a background that includes work at innovative tech ..read more