Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

CTRL+CLICK CAST: Code Refactoring with Jina Bolton

The nature of the web is constant change, and your code base should be no different. But updating your code shouldn’t be a one-time endeavor, and it shouldn’t be an all-or-nothing proposition. Instead, you should refactor iteratively as you need, whether it is to fix a bug or update a CSS vendor prefix.

For the latest CTRL+CLICK, Jina Bolton joins the show to discuss this process of refactoring, which involves iterative, narrow updates to the code base, without changing features or functionality. She shares her approach to refactoring by starting with the smallest element and keeping focused on a single change. She also suggests what areas can be commonly refactored, such as introducing a CSS preprocessor and establishing variables for CSS colors and typography. Jina also details her refactoring workflows, including using version control, documentation and supporting a “living” style guide.

We also comment on the paid support discussion going on in the Devot-ee forums. Tune in now!

Thanks to Hover for sponsoring this episode!

Posted on May 15, 2014 by CTRL+CLICK CAST

Filed Under: CTRL+CLICK CAST