Showing posts with label clr. Show all posts
Showing posts with label clr. Show all posts

Effective C#: 50 Specific Ways to Improve Your C# Review

Effective C#: 50 Specific Ways to Improve Your C#
Average Reviews:

(More customer reviews)
Are you looking to buy Effective C#: 50 Specific Ways to Improve Your C#? Here is the right place to find the great deals. we can offer discounts of up to 90% on Effective C#: 50 Specific Ways to Improve Your C#. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Effective C#: 50 Specific Ways to Improve Your C# ReviewFULL DISCLOSURE: I know Bill Wagner pretty well, and consider him a friend. I don't think that has colored this review, but you have a right to know. (If you doubt my objectivity, consider that I have now purchased TWO copies of this book, even though I probably could have gotten one or two for free. It's worth it!)
Back when I was a C++ programmer, there was one book everyone said I simply had to read: Effective C++ by Scott Meyers. And they were right: when I read that book, I summarized it as "Here are 50 mistakes you're making in your C++ code right now, and you don't even know it." (Note: the latest edition has been expanded to 55 mistakes.) So now that I'm a C# programmer, I eagerly looked forward to Effective C# (edited by Meyers), because I wanted that same sort of "Aha!" enlightenment.
Well, Bill Wagner failed to deliver that enlightenment. But that's a good thing, actually, and something he couldn't help. But to understand why, we have to return to Scott Meyers.
After the 50 amazingly simple improvements in Effective C++, Meyers wrote More Effective C++; and I characterized that book as, "35 really deep subjects that you have to think about and understand. Some of them will apply to your work. Some of them won't. None of them will be easy. But you really have to think about them." See, Meyers covered all the simple, universal problems in his first book, making it darned hard to make any simple, obvious C++ mistakes. That meant his second book had to cover deeper design concerns, many of which apply only in particular circumstances.
And herein lies the difference for Wagner's book. See, a generation of C++ programmers learned and internalized Meyers's lessons -- including the Microsoft team who created the C# language. When they built their C++-inspired (and Java-inspired) language, they built in a lot of the safeguards and limits that Meyers advocated as a standard practice for C++. They also built in best practices from other sources. So it's my contention that the C# equivalent to Effective C++ can't really be written. The language won't allow it.
So what Wagner has written really falls somewhere between Effective C++ and More Effective C++. There are some simple "Aha!" tips; but there are a lot more deep design concerns. That's really what the C# programmer needs, after all; and that's what Wagner delivers in a very fine fashion.
Now Wagner can explain these topics better than I can, so I'm not going to try. But I do want to comment on the items I found most useful:
5. Always provide ToString(). Your maintenance and client coders will thank you.
15. Utilize using and try/finally for Resource Cleanup. And 18. Implement the Standard Dispose Pattern. .NET pretty much solves memory leaks; but memory is only the most commonly leaked resource. And in solving memory leaks, they made it harder to manage certain other resources. In these two items, Wagner shows how to do the best job you can.
I wish I could say I was following every tip in this book; but it's hard to break bad habits. Read this book before you form bad habits yourself.
Note that the original printing of this book had a lot of typos where words rantogether. I now have a copy of the second printing, where those all seem to be fixed.
Effective C#: 50 Specific Ways to Improve Your C# Overview

Want to learn more information about Effective C#: 50 Specific Ways to Improve Your C#?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

C# Primer Plus Review

C# Primer Plus
Average Reviews:

(More customer reviews)
Are you looking to buy C# Primer Plus? Here is the right place to find the great deals. we can offer discounts of up to 90% on C# Primer Plus. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

