DRY — Don’t Repeat Yourself
ACM.136 Posts by Teri Radichel on applying the DRY Principle to Cybersecurity
Part of my series on Automating Cybersecurity Metrics. Cloud Architecture. Application Security. The Code.
Free Content on Jobs in Cybersecurity | Sign up for the Email List

In yesterday’s post, I wrote about the how the term abstraction can be applied to cybersecurity. We are going to modify some policies in upcoming posts to try to prevent privilege escalation via IAM policies.
Closely related to that is the DRY principle — do not repeat yourself.
You want to avoid writing the same code in multiple places. Instead, create an abstraction and move the code that is repetitive to the abstracted layer. Then extend the abstraction so you don’t repeat the same code over and over.
Please note that although the DRY principle is good for cybersecurity and preventing bugs, it is not applicable to all fields and objectives. I studied marketing in college a long, long, time ago. I learned in an advertising class that a person must see an ad at least seven times before they remember it.
The same is applicable to learning and trying to explain a concept. That’s why my parents, who were school teachers, used a method of giving their students a timed test repeatedly to see if they knew their math facts. By the time any student got out of their class, they had no problem instantly providing the answer to any single digit multiplication problem.
I’ve written about the DRY (Don’t repeat yourself) concept a number of times in different ways so I’ll refer you to the following posts for more information. These posts explain how and why you should apply this principle of not repeating yourself in cybersecurity policies and application programming code.
I don’t know who first came up with the DRY principle but I read about it in a software architecture book a long time ago. Unfortunately, I do not remember which one, but perhaps it was one of the books referenced at the bottom of this post in Wikipedia.
Follow for updates.
Teri Radichel | © 2nd Sight Lab 2023
About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight LabNeed Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for PresentationFollow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab





