Skip to main content
thoughtbot thoughtbot
  • Live on Twitch!

    thoughtbot is livestreaming

    Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

  • Case Studies
  • Blog
  • Let’s Talk
Live on Twitch!

thoughtbot is livestreaming

Work alongside the thoughtbot team as we collaborate with each other and our clients, live. Ask us anything, we're live right now!

Let’s get started!
View all Services
Development
  • Ruby on Rails
  • Hotwire
  • AI and Machine Learning
  • Maintenance
  • Mobile
Design
  • Discovery Sprints
  • UX, UI, and Product Design
  • Design Systems
Product
  • MVP
  • Product Management
  • Accessibility
Team and Processes
  • Team Augmentation
  • Fractional Leadership
View all Services
View all Resources
Development
  • Tech Leadership Resources
  • Open Source
  • Books
  • The Bike Shed Podcast
  • Live Streaming on YouTube
  • Conference Talks
The business of great software
  • Playbook
  • Purpose Built
  • Giant Robots Smashing Into Other Giant Robots Podcast
  • Design Sprint Guide
  • Live Streaming on LinkedIn
View all Resources

Good Code Articles

Written by thoughtbot, your expert partner for design and development.

    • All Topics
    • Design
    • Development
    • Product
    • More topics
  1. Keeping the Front-End Modular with BEM

    Using BEM when naming your classes makes being object-oriented easy and fits right in with MVC projects.

    Connie Chan
    February 24, 2015
    • CSS
    • BEM
    • Sass
    • Good Code
    • Design
  2. Lazy Refactoring

    Look over our shoulder as we refactor and optimize a set of queries.

    Joël Quenneville and Matt Sumner
    November 7, 2014
    • Web
    • Ruby
    • Good Code
  3. Collaboration is Other People

    You’ve heard a colleague say “You’re all smart coders. You can figure out how my code works!” as an excuse to let less-than-clear code slip in. This is bunk, and here’s why.

    Jon Yurek
    November 4, 2014
    • Style
    • Good Code
    • Hound
  4. Back to Basics: Anonymous Functions and Closures

    Anonymous functions and closures are a useful concepts included in most...

    Britt Ballard
    October 10, 2014
    • Web
    • Back To Basics
    • Good Code
    • Ruby
    • JavaScript
  5. How to Stop Voodoo Programming

    Voodoo programming is when we write code that we don’t really understand. We know we shouldn’t do it. But how do we stop?

    Rich Rines
    October 7, 2014
    • Good Code
  6. Prefer Objects as Method Parameters, Not Class Names

    In an application we worked on, we presented users with multiple choice...

    Joe Ferris
    September 26, 2014
    • Web
    • Ruby
    • Good Code
  7. Back to Basics: SOLID

    SOLID is an acronym created by Bob Martin and Michael Feathers that refers to...

    Britt Ballard
    September 3, 2014
    • Web
    • iOS
    • Back To Basics
    • Good Code
    • Ruby
    • Swift
  8. Meditations on a Class Method

    I keep a file of code I like. When looking for inspiration, I read through...

    Mike Burns
    July 31, 2014
    • Web
    • Good Code
    • Ruby
  9. Let Your Code Speak For Itself

    Comments are like playing telephone. Avoid them with clearer method names.

    Adarsh Pandit
    July 16, 2014
    • Web
    • Good Code
  10. Refactoring with an Apprentice

    Walk through a refactoring of Ruby on Rails test code and observe lessons in Rails idioms, setting up only necessary test data, and extracting methods.

    Eric Allen
    May 19, 2014
    • Web
    • Good Code
    • Testing
    • Apprenticeship
  11. Sign up to receive a weekly recap from thoughtbot

    Looking for even more ways to stay connected?
    RSS feed icon Check out our feeds
« First ‹ Prev 1 2 3 4 5 6 7 8 9 10 Next › Last »

Footer

thoughtbot
  • Services
  • Case Studies
  • Resources
  • Let's Talk
  • Our Company
  • Careers
  • Purpose
  • Blog
  • Sponsor
  • Mastodon
  • Bluesky
  • GitHub
  • YouTube
  • Twitch
  • Feeds
© 2025 thoughtbot, inc.

The design of a robot and thoughtbot are registered trademarks of thoughtbot, inc.

  • US: +1 (877) 9-ROBOTS
  • UK: +44 (0)20 3807 0560
  • Beware of fraudulent thoughtbot job listings Learn more
  • Code of Conduct
  • Accessibility Statement
  • Privacy Policy