C# Primer Plus ReviewAs the title suggests, this book focuses almost entirely on the C# language stopping only briefly to explain key elements of the Common Language Runtime (CLR) and by extension the Common Type System (CTS).
Where this book differs from many of the other titles out there is that it doesn't attempt to walk the reader through the .NET Framework at the same time. At the moment there are a number of books on the market that proclaim to teach C# but use it only as a tool to explore the framework.
The target audience for C# Primer Plus is hard to classify; the book provides depth coverage of the C# language constructs and important parts of the CLR, yet this detail is punctuated by practical examples and discussion which should have the programming novice up to speed in no time.
Much of the first two chapters are devoted to explaining introductory programming subjects such as Object-Orientated Programming, the value of design in the development process and conventional computing models. In my opinion, this is still valuable to even the most senior programmer as sometimes we forget the fundamentals of our trade.
What really makes this book stand out is the widespread and strategic use of diagrams to provide visual context. Further, the book provides ample practical examples for all the material it covers. Klaus has an exceptional writing style which sadly only a few percent of the authors out there possess.
In many ways this book reminds me of some of the older C++ books which focused key programming concepts and the core of the language and left discussion of the various libraries for the reference materials.
It would be a real shame to see senior programmers overlook this title because of some of its novice material. It heartily recommend it as usable language reference for the experienced programmer and an educational tool for those just starting out.
C# Primer Plus has earned a place on my bookshelf and I recommend it to those who want a quality language reference with good supporting material. Because of its introductory material it is also ideal as a educational tool.C# Primer Plus Overview

Want to learn more information about C# Primer Plus?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series) Review

Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series)
Average Reviews:

(More customer reviews)
Are you looking to buy Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series)? Here is the right place to find the great deals. we can offer discounts of up to 90% on Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series). Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series) ReviewThis is an excellent book about C# the language. Please read that again, as I can see a lot of people mistake what this book is - it is NOT a book about .Net (although it definitely is related to that) or about any specific frameworks that _use_ C#, such as WPF or ASP.Net or anything like that. It's a book about the C# language itself. And assuming that's what you want, it's a really well done book. It also clearly points out what C# features are in/from the different versions of C# much, much better than any other book I've ever seen.
I'm not going to give an overview of the chapters, as you can already see what those are in the information section above. The coverage of every topic is very thorough, and the writing and sample code are both of high quality. If I had to complain about something here, it would be that some things which seem like "advanced" topics aren't marked as such all the time, while others are.
This book is a great reference, but you'll probably want it along with another book about something you want to _do_ with C#. You can use that other book (about WPF or ASP or whatever) to guide you along what you want to do and then use this one as a guide to C#. If you're new to C# or moving over from other languages (as I am), then you might want to read this first (yes, this is a long read, but it's worth it), then go to the other book, and only consult this one again when needed.
Oh, one last note. This book actually mentions MONO much more than other books like it, which is a nice touch.Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series) OverviewEssential C# 4.0 is a well-organized,"no-fluff" guide to all versions of C# for programmers at all levels of C# experience. This fully updated edition shows how to make the most of C# 4.0's new features and programming patterns to write code that is simple, yet powerful.This edition contains two new chapters on parallel programming, multi­threading, and concurrency, as well as extensive coverage of new C# 4.0 features: dynamic typing, variance, optional/named parameters, and many other new topics. Mark Michaelis covers the C# language in depth, illustrating key constructs with succinct, downloadable code examples. Graphical "mind maps" at the beginning of each chapter show what material is covered and how individual topics interrelate. Topics intended for beginners and advanced readers are clearly marked, and the book includes indexes of C# versions (2.0, 3.0, and 4.0), which make it easy for readers to reference topics specific to a given release of C#. Following an introduction to C#, readers learn aboutBest practices for object-oriented programming in C#

Want to learn more information about Essential C# 4.0 (3rd Edition) (Microsoft .NET Development Series)?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

C# 4.0 How-To Review

C# 4.0 How-To
Average Reviews:

(More customer reviews)
Are you looking to buy C# 4.0 How-To? Here is the right place to find the great deals. we can offer discounts of up to 90% on C# 4.0 How-To. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

