From 55003d85c542d81db5944e0d678f3c0d6df3a14e Mon Sep 17 00:00:00 2001 From: derpoliuk Date: Fri, 24 Apr 2015 14:07:10 +0300 Subject: [PATCH] Adds link to Jon Reid article about Code Smell from Constants part of README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 076655c..3dd2315 100644 --- a/README.md +++ b/README.md @@ -401,6 +401,8 @@ Magic values should be avoided. If you do need to define a constant, it should b Avoid `#define`s. Unless you're writing an actual macro. Then, by all means, go ahead. +@jonreid has good article about [why `#define` is a 'code smell'](http://qualitycoding.org/preprocessor/). + You may use Hungarian notation for implementation-level constants. **For example:**