Menu

Close
  • Home
Subscribe
Menu

Giving Things A Name

A 4-post collection

Page 1 of 1

Magic Numbers in CSS

Magic numbers are numbers that appear in source code without any explanation of what they mean. This makes the code difficult to understand and maintain. In »

Matt Zeunert on CSS, Magic Numbers, Giving Things A Name 07 October 2015

When is two a magic number?

A magic number is a number that appears directly in source code, but should really be given a name and used as a variable. The aim »

Matt Zeunert on Giving Things A Name, Magic Numbers 29 September 2015

Refactoring if statements for readability

How can you make this if statement more readable? if (currentUser !== null) { displayUserName(); } The condition inside an if statement can often be moved out of the »

Matt Zeunert on Giving Things A Name 14 August 2015

Write more one-line functions

You can find a lot of questions on programming Q&A sites by people wondering whether it's worth splitting off a single line of code »

Matt Zeunert on Giving Things A Name 09 July 2015
Page 1 of 1
JavaScript Code Readability © 2019
Proudly published with Ghost