IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-29
[23:52]<sxrmmr>the base constructor crap in C# had me going around in circles
[23:52]<xylxjzys>too many books are always like "this is an if statement... this is a for loop" ...
[23:52]<pz2>Hopp: what are you doing again?
[23:53]<pz2>Xiphoris: we have a .NET1 book for that from Wrox
[23:53]<pz2>I seriously doubt those fundamentals have changed
[23:53]<sxrmmr>Xiphoris, on the other hand, its counter productive for a book to go, "Okay now, create a delegate and we can overload this static method with..." hey wait whats a delegate again?
[23:53]<sxrmmr>br
[23:53]<sxrmmr>b
[23:53]<txnjzd>If you don't brush up on generics, closures and continuations you are seriously missing out
[23:53]<xylxjzys>C# doesn't really have continuations though
[23:54]<xylxjzys>it has ... sort of .. I guess you could call them generator methods
[23:54]<pz2>should I go for the MS books, or the O'Reilly books?
[23:54]<xylxjzys>frb: the Oreilly one I mentioned is very good. I have read others that I liked a lot, but none on .NET
[23:54]<pz2>coming from 12 years linux experience, so O'Reilly gets thumbs up from me
[23:54]<xylxjzys>I honestly don't like MSFT press books so much :)
[23:54]<xylxjzys>they too often do the "this is a for loop" thing
[23:55]<xylxjzys>Shadda: yeah I know, but it's easy to cover all the language fundamentals in a chapter
[23:55]<xylxjzys>just say "Delegates are function objects" and give some syntax example at the beginning if they need to
[23:55]<xylxjzys>like, if you showed this to a java programmer, or anyone else who's "pro" at some language:
[23:55]<hjll>frb: :) ok, I have written desktop application (in delphi because of customer), which has flash applet in it. so during instalation process i have to check, if the flash is present on remote system
[23:55]<zgzzcygnv>ok im off to work
[23:55]<zgzzcygnv>bbl
[23:55]<xylxjzys>Func<int,int> addOne = delegate(int n) { return n+1; }
[23:55]<xylxjzys>I think people could figure out what that means :P
[23:56]<pz2>Hopp: ah, ok, I just know how to detect it in a browser
[23:56]<xylxjzys>lambda syntax people might need an introduction to
[23:56]<xylxjzys>Func<int,int> addOne = x=> x+1; // maybe less clear
[23:56]<pz2>I can do function refs, js does those
[23:56]<rxrcr>Xiphoris, most books don't make that assumption, which is annoying
[23:56]<xylxjzys>that's why I quit buying books... I realized usually half of them are crap
[23:56]<rxrcr>yep
[23:56]<xylxjzys>and teach to idiot level. I wish more books ... well did two things:
[23:56]<xylxjzys>1) made it really clear to whom they are targeted
[23:56]<pz2>var addOne = function () { return arguments[0] +1 }
[23:57]<xylxjzys>2) were divided into multiple books, one introducing stupid language features, and another teaching complex features
[23:57]<hjll>frb: thanks anyway :)
[23:57]<pz2>I like the o'reilly JS book for the extensive reference they have in the end
[23:57]<xylxjzys>I've seen enough languages that picking up anything new requires just looking at some example code, maybe with an explanation if it's not intuitively clear (like lambdas I could see people having trouble with)
[23:58]<xylxjzys>var myList = new List<int>(); // if you know C# is a statically-typed language, you can figure out what this does
[23:58]<pz2>I'm not familiar with <> syntax though
[23:58]<xylxjzys>generics
[23:59]<xylxjzys>are you familiar with C++ templates or Java generics?
[23:59]<pz2>no
[23:59]<xylxjzys>you can create a class that takes a type parameter
[23:59]<xylxjzys>like this:
[23:59]<xylxjzys>class Hello<T> { T t; }
[23:59]<pz2>I think I saw them 3 times, about 5 years ago
[23:59]<xylxjzys>T is a type parameter (as opposed to a value parameter)
[23:59]<xylxjzys>so if oyu say this:
[23:59]<xylxjzys>Hello<int> h;
[23:59]<xylxjzys>then h.t is an int
[23:59]<xylxjzys>if you say Hello<float> h;
[23:59]<xylxjzys>then h.t is a float







