Arrange a Masterclass

Tag: Code Quality

« All tags

Practical ways to keep a codebase clear, maintainable, and safe to change.


2017


  1. Airplanes and Ashtrays

  2. Refactoring Tunnels

  3. Writing Tidy Code

  4. Code Smells in CSS Revisited

2016


  1. CSS Shorthand Syntax Considered an Anti-Pattern

  2. Nesting Your BEM?

  3. Refactoring CSS: The Three I’s

  4. The Importance of !important: Forcing Immutability in CSS

2015


  1. BEMIT: Taking the BEM Naming Convention a Step Further

  2. Contextual Styling: UI Components, Nesting, and Implementation Detail

  3. Cyclomatic Complexity: Logic in CSS

  4. Immutable CSS

  5. Can CSS Be Too Modular?

  6. More Transparent UI Code with Namespaces

2014


  1. When to use @extend; when to use a mixin

  2. Hacks for dealing with specificity

  3. Naming UI components in OOCSS

  4. Extending silent classes in Sass

2013


  1. The problems with ‘crafting’ code

  2. Code reviews as a service

  3. Writing DRYer vanilla CSS

  4. ‘Scope’ in CSS

  5. shame.css – full .net interview

  6. shame.css

  7. You know your context – on critical thinking and thinking for yourself

  8. MindBEMding – getting your head ’round BEM syntax

2012


  1. Code smells in CSS

  2. Tags in CSS files

  3. Shoot to kill; CSS selector intent

  4. Quasi-qualified CSS selectors

  5. The open/closed principle applied to CSS

  6. Single-direction margin declarations

  7. Keep your CSS selectors short

  8. The single responsibility principle applied to CSS

  9. Hacker News rebuttal

2011


  1. On HTML and CSS best practices

  2. Build-along #1, reflection and reasoning

  3. The ‘island’ object

  4. The ‘nav’ abstraction

  5. Writing efficient CSS selectors

  6. Good developers are illusionists

2010


  1. CSS: CamelCase Seriously Sucks!

  2. Designing in the browser leads to better quality builds

  3. Set then unset (or reset...?)

  4. Building sites without using IDs or classes

Book a Free Call


Hi there, I’m Harry Roberts. I am an award-winning Consultant Web Performance Engineer, designer, developer, writer, and speaker from the UK. I write, Tweet, speak, and share code about measuring and improving site-speed. You should hire me.


Connect


Projects

Next Appearance

Learn:

I help teams achieve class-leading web performance, providing consultancy, guidance, and hands-on expertise.

I specialise in tackling complex, large-scale projects where speed, scalability, and reliability are critical to success.