C# 4.0 How-To ReviewThis book's title does not quite match its content but the book's introduction does indicate this. This is primarily a very good book of code and code algorithms in the .NET framework using C#. That being said the book does cover the changes made to the .NET 4.0 framework and to C# 4.0.
The code is very well written--it is beautiful well structured communicative code. The code in the book is sparsely commented; it is so well-written that few comments are needed. As I have said, in many ways the book is a book of code algorithms, for example, in chapter 5 Convert Between Number Bases, Convert a Number to Bytes, Determine if an Integer is Even, Determine if a Number is Prime, Count the Number of 1 Bits etc. All these code examples are useful algorithms but have nothing to do with .NET Framework 4.0 or C# 4.0 per se.
Despite what the Introduction says this is decidedly not a book for beginners. While they may be able to find useful algorithms here and there the content of the book is way too terse for a beginner to follow and they should turn to other books for a more complete introduction to C#. Chapter 8 on regular expressions will only be useful to programmers that already have the basics of regular expressions well-understood otherwise even the first few code examples will leave them scratching their heads. This book does not do any hand-holding but rather shows you in very practical ways how to use the C# language and the .NET framework.
I loved the code examples using dynamic types as this was the best example I have yet seen of using them in a practical straight-forward way. The code is the book is not just useful and terse but it is also elegant. For example, the ternary operator is used multiple times in the CompressFile project in Chapter 11 producing really elegant concise and clear code.
The book, not the down-loadable code, has a few errors and code bugs but very few, for example:
Pg 16 code won't compile since _x is private and therefore not accessible to the derived class
Pg 17 line Console.WriteLine(d.MyProperty().ToString()); wont compile
Pg 17 code wont compile, class Derived not inheriting from Base class--missing : base
DoSomething method in class Derived needs to be marked override not virtual to eliminate compiler warning
Pg 65 example code given says, "Because ArgumentNullException is a type of ArgumentException, and ArgumentException is first in the catch list, it will be called." This is not true as the compiler is smart enough to recognize the problem and results in a compiler error and therefore the code will not even run.
I recommend this book for intermediate and advanced developers. Read the book and study the code examples and you will:
1) Learn the .NET Framework 4.0
2) Learn C# 4.0
3) Add to your inventory of useful code algorithms
4) Improve your written code by reading and studying the elegant code in this book.C# 4.0 How-To Overview

Want to learn more information about C# 4.0 How-To?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

C# 3.0 Cookbook Review

C# 3.0 Cookbook
Average Reviews:

(More customer reviews)
Are you looking to buy C# 3.0 Cookbook? Here is the right place to find the great deals. we can offer discounts of up to 90% on C# 3.0 Cookbook. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

C# 3.0 Cookbook ReviewAre you an experienced C# or .NET developer or just a novice user? If you are, then this book is for you. Authors Jay Hilyard and Stephen Teilhet, have done an outstanding job of writing a book that is designed for users of all levels, and provides solutions to problems that developers face every day as well as some that may come along less frequently.
Hilyard and Teilhet, begin by covering Language Integrated Query (LINQ) and its usage with objects, ADO.NET, and XML. Next, the authors cover both String and Char data types. Then, they discuss recipes dealing with both class and structure data types. The authors also focus on the generics capacity in C#, which allows you to have code operate uniformly on values of different types. They continue by examining recipes that make use of collections. Next, the authors show you how to use two features of C# to solve very different programming problems. Then, they focus on the best ways to implement exception handling in your application. The authors also present recipes that use data types that fall under the System. They continue by showing you how delegates, events, and lambda expressions can be used in your applications. Next, the authors cover a useful set of classes that are employed to run regular expressions against strings. Then, they deal with file system interactions in four distinct ways. The authors also show you ways to use built-in assembly inspection system provided by the .NET Framework to determine what types, interfaces, and methods are implemented within an assembly and how to access them in a late-bound fashion. They continue by covering how to access a web site and its content as well as programmatically determining web site configuration. Next, the authors explore some of the uses for XML and how to program against it using LINQ to XML, the XmlReader/XmlWriter, and Xml-Document. Then, they explore the connectivity options provided by the .NET Framework and how to programmatically access network resources. The authors also explore areas such as controlling access to types, encryption and decryption, securely storing data, and using programmatic and declarative security. They continue by addressing the subject of using multiple threads of execution in a .NET program; issues such as how to implement threading in your application; protecting resources from and allowing safe concurrent access; storing per-thread data; and, how to use the synchronization primitives in .NET to write thread-safe code. Next, the authors discuss recipes for those random sorts of operations that developers run into over and over again, such as determining locations of system resources, sending e-mail, and working with services. Finally, the authors focus on the numeric and enumeration types and recipes on using enumerations that consist of bit flags.
This most excellent book is laid out with respect to the types of problems you will solve as you progress through your life as a C# programmer. In other words, each recipe contained in this book is designed to help you quickly understand the problem, learn how to solve it, and find out any potential trade-offs or ramifications to help you solve your problems quickly, efficiently, and with minimal effort.C# 3.0 Cookbook Overview

Want to learn more information about C# 3.0 Cookbook?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer) Review

Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer)
Average Reviews:

(More customer reviews)
Are you looking to buy Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer)? Here is the right place to find the great deals. we can offer discounts of up to 90% on Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer). Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer) ReviewC# and .NET are reintroduced in this one book for the 2010 audience of programmers. The two subjects are wedded in the text to form one complete reference. I have just finished reading this book and I can tell you that it will take another two readings to fully absorb the contents because of the numerous details. At just over 1400 pages, this is a compendium of the two programming areas that has enormous scope. I am impressed that the authors and the publisher were able to complete this project before the release of the two in April. Operations specific to the .NET v4 release are noted in the text.
I found the information in this book to be comprehensive and detailed in many ways. With 47 chapters and an appendix this book is going to be the cornerstone of my .NET computing from this time on. My previous references are getting dated and don't give me enough information to pass the employment interviews. This book and one other are going to be my entire reference library for C# programming in general.
I found the information to be very well written to the point that even after six years of using C# it increased my knowledge and understanding of this wonderful new computer language. I have over a dozen books on .NET and C# in my library and this is the best written of them all. For this reason I am giving it 5 stars. I believe that this is the best introduction to these two subject areas
Of course, if you want to work in depth on one of the chapters covered in this book, another reference that expands on the material will be required.Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer) Overview

Want to learn more information about Professional C# 4.0 and .NET 4 (Wrox Programmer to Programmer)?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

C# 4.0 in a Nutshell: The Definitive Reference Review

C# 4.0 in a Nutshell: The Definitive Reference
Average Reviews:

(More customer reviews)
Are you looking to buy C# 4.0 in a Nutshell: The Definitive Reference? Here is the right place to find the great deals. we can offer discounts of up to 90% on C# 4.0 in a Nutshell: The Definitive Reference. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

C# 4.0 in a Nutshell: The Definitive Reference ReviewThis book is great. It's no nonsense approach to covering the C# 4.0 language is like a breath of fresh air. It is clean, to the point, and thorough. It makes finding a topic, and learning it, or getting a refresher, a very fast process.
This new version includes new chapters on parallel programming (including PLINQ), and dynamic programming, and new sections on code contracts and COM interoperability.
The authors have a great writing style which makes the book a very enjoyable read. You can read this cover to cover, or use it as a very handy reference. You won't find any case studies, or made up scenarios, to help the authors describe the technology. They stick to writing about the technology, which is nice.
One of my favorite features of the book is the way the authors do their diagramming. They include a lot of diagrams that give a visual representation of the feature they are describing. The diagrams really help with getting a quick understanding of the overall picture of the topic. The authors also demonstrate with code that is always easy to understand and within the scope of the topic at hand. You don't have 2 pages of code with 3 lines highlighted.
Another part of this book I love is the way the authors deliver the code samples using LINQPad. I own the full auto completion version of LINQPad and it rocks. I have been using it since its first release and it has become my favorite tool when working with databases.
My only complaint about the book is the construction. The gluing job they did is horrible. It has big clumps of glue embedded in the pages which cause the binder to really bend. It will probably fall apart within a month of heavy use. I won't ding the book for that. It is a publisher issue, not an author issue.
All in all I highly recommend this book. It belongs on the shelf of any serious developer.
Review Update-
The editor of C# 4.0 in a Nutshell Book read my blog and suggested I contact O'Reilly Media for a new copy since my binder was a mess.
They made good on the request for a new copy of the C# 4.0 in a Nutshell Book and I received it today with the binder in perfect condition. No glue blobs in between any pages. Hats off to O'Reilly Media!!!!!
C# 4.0 in a Nutshell: The Definitive Reference Overview

Want to learn more information about C# 4.0 in a Nutshell: The Definitive Reference?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...

CLR via C# Review

CLR via C#
Average Reviews:

(More customer reviews)
Are you looking to buy CLR via C#? Here is the right place to find the great deals. we can offer discounts of up to 90% on CLR via C#. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

CLR via C# ReviewThe first thing I'd like to say is this book rocks. It should be one of the first books you open up if you want to really be good at OOP. Because first you have to learn what the CLR is doing and why because the code you write directly relates to it by performance, and expected behavior. If you don't know this, then you end up with more ?? than anything when coding because you really don't understand HOW things are being done under the covers and even though you can still code and code even simple or advanced, you are sort of coding blind and you are winging it no matter how good you think you are.
Second, let me say that I strongly disagree with many who say this book as a whole should ONLY be ready by experienced / advanced programmers. Ok, yes the some of this book gets really advanced (i.e. threading, etc.). However there are a lot of just fundamentals here that are critical parts in this book that EVERY developer needs to grasp and memorize fully in order to be an effective programmer.
Here are some of the sections I'm talking about that apply to all developers of all levels of programming:
Part II
Chapter 4 - Type Fundamentals
Chapter 5 - Primitive, Reference, and Value Types
Chapter 6 - Type Member Basics
Chapter 7 - Constants and Fields
Chapter 8 - Methods
Chapter 9 - Parameters
Chapter 10 - Properties
Chapter 11 - Events
Chapter 12 - Generics (yes advanced but mid-level devs should be reading this)
Chapter 13 - Interfaces
Part III
Chapter 14 - Chars, String, and Working with Text
Chapter 15 - Enumerated Types and Bit Flags
Chapter 16 - Arrays
Chapter 17 - Delegates
Chapter 18 - Custom Attributes
Chapter 19 - Nullable Value Types
Part IV
Chapter 20 - Exceptions and State Management
(all about exceptions here. i.e. he talks about try/catch and best practices using it and much more on the fundamentals of exception handling)
Chapter 21 - Automatic Memory Management (Garbage Collection) - Every developer needs to know about this
Chapter 22 - CLR Hosting and App Domains (yes, you should know what an AppDomain is, even mid-level devs)
Chapter 23 - Assembly Loading and Reflection
Chapter 24 - Runtime Serialization
If every developer were to pick up this book simply to read those chapters above, you are pretty much guaranteed to have a much more confident grasp on what is actually going on other than syntax when you program. It's important to know what is going on.
The thing I like about this book is it's not just a dry read, plain technical book. Yea some of it is very technical and can be considered a reference but it's sort of a hybrid to me, not just a reference. You also have the author's thoughts, reasoning, etc. behind the vanilla hard core concepts of what's going on in the CLR. He's able to articulate what's going on and able to explain it in simple terms even though what he's talking about has a lot of detail and is very in depth. So in other words, this is a much more "modern" developer book. Modern is by my definition those authors who can teach you when you read their books. They are not just dry technical text that bore you to death and leave out reality or real-world examples. They engage you, and they stick in your head because the author knows how to communicate not only in one way but usually able describe a topic from many ways...saving you a lot of headaches because you're learning from Lead developers.
This book should be on EVERY developers shelf. It's one of those books that you'll use over and over again throughout your career and it will really save you a lot of pain. And you should be reading at least the fundamentals above...find the time. Other books for example may talk about value and reference types but they fail to really give you a grasp of WHY you need to know about this and really explain what's going on in detail in a way that you can understand clearly and simply. And there are a lot of things in here that even Sr. or Architect level devs may think they know but they don't, even in the fundamental sections. Everyone can learn a lot from this book. I too am still learning a lot from this book.
There's a lot to read even in the sections I listed above, but you should really get this book and find a way to read every page of those sections.CLR via C# Overview

Want to learn more information about CLR via C#?

>> Click Here to See All Customer Reviews & Ratings Now
Read More...