|
I think it is called Singleton per session AFAIK.
|
|
|
|
|
Anurag Gandhi wrote: this kind of articles should be removed from codeproject as it misleads young developers I completely agree, and you will pleased to hear that it has now been deleted!
Don't forget that you can report articles as being "Inaccurate or Misleading"
|
|
|
|
|
This comment (not mine, I hasten to add) on a question about serial ports:
Convert.ToFloat("12.51");
You're not going to like this, but converting from one simple type to another simple type should not be an issue.
I suggest you buy a book and go through a lot of tutorials before attempting anything more complex.
Elicited a down vote, and this reply from the OP:
Hi,
Sir what Book mean ?
Regards
This is getting frightening...he doesn't even know what a book is?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote:
Hi,
Sir what Book mean ?
Regards
This is getting frightening...he doesn't even know what a book is?
Yah... old technology requires old research methods...
Kids these days. I have a serial comm book at home I don't throw old books away. New books on the other hand... quite useless imo... I'll just use the web for that.
|
|
|
|
|
The OP may wish to look up a rather obscure short story by Asimov, The Holmes-Ginsbook Device.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
He can't - it's in a book!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: He can't - it's in a book!
My bad...
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
What we got here is failure to communicate!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I think he simply asks WHAT book to read...its just bad English.
But the fact that he doesn't know how to convert types...now, that is...wow. What is he (or maybe she) doing programming, he should be banned from computers!
|
|
|
|
|
|
Should have been a dropdown, with the values "on", "off" and "bacon".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You forgot "whatever"
|
|
|
|
|
I wonder why didn't he use a checkbox and stylized it in a RadioButton way.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Probably a requirement, because "it looks better" that way
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Or maybe he was a PHP developer!?
Always looking for the hard way...
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
A PHP developer?
What fabulous creature will you drag here next? Unicorns? The Yeti? Nessie?
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I had Narnians on my mind.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I have been using the VMWare VIM API for a while now. The main class I have used is VMware.Vim.VimClient . Now I'm trying to use a newer version of the API. Guess what they did?
They renamed VMware.Vim.VimClient to VMware.Vim.VimClientImpl and made a freakin' Interface named VMware.Vim.VimClient !!!!!
I'd call that mofo breaking change. How am I supposed to write code that can use either version of the API without resorting to Reflection?
Tequila, take me away...
modified 22-Apr-15 23:27pm.
|
|
|
|
|
but isn't VMware.Vim.VimClientImpl a VMware.Vim.VimClient ?
So you can use the later and it will work for both?!
|
|
|
|
|
Yes, but how do I know which to instantiate?
|
|
|
|
|
Use the factory pattern to wrap up the details of instantiation.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
Wouldn't that still require using Reflection to determine which version of the API is installed on the system at runtime?
(Not that it matters; I'm not writing it to be flexible.)
|
|
|
|
|
You might have to use reflection. If you want to avoid that, you could compile different versions with different references and conditional compilation. This could get ugly if you can't limit the setups to only two versions or contain all conditional code in the class factory.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: you could compile different versions with different references and conditional compilation
Yeah, that way madness lies.
|
|
|
|
|
Sometimes you don't get much of a choice. I can remember that the different versions of XNA were not very compatible. At least I managed to keep the version specific things in a baseclass with graphics functions. Containment is everything, or encapsulation in this case.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|