Use Delta to improve Git diffs with syntax highlighting for better readability in your terminal. Install and configure for better code reviews
Use Delta to improve Git diffs with syntax highlighting for better readability in your terminal. Install and configure for better code reviews
Learn to create Ruby Data classes using block syntax and inheritance, and understand their differences and use cases
See examples of using Ruby's Data class for creating value objects, removing boilerplate code, and enhancing API response handling
Learn to implement JSON-LD schema on your blog for better SEO, richer search results, and improved content understanding by search engines
Discover how to override a class or instance method without editing its source file in Ruby on Rails.
Proposal to reopen discussion on making the `private` method work on constants in Ruby for better code simplicity and consistency
Learn about hash value omission in Ruby, their benefits, examples, and implementation guidelines for more concise code
Explore refactoring Rails transaction blocks with the endless method. Pros and cons, examples from Maybe and Mastodon, and community feedback
Compare `Data.define`, `Struct`, `OpenStruct` in Ruby: object creation and accessing attributes
Explore the evolution of Ruby's endless method syntax: its origins, proposals, and the innovative solution for concise, single-expression methods
Configure Rails app using automated quality checks, security audits, and best practices for maintainability and consistency in solo or side projects
Explore Ruby method definitions with IRB using source_location, show_source, and ls commands.
Discover Ruby syntax evolving since 2.7
Discover Ruby 3.3's `it` default block param warning, its impact on RSpec, and how to fix potential conflicts. Learn more in my video or article.
Explore Mastodon, an open-source, federated social network prioritizing privacy and freedom of expression, built with Ruby, Rails, React, and Redux
Explore Feedbin, an open-source Ruby on Rails platform combining RSS feeds with newsletters so that you can enjoy content on web
Analyze Ruby Gems download trends (2013-2023), showing rapid growth from 2019, likely linked to CI/CD adoption and Ruby's rising popularity
Explore Zammad: open-source Ruby ticketing system with cloud, custom styling, multiple databases, and service objects on Ruby 3.1.3, Rails 7
Use ActiveRecord::Suppressor, conditional callbacks, or patch ApplicationRecord to skip Rails callbacks.
Explore the question: Where is a method defined in Ruby when not defined inside an object?
Utilizing Cursor IDE and GPT-4 for logo placement, spacing adjustment, equal column height, and group hover element display.
Promote Ruby articles on platforms like Rubyflow, Rubyland, LibHunt, YCombinator, RubyRadar, Short Ruby Newsletter; republish on Dev.to, Hashnode, Med...
Explore Ruby's pass-by-value approach, enabling object modification without altering original references, which is essential for efficient object handling
If you browse one of the latest editions of Short Ruby News, you will notice that each one has a Community section and that is the first section of the newsletter. Here is a sho...
Look at your code and identify any areas where you can improve. Refactoring isn't about fixing bugs but improving your code's readability, efficiency, and maintainability. Look ...
Today I wanted to achieve the following: Change the key for the parent resource when accessed in the nested resources # instead of /collections/:collection_id/entries # wanted ...
What is method gravity? What I call Method Gravity means for me: The bigger the method the more new lines of code will be added to it. I noticed this while working on various ...
A bit of (personal) history I learned Ruby, I think, around 2007, and back then, it was a language pushing boundaries for me. Before encountering Ruby, I worked with Java, C/C++...
This is primarily a response to a Reddit comment but I have encountered this line of pushback against short-hand syntax multiple times. Thus I think it is good to write it down ...
I like to use as much as possible the new features in Ruby. In this case, I will show how to take advantage of shorthand hash syntax whileThe on changing from instance variables...
If you want to freeze strings in Ruby there are at least two ways to do this: 1) Adding the magic comment at the beginning of the file # frozen_string_literal: true 2) Calling ...
I will try to explain what a class is in some other way, somehow quoting or paraphrasing in some parts what @steveklabnik said a very long time ago in a presentation about OOP i...
I read this article about DRY and this prompted me to write some thoughts about this. This was a very debated article about what is DRY and what it means to use it or not and th...
Imagine you are taking part in a coding competition. Let’s explore what it might look like. You found this contest online and registered to participate. On the day of the event,...
I shared this first as a thread on Twitter but I think I want to document it also here: https://twitter.com/lucianghinda/status/1518594459189104640 Courses and Trainings https...
Context Let's say that you have two array of hashes: a = [ { initial: "a", email: "a@example.com" }, { email: "b@example.com", initial: "b" }, { ...