Skip to content
  • Facebook
  • LinkedIn
  • Twitter
  • Instagram
Reliable JavaScript Book

Reliable JavaScript

How to code safely in the world's most dangerous language

  • About
  • Contact

Tag: DRY Principle

How Missing Abstractions Cause Defects

September 17, 2018 Larry Spencer

It’s pretty obvious how WET code (We Enjoy Typing or Write Everything Twice) breeds defects: developers modify one instance of the duplicated code block and

Continue reading

Negligible performance penalty for calling a function vs. accessing a property.

October 3, 2017 Larry Spencer

In the last post, I offered this little object as a way of encapsulating a get() / set() pair and their backing variable. function Variable(initialValue)

Continue reading

A property with a backing variable is not DRY.

September 23, 2017 Larry Spencer

Believe it or not, I’m still not done with DRY Principle (Don’t Repeat Yourself). This short post is about a non-DRY practice that is so

Continue reading

The Builder Pattern keeps your code DRY.

September 17, 2017 Larry Spencer

Last time, I went on a little rant against object literals, laying out a case that they are enemies of the DRY (Don’t Repeat Yourself)

Continue reading

Object literals are enemies of the DRY Principle.

September 10, 2017 Larry Spencer

In the last post, I explored three ways that the DRY Principle (Don’t Repeat Yourself) means more than just “don’t repeat blocks of code.” In

Continue reading

The DRY Principle is more than avoiding duplicate code.

September 3, 2017 Larry Spencer

The craft of software engineering has changed a great deal in the last couple of decades, but Hunt & Thomas’s advice from 1999 is timeless:

Continue reading

Search

Powered by WordPress.com.