Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming Books Media Book Reviews IT Technology

Pro C# 220

FrazzledDad writes "Andrew Troelsen's Pro C# 2005 and the .NET 2.0 Platform, 3rd Ed. gives a great breadth and depth of coverage to C# and the features of Microsoft's .NET 2.0 Framework. He does a fine job covering fundamentals of C# and .NET in general and then dives into terrific detail on a number of important topics." Read the rest of Jim's review.
Pro C# 2005 and the .NET 2.0 Platform, Third Edition
author Andrew Troelsen
pages 1032
publisher Apress
rating 8/10
reviewer Jim Holmes
ISBN 1590594193
summary Great coverage and detail on many C# topics, but long


Troelsen claims that the book is targeted at "experienced software professionals and/or graduate students of computer sciences," and that he won't spend "three chapters on iteration or decision constructs," but he spends enough time covering basics that the book will be beneficial to developers of any skill level.

First off, the book is longer than it needs to be. Part of this is the amount of text Troelsen spends covering fundamentals, despite his claims of the book's targeted audience. Experienced developers will skip right over the sections on object-oriented programming basics and C# language fundamentals. Still, this extra material didn't particularly bother me and it's very useful to newer developers, or those needing a refresher on basics.

Troelsen's example code also has more cruft than necessary, which tends to drag out examples a bit too much. The auto-based example he carries through the book is a nice practical example, but do I really care about methods turning the radio on and off while not lending any weight to the concept?

I was also surprised to find missing any discussion of COM interoperability. While COM Interop isn't a sexy, futuristic topic, I'd think there would be great value in covering it - helping some developers understand how to better deal with migrating or wrapping up legacy applications.

Lastly, despite the book's title emphasizing C#, there are 130 or so pages on ASP.NET and XML web services. Sure, these are part of the .NET Framework, but it seems a diversion from focusing on C#.

Frankly, the bad items I list above are all nits to me in what I consider a very worthwhile book. The book's loaded with plenty of good material, starting out with a solid overview on developing .NET applications outside Microsoft's Visual Studio.

Troelsen nicely covers using the freely available .NET Framework SDK to build applications. He also mentions Textpad and has a handful of pages dedicated to SharpDevelop, the open source C# development environment. He also gives a short nod to the freely (for now!) downloadable Visual C# 2005 Express before moving into an overview of the upscale versions of Visual Studio.

Troelsen nicely lays out critical concepts in his book. His work is the first place I've found clear explanations of why one should occasionally drill into .NET's Common Intermediate Language (CIL, sometimes referred to as "IL"). Other articles and books I've read haven't really gone past the level of "gee, it's neat!", but Troelsen lays out good examples of when it can be useful - such as inspecting IL and finding out how to directly call operator overloads ("+=", for example) in languages which might not support this feature.

I also found Troelsen's discussion of remoting and serialization very clear and useful. Furthermore, he does a great job with delegates and events, starting out with manually working with event handlers. This helps the reader understand the fundamental workings of handler assignments and multicasting rather than just directly jumping to event handling assignment via the += operator.

Even better than Troelsen's conceptual coverage is the level of detail he brings to all the topics he writes on. I already mentioned his coverage of event/delegate multicasting as one example. Other examples would be his extensive coverage of reflection, late binding and threading, among other topics.

He dedicates one chapter to the guts of .NET assemblies, running the gamut from why assemblies exist, through the format of assembly headers, to how shared assemblies work. There's good discussion in this chapter on the what/why/how of the Global Assembly Cache and how to deal with publishing assemblies with policy interraction.

There's plenty of other goodness in this book. Generics get great coverage, as does ADO.NET and multi-threading. There's also a chapter dedicated to GDI+ programming for you graphics geeks.

It's nice that Troelsen carries one example through much of the book, building concepts on the same framework of his automobile classes. Source for his examples is available from Apress's website, and Apress also has a searchable e-book available. The e-book's available for free for short time if you purchase the hardcopy.

Troelsen's writing style is also easy to deal with. He's got a good writing voice which makes potentially dry stuff interesting.

