Ruby on Rails | rubyclub
1.54K subscribers
234 photos
1 video
280 links
Software Writer @yegorckv
Download Telegram
Big News: Ruby Version 3.0

Ruby 3.0 performance: no more issues

Everybody knows Ruby is the perfect language for MVPs, prototypes, and startups, but Ruby’s speed is definitely the biggest issue with the programming language. People claim that the language needs to be faster for massive projects. Do you agree? If so, you’ll enjoy the updated Ruby 3.0. In 2020, Ruby 3 will be three times faster than the current Ruby version thanks to Ruby’s performance optimization.

https://sloboda-studio.com/blog/big-news-ruby-version-3-0/
Ruby-on-Rails bullet gem tutorial

Rails bullet gem is here to solve the N+1 query problem. Let's create this problem first, and solve it thanks to the Rails bullet gem.

https://www.bootrails.com/blog/rails-bullet-gem-tutorial/
Forwarded from Ruby on Rails | rubyhub
Ruby on Rails #102 Email Calendar Invite

In the PREVIOUS episode we generated .ICS files, that can be downloaded and added to your calendar. In THIS episode we will EMAIL calendar invites and automatically add them to a users calendar! We will also handle updating/cancelling events!

https://www.youtube.com/watch?v=UhtKk6w1fwU
👍1
Learn Hotwire by Building a Forum

Want to learn how to use Hotwire to progressively enhance your applications? In this course we'll build a real-time forum and get into use-cases that aren't as simple as the Hotwire chat demo.

https://store.afomera.dev/view/courses/learn-hotwire
Hotwire, ViewComponents and TailwindCSS: The Ultimate Rails Stack

It is a Stock ticker viewer, built with Rails, Hotwire, ViewComponents and TailwindCSS with a grand total of 7 lines of Java script!

https://blog.cloud66.com/hotwire-viewcomponents-and-tailwindcss-the-ultimate-rails-stack
👍2
Deploy a Ruby on Rails app with Render.com

With the end of Heroku’s free tier hosting services a lot of people are looking for alternatives. I have found Render to be a great service for hosting individual and side projects, especially with Rails. In this article I’ll go through how to set up your app for deployment with Render from start to finish.

https://medium.com/@laura_brooks/how-to-deploy-a-ruby-on-rails-app-with-render-com-9a824193e636
👍4
Ruby on Rails #105 parse JSON and YAML

JSON and YAML are great ways of storing data structures.
You can parse a JSON/YAML file directly with Ruby, or within a Rails application.
You can also WRITE to the file!

Popular usecases:
- parse file and create seed data
- display parsed default data directly in a view (for example FAQ section)

https://youtu.be/55qBySBH_8k
👍2
FormService: a PORO ServiceObjects with a state

The ServiceObject pattern is a powerful way to encapsulate specific business actions or workflows in Ruby on Rails. By separating concerns and keeping your controllers lean, ServiceObjects can help make your codebase more maintainable and easier to understand.

https://dev.to/povilasjurcys/formservice-a-poro-serviceobjects-with-a-state-4a75
👍3
abi2ruby gem - generate ready-to-use contract services for Ethereum & Co.

abi2ruby that lets you generate ready-to-use (blockchain) contract services / function calls for ethereum & co. via application binary inferfaces (abis). See the abi2ruby readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.

https://github.com/rubycocos/blockchain/tree/master/abi2ruby
1
Advanced interview questions for a Ruby developer

Have you ever felt frustrated when trying to prepare for an interview, and getting only questions like what is an MVC or what is the difference between a Class and a Module? Well, me too…

https://medium.com/@real_wyodeb/advanced-interview-questions-for-a-ruby-developer-65ba774c2ca9
🔥1
RSpec best practices

Rspec is a great tool in the behavior driven design process of writing human readable specifications that direct and validate the development of your application. We’ve found the following practices helpful in writing elegant and maintainable specifications.

https://blog.carbonfive.com/rspec-best-practices/
👍2
Making the Most of Your Logs in Rails

Most people only realize the necessity of logs when they need them the most. But when your application breaks, user complaints start flooding in, and you have no clue how to fix it, it's too late to add some log messages that might have helped.

https://blog.appsignal.com/2023/03/01/making-the-most-of-your-logs-in-rails.html
🔥1
Minitest vs. RSpec in Rails

Rails defaults to minitest, but much of the community has adopted RSpec—which is right for you? In this article, William Kennedy compares RSpec and Minitest in a new Rails app.

https://www.honeybadger.io/blog/minitest-rspec-rails/
🔥4