Space Ninja
  • Home
  • Portfolio
  • Speaking
  • Newsletter
  • Book
  • Podcast
Sign in Subscribe

refactoring

A collection of 1 post
Code Verbosity
css

Code Verbosity

Recently I was refactoring some CSS, and I found something like this code snippet: body { font-family: sans-serif; font-size: 14px; line-height: 1.4; } h1 { font-family: serif; font-size: 36px; font-weight: bold; } Ugh, I thought, why so many lines? Let's use the shorthand syntax! So I refactored many instances of this code through
Dec 16, 2015 3 min read
Page 1 of 1
Space Ninja © 2023
  • Twitter
  • Mastodon
  • GitHub
  • CodePen
Powered by Ghost