August 31, 2005

It's obvious when you think about it, but

Piracy is not an enemy until you are famous.
Until that point, obscurity is your enemy.
I think independent creators should spend all of their attention fighting obscurity until they are famous, and only then should start to worry about piracy.

Derek Silvers, via microISV


Share this entry: Email it! | bookmark it! | digg it! | reddit!

Posted by Len at August 31, 2005 09:01 AM | Comments (2) | Categories : Geek Speak
Comments

Hi,
There was a post here in this blog long time ago in which you discussed your preference of constant usage in conditional statements something like:

if(INVALID_HANDLE_VALUE != hFile)

is better than

if (hFile != INVALID_HANDLE_VALUE )

If you can, then please give me the link of that post.

Posted by: Maria Siddiqui at August 31, 2005 05:08 PM

Maria,

Hmm, I can't remember the post, and it's more likely

if (INVALID_HANDLE_VALUE == hFile)
as that protects you from the mistype of
if (INVALID_HANDLE_VALUE = hFile)
though most compilers now warn of this anyway.

Otherwise it may be this post on the conditional operator?

I've tried using the search facility to search for const, constant and conditional and nothing obvious comes up. Sorry.

Posted by: Len at August 31, 2005 06:40 PM
Post a comment









Remember personal info?




Enter this code in the box below to prove that you're not some kind of automated spam robot...