@Soviut said:
Just as a general aside, it sure would be nice if people took 2 minutes to explain why their snippet is a WTF. Not everyone programs in the language you use.
Sorry, I assumed the WTF would be able to transcend language barriers. I think the other comments have cleared most of it up for me though :)
@Anonymouse said:
I assume that it is a property (and given the kind of mentality displayed in the code given by the OP, I wouldn't be surprised if it is one that is heavily stacked with side effects in its setter - like parsing an XML config file, creating a database connection, calculating the flight path of the next mars probe etc.)
Believe it or not it is just a regular, completely public (getter and setter) property that is never used for anything to do with logging. The setters of most properties on the config class do however re-generate the entire XML config file.
@jverd said:
@Weps said:Using a sleep in a thread.... some people just don't get it.
Where else would you use one?
I normally try to use it in bed. Last night it did throw a CantSleepException with an inner exception of WTFOverflowException though (trust me, there is more than just the OP), can anyone help me debug this one?.