CARVIEW |
Head First C#
A Learner's Guide to Real-World Programming with Visual C# and .NET
By Andrew Stellman, Jennifer Greene
November 2007
Pages: 778
Series: Head First
ISBN 10: 0-596-51482-4 |
ISBN 13: 9780596514822
(4) (Average of 7 Customer Reviews)
Head First C# is a complete learning experience for object-oriented programming, C#, and the Visual Studio IDE. Built for your brain, this book covers Visual C# 2008, Visual Studio 2008, and the .NET Framework 3.5, and teaches everything from language fundamentals to advanced topics including garbage collection, extension methods, and double-buffered animation. You'll also master C#'s hottest and newest syntax, LINQ, for querying your data in .NET collections, SQL databases, and more. By the time you're through, you'll be a proficient Visual C# programmer, designing and coding large-scale applications.
Full Description
Unlike other C# books, which just show you examples and expect you to just memorize them and move on, Head First C# gets you writing code from the beginning. You're given the tools you need, and then you're guided through fun and engaging programming projects. You'll build programs to play a card game, explore a house, and help lazy programmers manage their sick day excuses. But it's not all fun and games: you'll build business applications too, like a contact database and a program to help a party planner estimate her dinner parties. You'll build a dungeon role-playing game and a fully animated, colorful simulation of a beehive. And by the end of the book, you'll build a fast-paced, full-featured retro Invaders arcade game.
Make no mistake: by the time you're done with Head First C#, you'll be able to build full-scale, complex, and highly visual programs. And you'll have all of the C# tools you need to tackle almost any programming problem that comes your way.
Head First C# is built for your brain, using the revolutionary approach that was pioneered by the highly acclaimed and popular Head First series. You'll never get that bored, "eyes glazed over" feeling from Head First C#, because it guides you through one challenging project after another until, by the end of the book, you're a C# rock star!
Here's what you'll learn:
- Core C# programming concepts
- How to use the Visual Studio 2008 IDE to build, debug and run your programs
- Important .NET 3.5 features, including generic collections, Windows forms, GDI+ graphics, streams, serialization and more
- Using object oriented programming concepts to help you build well-designed programs
- How to build robust applications with good error handling
- The latest C# 3.0 features, including LINQ, object and collection initializers, automatic properties, extension methods and more
Throughout the book, you'll confront and conquer advanced C# concepts. Some of the most mysterious ideas are demystified and explained with clear examples: how Unicode works, events and delegates, references versus value types, the stack versus the heap, what's really going on with garbage collection, and more.
Thousands of readers have learned C# using this innovative book, including:
- Beginning programmers who want to learn programming from the ground up
- More advanced programmers who are proficient in another language (like Visual Basic, Java, SQL, FoxPro) and want to add C# to their toolbox
- Programmers who understand basic C# syntax, but are still looking to get a handle on how objects work
- Anyone who's tried to learn C#, but had to deal with books full of dull examples and nothing but boring console applications
- Lots of people who just want to learn how to build cool games!
Head First C# is built to work with any version of Visual Studio 2008, including the free express edition. (It can also can be used with any version of Visual Studio 2005.)
Featured customer reviews
Awesome book, April 24 2009





