Discover and read the best of Twitter Threads about #rails

Most recents (16)

Want to level up your Rails skills? Check out this thread on string manipulation tips! 🧵
#rubyonrails #rails
CamelCase: It converts the first and second letters of each word to uppercase. Great for words with underscores Image
dasherize: Replace underscore with a hyphen Image
Read 10 tweets
I created the sixth issue of the @shortrubynews #shortruby

Read the entire issue here: newsletter.shortruby.com/p/issue-6-2022

So here is what happened in #Ruby on Twitter last week
@shortrubynews @justalever @chalmagean shared some topics that a junior developer should focus on along with learning the language or framework:
Read 52 tweets
🧵 A thread about gusto's newest #gradualmodularity (nah, I should say #bigrails) open source work by our very own @AlexEvanczuk: It is all about managing big rails applications with a lot of people!

There is a lot, so buckle up!

See them all at github.com/bigrails
This work is part of what the _product infrastructure_ team does at @GustoHQ!

If stuff like this is interesting to you, DM me or find me elsewhere and let's chat!
First up github.com/bigrails/stimp…! This gem makes organizing your Rails app's folders such that they work well with packwerk a breeze. Just point it at a folder and all needed autoloading is done for you! Kudos to @nganpham!
Read 13 tweets
I'm exploring how to send secure messages in #rails with ActiveSupport::MessageVerifier.

What makes the message secure?

🔐 It's not stored in the database
🔗 The URL expires, cannot be tampered with, and is non-sequential.

Code snippets in 🧵
Using ActiveModel gives us a nice API to work with, without needing to save the record to the database.
We can then convert an instance of that model into a secure message generated with ActiveSupport::MessageVerifier.
Read 3 tweets
Have you ever needed to get the most recent record for each user in #rails, but didn't know how to do it without using map?

Here's one way to do it with Active Record 👇
Calling group(:user_id).minimum(:id) returns a hash where the key is the user_id and the value is the ID of their latest (or first) post. Calling .values simply returns the IDs.

We can then pass that list to where(id:) to return a list of the latest (or first) posts per user.
Since the IDs are set in sequential order, the minimum ID is the ID of the user's first post, and the maximum ID is the ID of the user's latest post.
Read 5 tweets
@sidekiq can easily process, not just millions, but billions of background jobs, without any sweat.

- Company processing (few of many)
- Insights on how to scale
- Few handy Gem/Tools (eg. for concurrency and threshold throttling)

A thread 🧵👇

#Ruby #Rails #rubyonrails
"2.8 billion Sidekiq jobs were processed over the past month" @ConvertKit
"...we have implemented many changes that allow us to process billions of jobs that interact with our databases hosting more than 60 TB of data in more than 90 billion documents" sensortower.com
Read 10 tweets
Ruby gems worth checking and considering

A thread 🧵👇

#Ruby #Rails #rubyonrails
💎 scientist 💎
A Ruby library for carefully refactoring critical paths

github.com/github/scienti…
💎 strong_migrations 💎
Catch unsafe migrations in development

github.com/ankane/strong_…

by @andrewkane
Read 12 tweets
Hi #Rails Friends! I’m thinking of Creating a list for the top Bootstrapped #RubyOnRails companies of 2021. I’d appreciate any replies with links or tags of rails apps/startups/projects, especially bootstrapped ones. #IndieDevs #railsdevs #startups #StartuposOnRails
I'd also appreciate retweets and helping me by tagging rails devs to follow. 🙏
Read 3 tweets
The fundamental problem of #web #development:

Turning trees into tables and back

(Thread 1/6)
It may seem simple as you may have some data in tables (hello, MySQL) and you want them on a web page (hi, <table>). But you start joining data from other tables and you end up displaying a tree in a table. How? You never know how to do it until you try to use that. UX!

(2/6)
But if you have tree-data, tree-database (hello, Mongo), and tree components on website, you still need tables to present the data of similar structure. It's all 2D and are brains are trained to get information presented as combination of 2 axes. Hello, tables!

(3/6)
Read 7 tweets
El tiempo vuela, pero lo prometido es deuda

Le había dicho a @asdrubalivan y a @ramloarc que iba a compartir más contenido #Backend

Por acá les dejo un hilo sobre PostgreSQL Performance Improvements

#performance #PostgreSQL #developer #DEVCommunity #rails #backend
@asdrubalivan @ramloarc Partamos con lo básico,

La vieja confiable documentación.

Aquí van a encontrar todo lo que necesiten.

