Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ashok Kumar, Bharath
so2021
Commits
e8045696
Commit
e8045696
authored
Oct 14, 2019
by
Praetorius, Simon
Browse files
Update coding_principles.md
parent
99ef4350
Changes
1
Hide whitespace changes
Inline
Side-by-side
lecture/coding_principles.md
View file @
e8045696
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment