Commit e8045696 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Update coding_principles.md

parent 99ef4350
......@@ -111,4 +111,15 @@ Use exceptions for all error handling.
## 28. dynamic casts
Use dynamic casts for type casting of derived datatypes
as much as possible.
\ No newline at end of file
as much as possible.
## 29. DRY - Don't Repeat Yourself
Every piece of knowledge must have a single, unambiguous, authoritative
representation within a system.
The alternative is to have the same thing expressed in two or more places. If you change one, you
have to remember to change the others, or, like the alien computers, your program will be brought
to its knees by a contradiction. It isn't a question of whether you'll remember: it's a question of when
you'll forget.
(The Progmatic Programmer: Tip 11)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment