| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 7 months |
| seen | Mar 22 at 22:50 | |
| stats | profile views | 0 |
|
Dec 3 |
comment |
Is this a correct situation to use a constant? Carson63000 - I was referring to your use of IsNullOrEmpty. You're swapping one "magic value" for another. @Ramhound - Null is an acceptable literal in some cases, no question, but I do not believe this is a good example (using null or blank as a magic value). |
|
Dec 2 |
awarded | Critic |
|
Dec 2 |
comment |
Is this a correct situation to use a constant? In your example, null is simply another literal. The heart of this lesson is that literals are to be avoided. |
|
Oct 27 |
awarded | Yearling |
|
Feb 28 |
awarded | Nice Answer |
|
Feb 27 |
awarded | Teacher |
|
Oct 27 |
awarded | Supporter |
|
Mar 9 |
answered | Do you think natively compiled languages have reached their EOL? |