Ruby on Rails | rubyclub
1.53K subscribers
214 photos
1 video
263 links
Software Writer @yegorckv
Download Telegram
๐Ÿ’ป Episode #3 โ€“ Writebook by ONCE

Hey everyone! Welcome back to Ruby&Beyond! Today, we're diving into the Writebook project from ONCE.com by 37 Signals. Iโ€™ll take you through the code, showing you how itโ€™s all put together. Whether you're new to Ruby or have been at it for a while, you'll find some cool tips and tricks in this walkthrough.
Please open Telegram to view this post
VIEW IN TELEGRAM
Vite Ruby

Vite Ruby is an umbrella project that provides full Vite.js integration in Ruby web apps.

vite_rails provides similar functionality as webpacker does for webpack, without all the configuration overhead and dependencies.

vite_ruby can be used in plain Rack apps, and is all you need when using HTML entrypoints.

There are also integrations for Jekyll, Hanami, and Padrino.
DHH

Solid Queue now runs close to 20 million jobs daily, just for HEY. When we are done migrating all the apps, we will be processing nearly 100 million jobs per day through Solid Queue. It'll be a very SOLID 1.0
๐Ÿ’ป Ruby tips

Take advantage of Enumerable#minmax_by to return a 2-element array containing the elements for which the block returns minimum and maximum values
Please open Telegram to view this post
VIEW IN TELEGRAM
There are three things you can watch endlessly: fire burning, water flowing, and the question "Is Ruby dying?" being discussed at our Tech Talk.

Join us on July 24 at 18:30 CET in an engaging interview where weโ€™ll talk about the future of this language.

Register here

At the meeting, we'll discuss:
๐Ÿ”นWhat's Ruby and what are the benefits and possibilities of it?
๐Ÿ”นIn which fields and domains is Ruby used?
๐Ÿ”นWhat frameworks, databases, and tools are used together with Ruby?
๐Ÿ”นWhat projects are better to develop on Ruby?
๐Ÿ”นHow big is Ruby community?
๐Ÿ”นAre there any events, or meet-ups for Ruby Developers?
๐Ÿ”นWhatโ€™s the future of Ruby language?
๐Ÿ”นIs Ruby really โ€œdyingโ€ and what awaits him in the future

The meetup will be useful for both experienced professionals and newcomers to IT.

Tech Talk details:
๐Ÿ“ Location: Warsaw
๐Ÿ—ฃ Language: Russian
๐ŸŒ Format: Online (interview)
๐Ÿ‘ฅ Speaker: Uladzislau Fralou, Senior Software Engineer
๐ŸŽค Interviewer: Ihar Rybak, Senior Software Engineer

Don't miss the opportunity to ask your questions, discuss the topic with experts, and meet like-minded people.
Register now and stay informed about the latest trends and prospects!

Do you have something to share with the world? Become a speaker!
๐Ÿ“บ NEW Rails 8 Authentication Generator

Recently DHH merged a PR that adds an authentication generator to Rails.

Currently the generator allows email-password log in for existing users. It does not tackle registrations.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Don't want to use an empty `rescue` to silence an error?

Use Rails' Kernel#suppress instead!
Please open Telegram to view this post
VIEW IN TELEGRAM
RailsConf 2024 - Progressive Web Apps with Ruby on Rails by Avi Flombaum

Progressive Web Apps (PWAs) have emerged as a solution for offering the seamless experience of native apps combined with the reach and accessibility of the web. This talk will dive into building an offline-first RSS feed reader that leverages the full potential of PWAs such as Service Workers, Background Sync,

We'll explore how to register, install, and activate a service worker in a Rails application.
๐Ÿ’ป Hash value omission - an introduction and some examples

The hash literal value omission was added to Ruby version 3.1 in 2021. This is the feature proposal that describes the feature request and the one that was implemented
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
๐Ÿ’ป Attractor

A code complexity metrics visualization and exploration tool for Ruby and JavaScript. If you are looking for a managed solution to observe your code's quality, check out UseAttractor
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ“บ "Refactoring Volatile Views into Cohesive Components"

It's easy for models to grow unwieldy, accumulating methods, attributes, and responsibilities. But views can be even worse. Let's refactor the mess into clean, cohesive components with ViewComponent.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘ฉโ€๐Ÿ’ป Background Jobs in Rails with SolidQueue

In this episode we will setup SolidQueue in our Rails app. So that we can use our database as a job queue for our background workers
Please open Telegram to view this post
VIEW IN TELEGRAM
DHH about RailsWorld

I owe the trajectory of my entire career to Matz. Couldn't be happier to have him at Rails World for a chat with Tobi and I. Optimize for programmer happiness!


Special #Railsworld announcement: @yukihiro_matz and @dhh will share the stage for the very first time for a fireside chat about #Ruby, #Rails and all things #opensource. This special conversation will be moderated and hosted by Shopify founder and early Rails Core member @tobi.
๐Ÿ“ฎ ViewComponent Crash Course with Ruby on Rails

ViewComponent is a powerful gem that allows you to create reusable, testable, and encapsulated view components in Ruby on Rails applications.

ViewComponent was developed by the GitHub team and has since been adopted by many developers looking for more structure than the default partials and helpers provided by Ruby on Rails. This crash course will review ViewComponent's use case and explore how it might fit your next Rails app.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ“บ Getting Started with Turbo Native in Ruby on Rails | SupeRails #184

Let's learn to build mobile apps with Hotwire using Turbo Native
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ“ฎ When to Use call, erb_template, or html.erb in Rails ViewComponents?

ViewComponent has multiple methods to render ERB and HTML. Initially, when ViewComponent was released, there were two options:

a separate html.erb file, and;
a call method.
Please open Telegram to view this post
VIEW IN TELEGRAM
Explaining OOP in pictures

Ivan Nemytchenko

I accidentally invented this approach while teaching OOP in Ruby programming language to my students.

Their task was to come up with a list of components of a smart kettle with some safety features. It was their 2nd week of learning programming, and some students were struggling with this task, as it was too abstract to them.
๐Ÿ’Ž [EN] Ruby Mixology 101: adding shots of PHP, Elixir, and more / Vladimir Dementyev @palkan_tula

๐Ÿ“บ https://youtu.be/tfzAZiGGHvM?si=lMAIfPBnTR7INKK2
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ’ป Delegated Types - Rails in Focus

In the first video of this new series, we're diving into a Rails feature that can transform how you manage your app's database relationships - Delegated Types. Introduced in Rails 6.1, this feature offers a new approach to multi-table inheritance, providing a more efficient and type-safe alternative to Single Table Inheritance (STI) and classic Polymorphism
Please open Telegram to view this post
VIEW IN TELEGRAM