Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeping It DRY #4

Open
mml1 opened this issue Feb 11, 2018 · 0 comments
Open

Keeping It DRY #4

mml1 opened this issue Feb 11, 2018 · 0 comments

Comments

@mml1
Copy link

mml1 commented Feb 11, 2018

(Simplify) I would like to introduce you to the DRY Principle in programming, which is Do Not Repeat yourself. It is a commonly used best practice method. You repeat:

font-family: Helvetica;
You do not have to write this line multiple times but instead do something like:

h1, 
h2, 
h3, 
p {
  font-family: "Helvetica", sans-serif;
}

https://github.com/BraydenPB/prj-rev-bwfs-dasmoto/blob/master/Dasmoto's%20Arts%20%26%20Crafts/Resources/style.css#L2
https://github.com/BraydenPB/prj-rev-bwfs-dasmoto/blob/master/Dasmoto's%20Arts%20%26%20Crafts/Resources/style.css#L10
https://github.com/BraydenPB/prj-rev-bwfs-dasmoto/blob/master/Dasmoto's%20Arts%20%26%20Crafts/Resources/style.css#L25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant