WET and DRY code
the first thing I learned from Dev Bootcamp was to always try your best to implement DRY code...
Don't Repeat Yourself
as opposed to WET code...
We Enjoy Typing
The reason that repeating yourself in code is dangerous, is that it is much easier to make an error if you keep repeating yourself. It is also harder for others to read when they come into the code. The best way in my experience to solve this problem is to define the repeated code into a method, and call that method when necessary.













