Articles (Page 2)

Adding and Merging ActiveRecord Relations

The expressive possibilities of assembling ActiveRecord queries out of disparate parts make using Rails so fun.

Continue Reading

The Archival Benefits of Static Site Generators

If you value the content you publish and want your sites to remain accessible many decades from now, then it’s time to go static.

Continue Reading

Why Service Objects are an Anti-Pattern

Article after article has been published in recent years about the benefits of adding service objects to Rails applications. I’m here to tell you they’re wrong. There is a better way.

Continue Reading

Use Ruby Objects to Keep Your Rake Tasks Clean

In the spirit of DHH’s On Writing Software Well series, I’ll be demonstrating by looking at live production code.

Continue Reading

Swift for Javascript and Ruby Developers

Last week I had the privilege of presenting on the topic of learning Swift from the perspective of a developer currently familiar with Ruby or Javascript. I showed off some of the reasons why Swift is a pretty exciting language for those used to working with lightweight scripting languages, and I also demonstrated some example code that highlights similar functionality implementations across all three languages.

Continue Reading

Just Say No to GDD: Guilt-Driven Development

Ruby on Rails. Finally a language and a methodology of writing apps that felt simple, clean, fast, and maintainable. But then a few years went by. New updates to Rails. New gems. New client-side Javascript frameworks. New server deployment best practices. New things to learn Every. Darn. Minute. Suddenly, writing Rails apps didn’t feel so much fun anymore. It felt difficult. And I felt guilty.

Continue Reading

The Best Code is the Code Nobody Writes

Don’t waste time and effort building stuff that’s easy to break and hard to remove. Go the extra mile and get it done right.

Continue Reading