Engineering & Leadership // Field Notes

Perspectives on Architecture, Leadership & Scalable Systems

Ruby on Rails deep-dives, engineering lessons, and field notes on mentorship and running a software consultancy, from the team behind Bear & Giraffe.

Pragmatic Engineering System Architecture Technical Leadership

Dispatches & Case Notes

38 posts
01 // Ruby on Rails

To ViewComponent or not to ViewComponent

GitHub's ViewComponent claims to be about 10x faster than Rails partials. Running its benchmarks shows regular components are roughly 5x faster, and adding memory benchmarks shows partials use at least 3x more memory. A real gain, worth weighing against a new directory structure and extra files.

6 min read
02 // Ruby on Rails

Rails: Join on polymorphic association

A scoped belongs_to makes it possible to join through a polymorphic association in ActiveRecord, but adding one broke unrelated tests with a confusing FactoryBot error. Because belongs_to is required by default since Rails 5, the scoped association needs optional: true.

3 min read
03 // Business

Look Good w. B&G

Why Bear & Giraffe holds developers, itself included, to a high standard: too many founders sink their savings into software that doesn't work, and poor work hurts the whole industry's reputation. The flip side is the promise B&G makes to clients: make them look good to their investors and stakeholders, without nickel-and-diming.

4 min read
04 // Ruby on Rails

Rails: I18n in mailer layout

Showing an email's subject as a heading in a shared Rails mailer layout sounds trivial, but lazy-lookup translations don't resolve the right scope inside layouts. Digging into ActionMailer's default_i18n_subject points to the fix: build the scope from the mailer name and action_name yourself.

3 min read
05 // Business

Fuck You Money

"Fuck You Money" is usually personal: enough savings to walk away from a bad job or relationship. A service business needs it too. With full-time employees depending on it, Bear & Giraffe has to build a reserve big enough to walk away from an abusive client without putting the team at risk.

5 min read
06 // Mentorship

B&G’s Mentorship Framework

"Small project consulting makes hiring juniors hard" is a common refrain; Bear & Giraffe's experience from 2015 to 2018 says otherwise. The full story of how B&G's mentorship program grew from an ad-hoc experiment into a framework, including the failures, the criteria for who it can support, and what it takes to mentor six junior developers and interns in a single summer.

23 min read
07 // Business

B&G Gets Top Marks as a Developer on Clutch!

Behind every great project, idea, or platform requires the proper development. Here at B&G that is what we do best, and it would seem some others would…

3 min read
08 // Engineering

Stop Pending Steps From Failing Your CI Build

Pending Cucumber steps are a handy to-do list in TDD, but by default they make Cucumber exit with code 1, so CircleCI marks the build as failed even when no tests fail. The --no-strict-pending flag keeps pending steps from failing the build while still catching undefined and flaky ones.

4 min read
09 // Community

#DRAAAMS!

A public dispute over funding and transparency inside Ruby Together, the nonprofit that funds Bundler and RubyGems, played out on Twitter. Why it matters to members like Bear & Giraffe, and a proposal: let neutral people who aren't funded by the organization mediate, and lead it if needed.

5 min read
ESC

Type to search 38 posts