Why is Ruby on Rails' default_scope bad?

Piechowski.io Development Blog
(Last Updated: 2020-01-13)

A pretty popular opinion in the Ruby on Rails community is that default_scopes should not be used for any reason. However, often it's not fully explained why default_scopes are harmful to applications. Default Scopes are harmful because they are unexpected and hard to unscope.

How to Protect Strained, Sore Developer Eyes

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

With proper exercise, rest, nutrition, and supplements... Reduce eye strain and get those sore eyes fresh and ready to hack some code!

Solved: ActionController::ParameterMissing (param is missing or the value is empty)

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

When using Ruby on Rails' strong_params with require, there is a chance the key doesn't exist. When this happens, an ActionController::ParameterMissing exception is thrown.

Solved: Warning: Using the last argument as keyword parameters is deprecated

Piechowski.io Development Blog
(Last Updated: 2020-01-13)

Ruby 2.7 deprecated the use of hashes in the last argument of a method call. Fix this warning by removing the curly braces or adding a hash splat (**) to a variable argument.

How to Reduce Developer Back Pain and Tightness

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

Working as a developer can be pretty painful. Sitting for long periods of time hurts our bodies. With proper exercise and the correct supplements, developers can feel better.

Vim: How to Open Current Opened File in New Tab

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

In vim, you can open the current file in a new tab by utilizing :tabnew %.

Rails: How to Use Greater Than/Less Than in Active Record where Statements

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

When querying ActiveRecord for greater than and less than, most people turn to including raw SQL in their codebase... But raw SQL isn't required!

What is the best time for stand-up meetings?

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

While it is common to hold daily stand-up scrum meetings in the morning, this might not be the best fit for your team. Sometimes it can be better for teams to hold their stand-up meetings later in the day.

Using Let and Context to Modularize RSpec Tests

Piechowski.io Development Blog
(Last Updated: 2020-01-06)

When test suites contain a lot of duplication, coupling occurs at an individual spec basis. By utilizing core RSpec functionality, developers can clean up specs in order to reduce duplication and add clarity to the focal point of the spec.

What is Fed vs Unfed Sourdough Starter?

(Last Updated: 2019-12-25)

Recipes call for either fed sourdough starter or unfed sourdough starter, but what's the difference?