I hate technical books that try to sound young...
-
:thumbsup: 5! I'm always open to correction. Especially when its stuff I'm trying to learn. Think I'll keep looking for a rather more accurate book. :sigh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
OriginalGriff wrote:
I'm always open to correction.
Abhinav was not 100% right. Please read the corrections to his correction too :-)
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
:thumbsup: 5! I'm always open to correction. Especially when its stuff I'm trying to learn. Think I'll keep looking for a rather more accurate book. :sigh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
Well he fixed his post, so it's all good now :-)
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
Fixed! :)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
Thank you.
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
OriginalGriff wrote:
I'm always open to correction.
Abhinav was not 100% right. Please read the corrections to his correction too :-)
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
Nishant Sivakumar wrote:
Abhinav was not 100% right. Please read the corrections to his correction too
I need a beer... :)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
-
Nishant Sivakumar wrote:
Abhinav was not 100% right. Please read the corrections to his correction too
I need a beer... :)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
Thanks again for fixing it :-) You don't want newbies who may encounter it in future to go away with wrong info. Good work! :thumbsup:
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
Thanks again for fixing it :-) You don't want newbies who may encounter it in future to go away with wrong info. Good work! :thumbsup:
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
Nishant Sivakumar wrote:
You don't want newbies who may encounter it in future to go away with wrong info
Good point.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
-
Nishant Sivakumar wrote:
Abhinav was not 100% right. Please read the corrections to his correction too
I need a beer... :)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick
Abhinav S wrote:
I need a beer...
...again. It is rude to stop at one, the others may think you don't like them.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
-
I decided it was time I read up on LINQ: never really used it, time I learnt. So, I have a quick look for a book. Amazon: Sams LINQ Unleashed for C#. Lets have a quick look "Surprise me" "check out Wikipedia; Wikipedia is wicked cool at providing detailed facts" Hmmm. Wicked cool? And a code fragment to illustrate how wonderfull anonymous types are:
var request = HttpWebRequest.Create(string.Format(url, stock)); using (var response = request.GetResponse()) { using (var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
I hate that. Why use an example where it is actually clearer if you don't use anonymous types?
WebRequest request = HttpWebRequest.Create(string.Format(url, stock)); using (WebResponse response = request.GetResponse()) { using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
Don't think I'll buy that one...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
It's not the 'wicked cool' that throws me in that statement it the 'detailed facts' Wikipedia is convenient, but not to be relied upon too heavily.
My current favourite phrase: I've seen better!
-SK Genius
-
Abhinav S wrote:
I need a beer...
...again. It is rude to stop at one, the others may think you don't like them.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
-
I decided it was time I read up on LINQ: never really used it, time I learnt. So, I have a quick look for a book. Amazon: Sams LINQ Unleashed for C#. Lets have a quick look "Surprise me" "check out Wikipedia; Wikipedia is wicked cool at providing detailed facts" Hmmm. Wicked cool? And a code fragment to illustrate how wonderfull anonymous types are:
var request = HttpWebRequest.Create(string.Format(url, stock)); using (var response = request.GetResponse()) { using (var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
I hate that. Why use an example where it is actually clearer if you don't use anonymous types?
WebRequest request = HttpWebRequest.Create(string.Format(url, stock)); using (WebResponse response = request.GetResponse()) { using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
Don't think I'll buy that one...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
sorry, but type inference makes code clearer, I like the first version better. Why should I have to redeclare the variable's type when
new
ing it? It's easily inferred from the right-side.var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
is better than
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams "Let me get this straight. You know her. She knows you. But she wants to eat him. And everybody's okay with this?"
-
sorry, but type inference makes code clearer, I like the first version better. Why should I have to redeclare the variable's type when
new
ing it? It's easily inferred from the right-side.var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
is better than
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams "Let me get this straight. You know her. She knows you. But she wants to eat him. And everybody's okay with this?"
I agree with you, but it's like arguing about how your favorite color is better than someone else's.
Mike Lasseter
-
Abhinav S wrote:
It makes the varible implicity typed i.e. the variable knows nothing about what it will be until the code exectues.
That's not fully correct. The variable type is known at compile time. It just saves you some typing :-)
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
Nishant Sivakumar wrote:
That's not fully correct. The variable type is known at compile time.
Real men don't compile code; they just put it straight into production.
I wanna be a eunuchs developer! Pass me a bread knife!
-
I decided it was time I read up on LINQ: never really used it, time I learnt. So, I have a quick look for a book. Amazon: Sams LINQ Unleashed for C#. Lets have a quick look "Surprise me" "check out Wikipedia; Wikipedia is wicked cool at providing detailed facts" Hmmm. Wicked cool? And a code fragment to illustrate how wonderfull anonymous types are:
var request = HttpWebRequest.Create(string.Format(url, stock)); using (var response = request.GetResponse()) { using (var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
I hate that. Why use an example where it is actually clearer if you don't use anonymous types?
WebRequest request = HttpWebRequest.Create(string.Format(url, stock)); using (WebResponse response = request.GetResponse()) { using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
Don't think I'll buy that one...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
OriginalGriff wrote:
Sams LINQ Unleashed for C#.
Three out of five words are bad for your personal hygiene and will give you brain rot: Sams LINQ Unleashed X| And some studies indicate a forth word, "C#", will lead to early onset of Alzheimer's. Marc
-
I decided it was time I read up on LINQ: never really used it, time I learnt. So, I have a quick look for a book. Amazon: Sams LINQ Unleashed for C#. Lets have a quick look "Surprise me" "check out Wikipedia; Wikipedia is wicked cool at providing detailed facts" Hmmm. Wicked cool? And a code fragment to illustrate how wonderfull anonymous types are:
var request = HttpWebRequest.Create(string.Format(url, stock)); using (var response = request.GetResponse()) { using (var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
I hate that. Why use an example where it is actually clearer if you don't use anonymous types?
WebRequest request = HttpWebRequest.Create(string.Format(url, stock)); using (WebResponse response = request.GetResponse()) { using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)) { return (reader.ReadToEnd()); } }
Don't think I'll buy that one...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
Try this one [^] I've tried a couple and this one is the best.
Even a blind squirrel gets a nut occasionally. http://www.hq4thmarinescomm.com[^] [My Site]
-
sorry, but type inference makes code clearer, I like the first version better. Why should I have to redeclare the variable's type when
new
ing it? It's easily inferred from the right-side.var reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
is better than
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.ASCII)
"If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams "Let me get this straight. You know her. She knows you. But she wants to eat him. And everybody's okay with this?"
I disagree. It is lazy, and it shows you don't care about what is being returned. If you explicitly type it then you know exactly what it is and what you can do with it. It's the difference between and ArrayList and a List<T> and I thought that was sorted a long time ago :laugh:
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
-
Try this one [^] I've tried a couple and this one is the best.
Even a blind squirrel gets a nut occasionally. http://www.hq4thmarinescomm.com[^] [My Site]
Cheers! I'll have a look...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
-
Uhm I am confused, there are no anonymous types used in either code snippet! :confused:
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
I guess you did not read the other responses in this thread. :rolleyes:
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
I guess you did not read the other responses in this thread. :rolleyes:
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com
-
Quite a few of them. ;)
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
Yeah, the number of C# developers who don't understand the var keyword is shocking!
Regards, Nish
Latest article: Code Project Posts Analyzer for Windows Phone 7 My technology blog: voidnish.wordpress.com