26 articles

📰 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
TIL: Inspect Rails app routes from info panel
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...
TIL: define custom flash types in Rails
Dev.to · Augusts Bautra 5mo ago
TIL: define custom flash types in Rails
Add :warning flash type for Rails
TIL: DB constraints for column values in Rails
Dev.to · Augusts Bautra 5mo ago
TIL: DB constraints for column values in Rails
#add_check_constraint for data integrity
TIL Deferred Unique Constraint VS Unique Index
Dev.to · Augusts Bautra 8mo ago
TIL Deferred Unique Constraint VS Unique Index
Sole the musical chair problem with a deferred constraint
Custom `RoutingError` handling in Rails
Dev.to · Augusts Bautra 8mo ago
Custom `RoutingError` handling in Rails
Custom handling of `ActionController::RoutingError` in Rails
What happens when OOP meets Real World™
Dev.to · Augusts Bautra 9mo ago
What happens when OOP meets Real World™
Thoughts on OOP software design
Recognizing Actor Boundaries Through Domain-Driven Design: Lessons from a Shared WorkLog
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...
RESTful CRUD Everything
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...
Simple way to deal with race conditions in Rails
Dev.to · Augusts Bautra 1y ago
Simple way to deal with race conditions in Rails
Make first_or_create! safe by default
Querying Rails Active Storage Data
Dev.to · Augusts Bautra 1y ago
Querying Rails Active Storage Data
Find records based on attachment data
Ad-hoc fields in AR queries
Dev.to · Augusts Bautra 1y ago
Ad-hoc fields in AR queries
Adding custom fields to Rails models
TIL .order_values
Dev.to · Augusts Bautra 1y ago
TIL .order_values
Inspec ordering applied to a collection
Buffer all the things
Dev.to · Augusts Bautra 1y ago
Buffer all the things
Save on overhead by grouping small operations
The 3 kinds of Enum in Rails
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...
TIL: joining with LIKE
Dev.to · Augusts Bautra 1y ago
TIL: joining with LIKE
Get qualifying records in a fuzzy way.
TIL `bundle outdated`
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...
Use `gem "oj"` for free JSON performance
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...
Adopt .strict_loading gradually
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...
Bug in `use_transactional_fixtures`
Dev.to · Augusts Bautra 1y ago
Bug in `use_transactional_fixtures`
Working around a nasty surprise with transactional specs
Index tables from production console
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...