Unlike the individual who commented on the book being a "waste of money", i thought this book was very good for a person who wants to start learning C#. The person mentioned above (who's comment was titled "Waste of money") is either illiterate, needs glass, or has the IQ of a frog.
The book does what most other books don't.
It starts you off by telling you what to do to create a rolodex/phone book/contacts list type program. It explains a little bit of what's going on, but nothing in depth. The point of the exercise is to get the reader into the "meat" of programming, without having to read 300 or more pages on Variables, Loops, Conditionals, Objects, Methods, Functions, etc.
However, after that first chapter, you start down with the basics. What you learn there you can use to modify any of the projects that you've done in the entire book to make them better (i did, and i had never used C# in my life...i'm a Coldfusion developer for the web!).
The following chapters usually present you with a "we want you to create this..." problem, and it tells you what it wants each part of the program to do (this button should do this, this image should do this, etc). However, it tells you what it wants YOU to do...it doesn't tell you how to do all of it. That is taken from knowledge from previous chapters for the most part. However, if you flip to the next few pages, it starts to actually show you how to tackle the problem, all of it, and in depth at that.
An example is the second or third program you right. It's a small form with a button, a checkbox, and a label. You set the label's background color to red from the start (so it's defaulted to red when you run the program). You then make the program change the color of the label from red to blue, or blue to red, based on what it currently is...when you click the button. However if the checkbox isn't checked, you need to make a messagebox (messagebox.show) pop up to tell the user that the box wasn't checked, so the color changer isn't enabled. It's very simple, but shows you easily how to use conditionals.
A deeper example into that is with the color changing. You could do "if the background color is red, then change it to blue" and then another saying "if it's blue, change it to red". But the book (after showing you that), says "If the background color is blue, change it to red, otherwise, change it to blue". It's hard to realize this in words, but coding wise learning to combine conditional statements into smaller, compact form, makes for great "thinking" exercises, and helps keep your code uniform and lightweight. This is just one of the things that stood out to me that most people don't pick up on.
After you create that, it then starts getting into the basics (variables, loops, conditional statements, objects, functions, etc).
The applications you create are pretty fun to do as well, and even the little examples within the chapters are very good. It has many "pool puzzles" that are just downright migrain-inducing, but you aren't forced to do it. It's more a "logic test" for you, than anything else.
All in all, the book is VERY good for beginners. It challenges the way you think, and gives some very good examples of basic programs (you end up creating a horse-racing program, a "bank" style program, a small role-playing-game that is easily (and i mean EASILY) expandable into something larger, and a space-invaders game).
I highly recommend this book. This is what i use to "teach" to people that want to learn this language at my work place.
A Different Take, November 25 2008





I wouldn't say this book was a waste of money (particularly since I read it via Safari - but I have several other Head First books).
If anything, I find the Head First books too slow moving if you have some familiarity with the subject. However, I do know the teaching principles that are being used in the Head First series and admire them for that...
Waste Of Money, November 05 2008





I bought "Head First C#" because it was a "Brain-Friendly Guide", however it really is very CONFUSING. I am NOT new to programming, however the concepts are NOT explained very much and it is very confusing.
The book moves TOO FAST and leaves out detail of concepts, not spending much time on any one thing, it just briefly mentions most things and then moves on. I have had to re-read the material, to find out that I missed something important was briefly mentioned (usually only a word or two) and embedded deep into the text.
Besides the book NOT being detailed and being confusing, it seemed the book was written in a backwards format ? meaning that it would have you to type some code ? with little or no programming rules (of the code syntax). After typing in the code, it would mention some of the parts of the code syntax, however leaving other parts unmentioned. Several times, there was certain code that you typed in, but it would NOT mention that syntax until 50 ?70 pages later (maybe).
It seemed that the book really jumped into the middle of programming concepts without first starting with the BASICS of programming C# in the IDE (and it did not really even explain the IDE or the new revisions that it has since the older IDEs).
Maybe the book needs a rewrite, where it does not move so fast and it clearly explains the concepts before actually writing a program. It is OK to reiterate the syntax after you have typed it in, however it should first introduce the concept and a VALID code example (NOT just pseudo code ? but real code).
I have other Head First books, however "Head First C#" is the most confusing of the "Head First" books that I have. I have been programming in Visual Basic, I wanted to get into C#, so I bought "Head First C#" because I thought that it would explain things more clearly; however I was very disappointed at how confusing, un-detailed, lack of organization & lack of detail of programming concepts in C# that it has.
I am very disappointed in ?Head First C#?. I should have spent my $50 of a different book.
A very great book!, August 20 2008





I got this book because I wanted something easy to read and learn C#. My expectations were met. This book is very easy to follow. I feel the content is just as involved as the more wordy books but it leads you to the knowledge by practice rather then verbage.
This book is a 700+/- page workbook that will aid you in learning the language effectively. It is not a reference book - unless you want examples.
Examples and excersizes are presented similar to worksheets you would have had in elementary school, but the work is sophisticated enough for college entry. If you do all the excersizes you will be an efficient programmer in C#.
For those who are visual learners; for those who have the attention span of an average A.D.D. student in elementary (i.e. me); for those who need to learn C# yesterday this book is for you. It will keep you going until you get to the last page.
Enjoy!
Unique and the first, friendly book about C# for everything!!!, April 27 2008





Unique and the first, friendly book about C# for everything!!!
Head First C#, it?s a great book, I first see this friendly book, this is incredibly quality and value for all people. About this book, all people can speak only three words ? incredibly great job! When I firstly opened this book, I thinking ? it?s illustrated book for professional developers, hmm ? but when I read first chapter ? I know, this is only one good book at the world, seriously. I don?t know how people can learn C# from another book, I don?t know, I love this book, this is unique and very professional experience, first class!
At the fifteen chapters authors presented all developer techniques and programming core about C#, from create first, smart application in Visual Studio Express Edition to create professional and dynamic application with newest solution from NET Framework, for example author presented LINQ or new extenders for C# at 2008.
Andrew Stellman and Jennifer Greene prepare wonderful book for all people. If You decided to explore C# world, You must started Your travel with this book. You can quickly started create very useful and professional application in small time, and small work! All code techniques, tricks and method to delivery good experience for clients You find at this book. If You thinking about create commercial software, You should create this with Head First C# book, too.
About chapters, at the first chapter, authors inform You about possibilities to create good application with 10 minutes! Yes, it?s possible, with this book I create this application with this time, and It?s very easy. If You are thinking about build great program with really fast time, You must read this chapter. You find information why You should thinking about C#, how create new project, add useful interface and connect Your application with remote data, for example SQL Server and database techniques.
Next chapters, presented C# programming core with Visual Studio IDE. You can find info about programming method, language theory and practice example. Please thinking ? your code must have a sense Head First C# is not book what presented virtual tasks, and virtual applications, every sample, every method have a real-world solution and this is very useful learn method.
Sometimes chapters presented advanced topics, from encapsulation, to interfaces or abstract classes, but authors have a good idea to present advanced topics, and doing this with very funny words. With this You can better find road to be very professional C# developer!
This book is very different from other, but it?s good! This is complete learning for all people who?s go to C# way, smart chapters, funny texts, practice example , every it?s great job!
You must have this book, seriously.
Head First C# - Must have, March 20 2008





Like other Head First books this one really is a charm. Chapter 1 starts with the full power of C# and Visual Studio, it grabs your attention and just won't let go. After this initial chapter it's going into the depths of this language, every aspect of modern software engineering is learned through learnable and cognitive chapters, tasks and exercises.
Chapter 2 introduces the Visual Studio IDE including project/file structures, it decomposes sourcefiles and explains whats happening "under the hood". The language is introduced, step by step; variables, loops, namespaces, statements. From that chapter on things like full OOP, behaviour, events, LINQ, delegates etc. etc. are introduced.
Things I mostly learned with this book are LINQ, delegates, buffering/doublebuffering.
I would like to invite every C# programmer to buy this book, novice or advanced, it's a real supplement to your collection. All steps towards great software are mentioned.
Great book, November 26 2007





Great book to learn C# skills.
Media reviews
"Head First C# is absolutely the best introduction to the C# language for C# beginners...I have already expressed myself elsewhere on the Head First Series and my enthusiasm remains strong. And, I would like to remind the reader not to skip around in the text; rather, they should work methodically through the various steps and sections in order to benefit from this structured teaching style. Trust the authors; and, let the book work its magic on you. (What? No "Hello, World!" program?!)"
-- Will Wagers, C# Online
"As with any good teacher, this OReilly series attacks the material from a variety of angles. If you know it, or youre a quick learner, you can breeze right through. If youre like me, they try everything possible to make things comprehensible."
-- Dana Blankenhorn, Dana Blankenhorn & Paula Rooney, ZDNet.com
"The introduction to this particular book discusses how the series attempts to present the concepts and technical material in a way that is far more intellectually compelling and memorable than the approach currently taken by most books...Although the book will be of most value to newer programmers, experienced C# programmers will find topics of interest and perhaps even some language details and analysis that they have never previously encountered."
-- Michael J. Ross, Web Developer, with Greg Hanson, Slashdot.org
Read all reviews

- Index
- Sample Chapter
- View/Download Code
- Discussion Forum
- Head First C# Code Magnet Kit
- Register Your Book
- View/Submit Errata
- View/Submit Review
"Head First C# is absolutely the best introduction to the C# language for C# beginners."
--Will Wagers, C# Online
![]() ©2009, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly
Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
More O'Reilly Sites
O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone O'Reilly FYI makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |