DRY — Don’t repeat yourself

The DRY principle is an integral part of clean code, but what does it actually mean and what is it really good for?

Should you really care about it?

What does it actually mean?

Don’t write code that does the same thing twice.

It doesn’t mean that you must only ever write one loop within all of your code. But you shouldn’t…

--

--

--

Software Engineer - Content Creator

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The React Native Adventure

Effortless render optimization

Creating a React Toolchain from Scratch. Part2.

Summary of VueJS by Sarah Drasner (Part 6 of 7: Filters, Mixins, & Custom Directives)

How to build an Interstellar VR CommLink with Google Daydream and WebAudio

#LRN2CODE: getting started with React.js & Express.js

Send Email From Frontend With Javascript

Demo image.

Add k: account to chainweaver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oliver Jumpertz

Oliver Jumpertz

Software Engineer - Content Creator

More from Medium

Object.freeze() VS Object.seal() in Plain English

Junior developers mistakes (Part 1)

How Do Frontend Developers Learn Functional Programming?

Using Chart.js to Visualize Your Data