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

Use stateless services

Use stateless services

2
Comments 2
2 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 abusing before_action

Stop abusing before_action

3
Comments 2
1 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 1
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

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

The three ways to query ranges in Rails

2
Comments
2 min read
Must-have gems for mature Rails

Must-have gems for mature Rails

4
Comments
1 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
The alternative to shared examples

The alternative to shared examples

2
Comments
9 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

7
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

5
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

11
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

9
Comments 1
1 min read
Profile arbitrary code in prod console

Profile arbitrary code in prod console

5
Comments
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
A developer's instincts

A developer's instincts

5
Comments
2 min read
Five years with Rails, a re-evaluation

Five years with Rails, a re-evaluation

30
Comments 1
3 min read
A multi-layer approach to test runs

A multi-layer approach to test runs

20
Comments 1
5 min read
loading...