It may be overly long for some folks, but this book is a worthwhile investment for those looking for clear, detailed explanations of C#. The length really doesn't detract from the book's overall value, and I'm happy to have it on my bookshelf. (I even pull it off and use it.)"


You can purchase Pro C# 2005 and the .NET 2.0 Platform, Third Edition from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
This discussion has been archived. No new comments can be posted.

Pro C#

Comments Filter:
  • Focus (Score:1, Insightful)

    by 110010001000 ( 697113 ) on Wednesday January 04, 2006 @04:03PM (#14394747) Homepage Journal
    From the review: "Lastly, despite the book's title emphasizing C#, there are 130 or so pages on ASP.NET and XML web services"

    I'm not sure how you can fault me for including coverage of ASP.NET and other .NET technologies - the title of the book points out that it covers BOTH C# and .NET 2.0. There is no special emphasis on C#.
  • by Dante Shamest ( 813622 ) on Wednesday January 04, 2006 @04:08PM (#14394789)
    Yeah, I know what you mean. The only computing books that I think are actually worth buying now ones that focus on algorithms, graphics, data structures and math. There's little point in purchasing a language programming book, since the author probably got his knowledge from the web too.

    On the other hand, a book devoted to examples, like say a C# almanac where source code listings and examples are listed for separate APIs, I may consider.

  • C# (Score:5, Insightful)

    by the computer guy nex ( 916959 ) on Wednesday January 04, 2006 @04:11PM (#14394818)
    "What makes it a worthless language is that it has all the bad parts of C++ and Java without any of the benefits"

    Most people experienced with the languages believe the opposite - it has all the benefits of Java with none of the problems (lack multiple inheritance, effective marshalling, etc).
  • Pro? (Score:2, Insightful)

    by Phillup ( 317168 ) on Wednesday January 04, 2006 @04:12PM (#14394828)
    How can a language that runs on such a limited number of Operating Systems be considered "Pro"?

    Just wondering...
  • A proper review (Score:3, Insightful)

    by XMilkProject ( 935232 ) on Wednesday January 04, 2006 @04:14PM (#14394853) Homepage
    I happy to say, that IMO, this is the first proper/quality book review we've had for quite some time on /.

    The author clearly listed what is, and is not, contained in the book, and also provided his opinion on how useful these various chapters were to him.

    Hopefully future book-related-articles will try to provide atleast this level of information, as opposed to common "The book had alot of good stuff, but then some stuff was missing.".

    More on-topic, I would say that in my experience I've never found these sorts of books particularly helpful, as anyone with software experience should have no trouble finding the information they need in the MSDN library, or on various other websites. Also, I imagine it would be difficult to find a developer who does not already have experience with a syntactically similar language.

    I can imagine though, that this sort of reading might bring up questions (and answers) to questions that many developers had not yet thought to ask (primarily regarding CIL, GAC, etc), which could of course be helpful.
  • Re:Pro? (Score:2, Insightful)

    by Bellum Aeternus ( 891584 ) on Wednesday January 04, 2006 @04:41PM (#14395111)
    When those operating systems account for 95% of users and ~40% of servers... I think it counts.
  • by Thundersnatch ( 671481 ) on Wednesday January 04, 2006 @05:51PM (#14395757) Journal
    Okay, .NET and Java aren't as fast as C in the general case. But I think most developers are a lot more productive in both Java & .NET than they are in C. And C is of course slower than assembly, but I would imagine building an app is 10x faster in C than assembly.

    But now there's all this hype about Ruby and Python, which are orders of magnitude slower than .NET and Java, even with Psyco and other limited acceleration tools. But they are a joy to develop in.

    It seems as though we must trade development ease for execution speed. This seems to be a good trade for the majority of applications: salaries are the #1 cost for most companies. Hardware is cheap. A two-server, 8-core Opteron cluster costs less than an experienced programmer makes in a month.

    So if you're writing an trade-settlement server for the financial markets, where milliseconds mean millions, by all means get close to the hardware and use C and hand-tuned assembly. But otherwise, pick something further up the stack and spend a little more money on hardware.

The moon is made of green cheese. -- John Heywood

Working...