postgresql.org/docs/14/index.…
@asdrubalivan @ramloarc Si hablamos de #performance #improvement en #PostgreSQL no puede faltar el comando Explain.

Asi ustedes van a ver que ruta va a tomar tu consulta SQL al momento que se ejecute.

#backend #DEVCommunity

Explain Command
postgresql.org/docs/14/sql-ex…
Read 16 tweets
início de um sonho // deu tudo certo #rails #ruby

estamos pra escrever um blogpost sobre, não só ao update em si, mas como um processo de melhoria contínua permite que esses tipos de updates possam ser feitos sem muitas dores numa codebase *enorme* + ImageImage
quem esteve a frente disso foi a @anakbns, q fez um ótimo trabalho levantando o impacto que teria na codebase.

iniciou-se um trabalho em etapas, onde a primeira era resolver deprecation warnings. isto feito, facilitou mto o upgrade meses depois, onde fizemos poucas alterações +
um fator que facilitou tbm é que já estávamos na versão 5, então fizemos bump para o último minor +
Read 9 tweets
A petición de @ramloarc vamos a empezar a compartir más contenido #backend

Empezando con lo que trabajo en GitLab.

¿Cómo aprendí #rails #ruby ?

La vieja confiable documentación.

Pásenle que hay mucho trabajo remoto
guides.rubyonrails.org/getting_starte…
@ramloarc Si de verdad quieren entender el funcionamiento del MVC de Rails,

hagan una prueba creando una mountable app, que en #rails serian #railsengines

#backend

guides.rubyonrails.org/engines.html
@ramloarc Hace 3 años, hice una prueba técnica básica,

Crear una API con #ruby #Rails y luego mostrar esos datos en un grafico de lineas.

Por acá pueden echarle un ojito

#backend

github.com/luismejiadev/c…
Read 11 tweets
I listened to Rails With @JasonSwett, episode 57 - @_swanson, Creator of Boring Rails

🎧 overcast.fm/+SMfICOQYM

I took a lot of notes — way more than I usually do for a podcast, so I thought I'd make a thread... ⤵️
React is the craze right now. New developers are entering the dev world and that's the norm — maybe it is, but it can be easy to forget that front end frameworks aren't even required.

💭 We forget that React was created by Facebook, and they have very different needs to most.
Business logic is complicated enough without adding front-end complexity — simple CRUD apps are amazing powerful.

👤 "Make sure that with whatever you add, you add value to your end user." [paraphrased]
Read 11 tweets
Throwback to early days of #ROR ~ circa 2007/08

Ruby's single threading was leading to serious scalability challenges at SlideShare (also Twitter etc). The word on the tech street - "RubyOnRails ain't enterprise-class. These platforms won't scale".

#RubyOnRails #Rails #Ruby /1
ROR was optimized for "developer efficiency & happiness".

That's what endeared it to Web2.0 startups - iterate, build fast & break things, think MVP, Agile, Lean... get to product-market-fit ASAP

Whether it could deliver at enterprise scale like java, dont net was untested /2
I do remember - the cacophony about the supposed "non-scalability of ROR" did give us nervous moments at SlideShare.

AFAIR it was NGINX that played a key role in helping address ROR's scalability issues gradually!

@jboutelle..... is that correct? /3
Read 5 tweets
building a long-life (10yrs+) graph-backed web service for @pariyatti (a non-profit). we're planning to use #neo4j

i have some questions.
#python + #django support seems... weak, at best? (latest commits to `neomodel` and the django plugin are 2019/2018 with no support for neo4j 4.x)

is this a misconception on my part? i'd love a shout out from people happily building webapps with #neo4j on #python out there
#ruby and #rails support seems okay. #activegraph is a thing and there was a commit this week. the design seems sane.

i have 10-year-old rails apps, though. they... don't work. the ruby & rails ecosystem isn't really geared toward "boring things that will work in 10-20 years"
Read 6 tweets
🤔 How do you currently solve #authentication?

Here’s a summary of #AuthN solutions from this #HackerNews thread:

news.ycombinator.com/item?id=221571…

👇👇👇
#Firebase Auth

- Free
- Scalable
- Easy to get up & running
- Good docs
- Social auth
- Integrate with any OAuth system via custom tokens
- Email verification
- SMS auth, passwordless login (“magic links”)
- SDK’s for different languages

@Firebase | firebase.google.com/docs/auth

🔗
#KeyCloak by @RedHat

- Open source
- Social auth, SSO
- Good docs & support
- Easy deploys within a #Docker container
- OAuth2, OIDC, SAML, MFA, themes, & more

@keycloak | keycloak.org

🔗
Read 9 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!