Tutorials

Mastering PostgreSQL Views and CTEs for Rails Developers: A Comprehensive Guide - DEV Community
Views and Common Table Expression or CTE are two important concept in PostgreSQL. There are good chances that you will have to deal with it if you work with data.In my quest to become a SQL wizard, I had to tackle this of course. In a first part I...

Mastering Eager Loading and Beyond! Rails 7 - DEV Community
If you're building a web application using Ruby on Rails, you might find that your queries are becoming slow as the size of your database grows. One way to improve performance is to use eager loading, which allows you to load associated records up...

ASMR Programming - Snake in Terminal - No Talking - YouTube
Hello my dear coders,In today's video, I'll code a Snake in the Terminal.Hope you like it!SOURCE CODE: https://gist.github.com/mehdi-farsi/f...Don't miss out on exclusive coding tips and tricks! Hit that subscribe button now and join the journey t...

Rails Generator for GraphQL queries - DEV Community
This article is about a real need I had in my work.Create a graphql queries in rails, Everytime I have to make a do this I have to create a bunch of file, sometimes even directory because they did not exist yet.I wanted to automate the generation ...

From string to sing: How ChatGPT can write your rails' Active Record code - DEV Community
Let's face it, fellow Rails devs: a lot of what we do is just basic CRUD. We spend most of our days translating user requests into queries that hit our database. And let's be honest, we're not animals - we're not writing raw SQL. No, we dress that...

How to Use ChatGPT API with Ruby on Rails: A Step-by-Step Guide - DEV Community
ChatGPT is a conversational AI model developed by OpenAI that generates human-like responses to text inputs. It can be integrated into various applications to enhance their user experience. This tutorial will discuss integrating ChatGPT API into a...

Work smarter, not harder (how to use the "rails g resource" command) - DEV Community
A resource in Rails is a representation of a model, controller, and views that work together to provide CRUD (Create, Read, Update, Delete) functionality for a specific type of object. For example, if you were building a blog application, you migh...



Adventures in Time: Debugging a Daylight Saving Bug
What’s more fun than bugs? Bugs involving time! And none are so fascinating as bugs involving daylight saving time.With Daylight saving time almost upon us again, I thought it would be fun to revisit this bug my team and I stumbled across last fal...