DEV Community

Augusts Bautra profile picture

Augusts Bautra

Senior Rails developer from Latvia. Avid gamer. Longevity enthusiast. #keto-dude

Education

College, Unfinished

Work

Software Engineer at UPB AS

2 Week Community Wellness Streak
Writing Debut
Seven Year Club
Six Year Club
1 Week Community Wellness Streak
Five Year Club
Four Year Club
Three Year Club
Two Year Club
One Year Club
TIL .order_values

TIL .order_values

Comments
1 min read

Want to connect with Augusts Bautra?

Create an account to connect with Augusts Bautra. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Stop the rot

Stop the rot

2
Comments
1 min read
Buffer all the things

Buffer all the things

Comments
2 min read
The 3 kinds of Enum in Rails

The 3 kinds of Enum in Rails

2
Comments 10
2 min read
TIL: joining with LIKE

TIL: joining with LIKE

2
Comments
1 min read
The tragedy of darth Devloper

The tragedy of darth Devloper

Comments
1 min read
TIL `bundle outdated`

TIL `bundle outdated`

Comments
1 min read
Use `gem "oj"` for free JSON performance

Use `gem "oj"` for free JSON performance

5
Comments
1 min read
Adopt .strict_loading gradually

Adopt .strict_loading gradually

Comments
1 min read
Bug in `use_transactional_fixtures`

Bug in `use_transactional_fixtures`

Comments
2 min read
See untested code in GitLab MRs

See untested code in GitLab MRs

2
Comments
1 min read
Index tables from production console

Index tables from production console

1
Comments
1 min read
Save CI time by skipping navbar rendering

Save CI time by skipping navbar rendering

Comments
1 min read
File uploads in request specs

File uploads in request specs

2
Comments
1 min read
TIL use `normalizes :field, apply_to_nil: true`

TIL use `normalizes :field, apply_to_nil: true`

2
Comments
1 min read
TIL custom order with .in_order_of

TIL custom order with .in_order_of

4
Comments
1 min read
TIL: an_array_starting_with matcher

TIL: an_array_starting_with matcher

2
Comments
1 min read
Work with :through associations made easy

Work with :through associations made easy

3
Comments
2 min read
The most painful reason NULLs are evil

The most painful reason NULLs are evil

3
Comments 1
1 min read
How I stopped RSpec from spiking to 2x runtime

How I stopped RSpec from spiking to 2x runtime

1
Comments
2 min read
Disable specific callback in spec

Disable specific callback in spec

2
Comments 1
1 min read
A small refactor story

A small refactor story

1
Comments
1 min read
Use stateless services

Use stateless services

2
Comments 2
2 min read
How to split out a specific case from a polymorphic association

How to split out a specific case from a polymorphic association

Comments
1 min read
Auth, Business rules and HTTP

Auth, Business rules and HTTP

1
Comments
1 min read
Simple HTTP status code-symbol map in Rails

Simple HTTP status code-symbol map in Rails

Comments
1 min read
Private class methods in Ruby (the right way)

Private class methods in Ruby (the right way)

Comments
1 min read
Idiomatic shorthand loops in Ruby

Idiomatic shorthand loops in Ruby

Comments
1 min read
How I use Rails' `concerning` macro

How I use Rails' `concerning` macro

1
Comments 2
1 min read
How to split user stories

How to split user stories

Comments
1 min read
The three types of methods in Ruby

The three types of methods in Ruby

3
Comments
3 min read
The three ways to query ranges in Rails

The three ways to query ranges in Rails

3
Comments
2 min read
POROs, in-memory Models and AR models, a continuum

POROs, in-memory Models and AR models, a continuum

2
Comments
2 min read
DRY up RSpec subject defining

DRY up RSpec subject defining

2
Comments
2 min read
Module Builder pattern in Ruby

Module Builder pattern in Ruby

Comments
3 min read
On testing

On testing

Comments
2 min read
Improving Rails boot time

Improving Rails boot time

Comments
1 min read
Tickets are for solutions, not problems

Tickets are for solutions, not problems

Comments
1 min read
How to test `send_data` in request specs

How to test `send_data` in request specs

Comments
1 min read
Rails Request specs with arbitrary JSON params

Rails Request specs with arbitrary JSON params

Comments
1 min read
An alternative to model states - state models

An alternative to model states - state models

Comments
3 min read
The case against shared examples

The case against shared examples

Comments
5 min read
Set up keyboard shortcuts that type out stuff on Mac

Set up keyboard shortcuts that type out stuff on Mac

3
Comments 2
1 min read
How do you deal with test record leaks?

How do you deal with test record leaks?

Comments
1 min read
Using the semi-secret `within` matcher in RSpec

Using the semi-secret `within` matcher in RSpec

Comments
1 min read
Editing is not a state

Editing is not a state

3
Comments
1 min read
Namespaced errors for Ruby

Namespaced errors for Ruby

1
Comments
2 min read
Always `prepend: true` for `before_destroy` callbacks

Always `prepend: true` for `before_destroy` callbacks

5
Comments
1 min read
Memoization in Ruby

Memoization in Ruby

8
Comments
2 min read
The advent of tooling for Big Rails

The advent of tooling for Big Rails

4
Comments
1 min read
Define a .root method for your gems

Define a .root method for your gems

5
Comments
1 min read
Resolving "rb_check_safe_obj will be removed in Ruby 3.0" warning

Resolving "rb_check_safe_obj will be removed in Ruby 3.0" warning

6
Comments 1
1 min read
The raise of minimum-churn style in Ruby

The raise of minimum-churn style in Ruby

2
Comments
3 min read
Simple trick to make FactoryBot work with STI

Simple trick to make FactoryBot work with STI

12
Comments 5
2 min read
Alternatives to classic association fails

Alternatives to classic association fails

2
Comments
3 min read
Simple testing of Rails cache with RSpec

Simple testing of Rails cache with RSpec

11
Comments 1
1 min read
Identify and clean up .present? calls on collections

Identify and clean up .present? calls on collections

11
Comments
1 min read
Cache large drop-downs in Rails

Cache large drop-downs in Rails

8
Comments
2 min read
Minimising spec fragility

Minimising spec fragility

10
Comments
4 min read
Less awful module names

Less awful module names

8
Comments 6
2 min read
loading...