RubyCademy (@RubyCademy) header
RubyCademy (@RubyCademy) profile picture

πŸŽ“ Learn Ruby β†’ https://xitter.gq/t.co/W5onCJ3v7Z πŸ› οΈ Boilerplate β†’ https://xitter.gq/t.co/ElyZnSyYTh

Joined October 2018
Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)Photo by RubyCademy (@RubyCademy)
Most SaaS ideas fail before launch, not because they’re bad, but because the founder got bored building auth and billing. πŸ”— launchkit.codes
πŸ€– Made with AI
1
9
1,271
You can use an infinite range in `case/when` to express "N or more" in a clean, readable way! 🀩 πŸ”— launchkit.codes
16
737
In Rails 8, adding a `!` to a type automatically makes the column non-nullable. These small additions are what make Rails great! πŸ’š πŸ”— launchkit.codes
1
1
14
836
RubyCademy retweeted
A New AI Agent-Oriented Programming Language? πŸ”— youtube.com/watch?v=pS2-3gOF…
πŸ€– Made with AI
1
3
145
Tired of the default Rails DB console? In Rails 8, you can now customize it! πŸ’š #rubyonrails πŸ”— launchkit.codes
2
19
1,022
Replying to @RubyCademy
rails 8 launchkit with agents.md so coding agents actually understand the boring stuff
1
1
168
NOBODY CODES ANYMORE. So I built LaunchKit for the agents too! Rails 8, all the boring stuff already built, full documentation, and an AGENTS.md that helps your coding agent understand the entire codebase. launchkit.codes
2
1
7
433
In Rails 8, you can now access your notes directly in the browser by visiting `GET /rails/info/notes`! Small details like this are why we love @rails! πŸ’š
3
30
917
✨ RUBYCADEMY CARDS ✨ Rails has a `halted_callback_hook` that fires whenever a before_* callback halts. 🀩 Super handy for debugging and logging! #rubyonrails
4
30
946
Two Rails 8 defaults that don't compose. rate_limit counts in your cache store. Solid Cache increments under SELECT ... FOR UPDATE, which locks nothing when there's no row yet. First hit from a new IP, two at once, both write 1. A limit of 10 admits 11. launchkit.codes/yield/rails-…
1
16
1,059
Rails 7.1 added a neat little upgrade to rails routes --expanded: Source Locations! πŸ’š Now you can instantly see exactly where each route is defined in your codebase. #rubyonrails
3
34
1,450
RubyCademy retweeted
Ruby makes it so easy to keep user input within a safe range using `clamp()`! πŸ’š Perfect for forcing a value between MIN and MAX without extra ifs. πŸ”— launchkit.codes
1
2
33
1,496
RubyCademy retweeted
Can You Solve This Ruby Interview Question? πŸ”— youtube.com/watch?v=q9lxGwWi…
2
12
922
Helpers like these are exactly why we love Rails! πŸ’š #rubyonrails
1
1
20
984
Can You Solve This Ruby Interview Question? πŸ”— youtube.com/watch?v=q9lxGwWi…
2
12
922
Ruby makes it so easy to keep user input within a safe range using `clamp()`! πŸ’š Perfect for forcing a value between MIN and MAX without extra ifs. πŸ”— launchkit.codes
1
2
33
1,496
RubyCademy retweeted
Done in just 7 lines of Ruby! 🀯 πŸ”— youtube.com/watch?v=PahRQGRK…
1
13
1,320
Done in just 7 lines of Ruby! 🀯 πŸ”— youtube.com/watch?v=PahRQGRK…
1
13
1,320
RubyCademy retweeted
Rails 8 added `except_on:` for validations! 🀩 A clean way to say "always validate, except in this context." It is simpler than `if:` or `unless:` and perfect for drafts, multi-step forms, or any workflow where some fields can be missing! πŸ”— launchkit.codes
1
5
1
58
2,425
Rails 8 added `except_on:` for validations! 🀩 A clean way to say "always validate, except in this context." It is simpler than `if:` or `unless:` and perfect for drafts, multi-step forms, or any workflow where some fields can be missing! πŸ”— launchkit.codes
1
5
1
58
2,425
One of my favorite additions to Rails 7.1 is that you can now alias columns in `select` with a hash instead of raw SQL! 🀩 πŸ”— launchkit.codes
38
1,743