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
  • 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 strategy, design, product management, and development partner.

    • All Topics
    • Design
    • Web
    • iOS
    • Android
    • More topics
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. Introducing Hound

    Introducing Hound, a hosted service that keeps your codebase clean by commenting on style guide violations or other linting issues in your GitHub pull requests.

    Scott Albertson
    April 9, 2014
    • News
    • Web
    • Hound
    • Ruby
    • Good Code
    • Open Source
  9. Removing Sass Duplication Using Sass Maps

    How Sass maps empower you to write less code.

    Kyle Fiedler
    April 4, 2014
    • Sass
    • Good Code
    • Design
  10. Clearer Conditionals using De Morgan's Laws

    Ever seen a hard-to-parse conditional like this? def allow_access_to_site? ...

    Gabe Berke-Williams
    December 20, 2013
    • Web
    • Good Code
  11. Sign up to receive a weekly recap from thoughtbot

« 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
  • GitHub
  • Instagram
  • YouTube
  • Twitch
© 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