- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Matt -- I am quoting you, but this comment is really directed to the guys who don't seem to "get it".
In other words, you have stipulated that:
(1) Multiple women are attracted to that guy (2) That guy could inflict serious violence on someone who threatens the spoiled miserable brats she might spawn to replace herself, and (3) You are boring.
The advice to "be yourself and talk to her" is good, but don't count your stability and handiness as assets. Those things need to be her idea, as part of your reformation. You'll need to give up your life of mystery and danger -- no more getting drunk and brawling every weekend for instance. Once you've given those things up for her, then she can insist you become straight-up and good at fixing things.
Admin
So, string blabla="" and string blabla=null are the same in your opinion? Wow...
Admin
http://www.lmgtfy.com/?q=dijstra+software+crisis
Captcha: nobis: ora pro nobis !
Admin
I believe databases exist that allow you to mark a text field as allowing null but non-null values must not be empty, thus giving rise to the scrubbing requirement, as form fields tend to perform the reverse replacement.
Admin
No, String LITERALS, present in raw source code, are interned. (Doing it for all strings would be utterly ridiculous.)
Since it is implied that this code is dealing with data coming in from the disk or network, they probably aren't interned.
Making a copy isn't useful, since in the best case you've wasted a bit of runtime and in the worst-case you've wasted runtime and memory.
Admin
Try setting name to " ". I bet the result isn't what is expected. Use String.IsNullOrWhiteSpace() or Trim() in the test.