Blog

Programming

30 posts tagged programming — the same founder-tested patterns, filtered.

Myth or Reality: Can Test-Driven Development in Agile Replace QA?

Myth or Reality: Can Test-Driven Development in Agile Replace QA?

Test-driven development (TDD) is a cornerstone of agile methodology.
How To Name Variables And Methods In Ruby

How To Name Variables And Methods In Ruby

What’s in a name? By any other name would smell as sweet. Junior developers often struggle to choose good names for variables and methods they write.
Cleaning Up Your Rails Views With View Objects

Cleaning Up Your Rails Views With View Objects

The main reason not to put the complex logic into your views is, of course, testing.
Ruby on Rails Views Resources for Frontend Developer

Ruby on Rails Views Resources for Frontend Developer

Resources for front-end developers landing in a Rails codebase: ViewComponent, Phlex and the other view-layer options worth knowing about.
How a large transaction can be a source of DB deadlocks and how this can be fixed.

How a large transaction can be a source of DB deadlocks and how this can be fixed.

Recently in a project, we encountered the fact that sometimes we had a DB Deadlocks error.
Custom templates for Rails scaffolding

Custom templates for Rails scaffolding

Rails has a very handy tool for rapid development called scaffolding. Often programmers ignore it, because some things have to be written by hand anyway.
Auto-install system dependencies for Ruby on Rails

Auto-install system dependencies for Ruby on Rails

Let's integrate Homebrew into our Ruby on Rails Project local set up.
How To Setup Default Values For Attributes In Ruby On Rails

How To Setup Default Values For Attributes In Ruby On Rails

Since attributes are uninitialized when a new model is created without any parameters, default values will be set according to the attribute type.
Pitfalls of using metaprogramming in Ruby on Rails application

Pitfalls of using metaprogramming in Ruby on Rails application

Do you know that metaprogramming is easy to add but hard to support?
Why and how to use TDD. Main tips

Why and how to use TDD. Main tips

Master Test-Driven Development for better code architecture. Learn TDD workflow, avoid common mistakes, and build maintainable software. Developer guide with examples ✓

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way