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
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 Community | https://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
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
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
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
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
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
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
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
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
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