280 Followers
6 Following
231 Posts

Tweeting out the best Ruby posts from https://dev.to 💎

Powered by
@thepracticaldev

Available on the bird app @The_Ruby_Dev

Join us on DEV Communityhttps://dev.to/t/ruby

By using two pointers to manipulate a data structure, we can efficiently search, process, and solve problems.

Here's how!

#DEVCommunity #Ruby
https://dev.to/nicholasgalante/algorithms-two-point-method-with-ruby-2n1e

Algorithms: Two Point Method with Ruby

The Two Point method is a commonly used approach for solving problems in computer science and...

DEV Community

I hope this provides you some insights on how to setup and use active storage in your applications as well as how custom validations work in Ruby on Rails.

#DEVCommunity #Ruby
https://dev.to/nemwelboniface/from-theory-to-practice-using-active-storage-for-file-management-in-rails-4o3f

From Theory to Practice: Using Active Storage for File Management in Rails

Introduction Welcome all! As we learned in my previous article, Active Storage is an inbuilt library...

DEV Community

In a self-referential relationship a class can interact with itself using a join table. Let's explore how it works!

#DEVCommunity #Ruby
https://dev.to/rayalva407/rails-self-referential-relationships-2e2g

Rails Self-Referential Relationships

In a self-referential relationship a class can interact with itself using a join table. While...

DEV Community

JSON data can often contain many unnecessary things. We can use serializers to format our JSON by selecting only the data that we really need, as well as get access to model relationships.

#DEVCommunity #Ruby
https://dev.to/rayalva407/sending-better-data-with-rails-serializers-1ohf

Sending Better Data With Rails Serializers

Using Ruby on Rails as an API is awesome because of its render :json method. The only problem is that...

DEV Community

Last week, Raymundo had their first technical interview with a company they were eager to join. This post showcases their solution to the challenge, which was to auto-correct a string based on simple rules.

#DEVCommunity #Ruby
https://dev.to/rayalva407/interview-programming-challenge-48pp

Interview Programming Challenge

A week ago I had my very first technical interview with a company I was very excited about. I had...

DEV Community

Macaw Framework is a Ruby-based web framework that prioritizes simplicity and user-friendliness without compromising on its powerful capabilities. Let's build a basic app with Macaw!

#DEVCommunity #Ruby
https://dev.to/ariasdiniz/introducing-the-macaw-framework-a-simple-evolving-ruby-web-framework-lb3

Introducing the Macaw Framework: A Simple, Evolving Ruby Web Framework

Hello there! I am excited to introduce you to the Macaw Framework, a Ruby-based web framework that I...

DEV Community

Did you know that you can use the "yield" keyword in your methods to make them more flexible? This can be especially useful for creating dynamic methods that can adapt to different situations.

{ author: @PeterKimFrank } #DEVCommunity #Ruby
https://dev.to/codenewbieteam/boost-your-ruby-methods-with-yield-a-flexible-approach-to-dynamic-coding-4b6h

Boost Your Ruby Methods with Yield: A Flexible Approach to Dynamic Coding

Hey Ruby developers! Did you know that you can use the "yield" keyword in your methods to make them...

DEV Community

Dokku is an open-source Heroku alternative that simplifies deploying and managing our apps on a server. Combine that with DigitalOcean's affordable Droplets, and you've got an attractive solution.

#DEVCommunity #Ruby
https://dev.to/samuelodan/how-to-deploy-your-rails-app-to-a-digitalocean-droplet-using-dokku-eh7

How To Deploy Your Rails App to a DigitalOcean Droplet Using Dokku

Hi there, you're probably searching for a simple and cost-effective way to deploy your Rails app,...

DEV Community

That bit of code you are writing today will potentially be read thousands of times in the coming years. Even if it takes a few more minutes to make it readable, the impact on maintenance can be absolutely enormous.

#DEVCommunity #Ruby
https://dev.to/carltonsmith/in-code-or-pull-request-where-should-i-comment-3fid

In Code or Pull Request, Where Should I Comment?

The principal I go by here is something I heard a long time ago. Code is read far more often than it...

DEV Community

Large transactions can cause DB deadlocks. You can speed up your transactions by executing search/retrieval queries before starting it to reduce the likelihood of table locks.

{ author: @jetthoughts } #DEVCommunity #Ruby
https://dev.to/jetthoughts/how-a-large-transaction-can-be-a-source-of-db-deadlocks-and-how-this-can-be-fixed-39lg

How a large transaction can be a source of DB deadlocks and how this can be fixed.

Recently in a project, we encountered the fact that sometimes we had a DB Deadlocks error. After...

DEV Community