📰 Dev.to · Augusts Bautra
Articles from Dev.to · Augusts Bautra · 26 articles · Updated every 3 hours · View all reads
All
⚡ AI Lessons (9351)
ArXiv cs.AIDev.to · FORUM WEBForbes InnovationDev.to AIOpenAI NewsHugging Face Blog

Dev.to · Augusts Bautra
2w ago
Versions VS Approvals
Exploring atomic and lobby-based changes

Dev.to · Augusts Bautra
1mo ago
TIL: Template Strict Locals (TSL)
Specify what local variables a partial needs

Dev.to · Augusts Bautra
3mo ago
TIL: Blazing-fast correlated exists queries
Find records with at least one of some association quickly

Dev.to · Augusts Bautra
3mo ago
The Secret of Minimum Coverage
It has to be high

Dev.to · Augusts Bautra
4mo ago
TIL: Inspect Rails app routes from info panel
I usually run $ rails routes | grep ... from console, but today I had to find a pesky excess route...

Dev.to · Augusts Bautra
5mo ago
TIL: define custom flash types in Rails
Add :warning flash type for Rails

Dev.to · Augusts Bautra
5mo ago
TIL: DB constraints for column values in Rails
#add_check_constraint for data integrity

Dev.to · Augusts Bautra
8mo ago
TIL Deferred Unique Constraint VS Unique Index
Sole the musical chair problem with a deferred constraint

Dev.to · Augusts Bautra
8mo ago
Custom `RoutingError` handling in Rails
Custom handling of `ActionController::RoutingError` in Rails

Dev.to · Augusts Bautra
9mo ago
What happens when OOP meets Real World™
Thoughts on OOP software design

Dev.to · Augusts Bautra
9mo ago
Recognizing Actor Boundaries Through Domain-Driven Design: Lessons from a Shared WorkLog
When designing business-critical systems in Rails, we often begin with clear and concrete concepts. A...

Dev.to · Augusts Bautra
10mo ago
RESTful CRUD Everything
"Cruddy by Design" by Adam Wathan https://www.youtube.com/watch?v=MF0jFKvS4SI "In Relentless Pursuit...

Dev.to · Augusts Bautra
1y ago
Simple way to deal with race conditions in Rails
Make first_or_create! safe by default

Dev.to · Augusts Bautra
1y ago
Querying Rails Active Storage Data
Find records based on attachment data

Dev.to · Augusts Bautra
1y ago
Ad-hoc fields in AR queries
Adding custom fields to Rails models

Dev.to · Augusts Bautra
1y ago
TIL .order_values
Inspec ordering applied to a collection

Dev.to · Augusts Bautra
1y ago
Buffer all the things
Save on overhead by grouping small operations

Dev.to · Augusts Bautra
1y ago
The 3 kinds of Enum in Rails
Enums are a very useful concept. It's like a locked list of choices where only a few specific values...

Dev.to · Augusts Bautra
1y ago
TIL: joining with LIKE
Get qualifying records in a fuzzy way.

Dev.to · Augusts Bautra
1y ago
TIL `bundle outdated`
Use bundle outdated to get a list of outdated gems in your Gemfile. There will be some noise from...

Dev.to · Augusts Bautra
1y ago
Use `gem "oj"` for free JSON performance
You're probably generating JSON strings, or parsing them in your Rails app. Using gem "oj" can speed...

Dev.to · Augusts Bautra
1y ago
Adopt .strict_loading gradually
Everyone knows that in Rails projects N+1 queries are a common performance problem. This stems from...

Dev.to · Augusts Bautra
1y ago
Bug in `use_transactional_fixtures`
Working around a nasty surprise with transactional specs

Dev.to · Augusts Bautra
1y ago
Index tables from production console
Sometimes you may need to add an index or two in production outside of normal deployment. This is a...
DeepCamp AI