|
Today Mike Hankey[^] is older than he was yesterday.
Happy birthday Mike! Have a , have two.
|
|
|
|
|
Only by one day... but it's a whole year since anyone cared!!
|
|
|
|
|
More and more!
Veni, vidi, vici.
|
|
|
|
|
Happy Birthday Mike..
Hope he's enjoying his week-long fishing and other activities in the 'I-can't-remember-name' River..
Don't mind those people who say you're not HOT. At least you know you're COOL.
I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64
|
|
|
|
|
Wish you a Very Happy Birthday Mike!!!Have a Blast!!!
|
|
|
|
|
for Mike!
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.
The console is a black place [taken from Q&A]
How to ask a question
|
|
|
|
|
Happy birthday Mike!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Congratulations, and deepest sympathies, on your birthday, Mike !
“I speak in a poem of the ancient food of heroes: humiliation, unhappiness, discord. Those things are given to us to transform, so that we may make from the miserable circumstances of our lives things that are eternal, or aspire to be so.” Jorge Luis Borges
|
|
|
|
|
So, when do we get a GT smiley?
|
|
|
|
|
Happy Birthday Mike
With friendly greetings,
Eric Goedhart
|
|
|
|
|
HAPPY BIRTHDAY MIKE!
Software Zen: delete this;
|
|
|
|
|
Thanks y'all for birthday wishes, 65 today and going fishing.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
Rich Tennant 5th Wave
|
|
|
|
|
Give a man a fish and he'll eat for a day.
Teach a man to fish and he's gone all weekend!
|
|
|
|
|
Give a woman a fish, and you'll sleep on the couch again.
|
|
|
|
|
Happy One-More-Year-Closer-To-Retirement!
|
|
|
|
|
|
Happy birthday, youngster!
/ravi
|
|
|
|
|
Thanks Ravi it's been eventful.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
Rich Tennant 5th Wave
|
|
|
|
|
Happy Birthday Mike
The report of my death was an exaggeration - Mark Twain
Simply Elegant Designs JimmyRopes Designs
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
Dear all,I had written a webserver use HttpListener, when i respon data to client, some time it show error: System.Net.HttpListenerException (0x80004005): The specified network name is no longer available
at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)
Can anyone give me a help or suggestion?
Thanks very much.
|
|
|
|
|
senlin110 wrote: Can anyone give me a help or suggestion?
I suggest you use the link above and post your question in the Quick Answers section.
|
|
|
|
|
senlin110 wrote: Can anyone give me a help or suggestion?
Yes: learn to read.
"Technical discussions are welcome, but if you need specific help please use the programming forums."
Try here: http://www.codeproject.com/Questions/ask.aspx[^]
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
you should post in Question / Answer.
Life is all about share and care...
public class Life : ICareable,IShareable
{
// implements yours...
}
|
|
|
|
|
senlin110 wrote: Can anyone give me a help or suggestion?
SELECT is still not broken.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I read the article from the Insider[^] about properties and methods and the author states
Issue 1.
Quote: Properties should be stable: that is, the value of a property shouldn't change “on its own". Rather, changes in properties are the results of calling property setters, or some other action changing the state of the object
So the mass of a car can be a property since it doesn't change, but the total mass, including fuel, can't be since fuel is burned and so changes.
A specific example is DateIime.Now which should not be a property because it changes and really ought to have been a method GetCurrentDateIime .
I'm assuming the author means we should have a IimeZone object with a Now property, with Now being updated explicitly through some process such as TimeZone.Now = DateTime.GetCurrentDateIime() . Which seems a great way to spend your spare CPU cycles.
Can someone smarter than me please explain why properties should only be things that can't change? To stretch the car analogy if you have an Engine and Radiator object with the Radiator having a property Temperature then I can accept the argument that the water doesn't get hotter on its own. You'd have something like
class Engine
{
void RunEngine()
{
...
water.Temperature += Degrees(10);
...
}
}
But what of the Car object that aggregates an Engine and a Radiator object? The car's EngineIemperature property (which is a façade for the Engine.Temperature property) is going to change "on its own" sorta kinda. It'll change due to changes passed on by internal objects.
Issue 2.
The author states
Quote: Property getters should always succeed: they should never throw an exception. Return some reasonable default value if the property cannot be logically computed right now because the object is in a bad state.
Doesn't this fly in the face of the "use exceptions not error codes" argument. I understand we're not talking about returning an error code - we're talking about completely hiding the fact that there was an error and simply returning a value that is "reasonable". In fact aren't we simply bypassing the entire exception-vs-errorcode debate and simply ignore it?
Sure - you can return null values for properties that don't currently exist on an object, but what if a property is expansive to retrieve and a timeout / resource error / whatever happens while querying the property. Surely something should be mentioned to the caller that may the value they have is a little dodgy and maybe they should try again later?
All in all this seems like a discussion on theoretical guidelines that ignore important realities.
What are your thoughts? Where am I going wrong in my thinking here?
cheers
Chris Maunder
|
|
|
|