Best of the "Elements of..." programming language style guides I have (along with C++ and Java, though all three are good). Collectively, the series does a nice job of consistently explaining those guidelines that do not depend on a particular language. Individually, each sets out workable style rules in clear language. In a few cases, the rule still requires a choice by the user/programmer, but the guidance at those points tends to include options and the advice that consistency is more important than which choice you make. (Example, does the "{" go at the end of a line, or on a line by itself? Book says, "pick one and stick with it" [or course, the latter is the correct choice 8-) ].)
You may not agree with 100% of the rules in this book, but a good test of your ability to be an effective team-member would be whether or not you could live with them all. Nothing proposed here should be intolerable to any C# programmer worthy of being part of a group effort. Indeed, most of what is proposed here looks to me, after being a programmer for over 40 years, like the right thing to do.
The Elements of C# Style 1st Edition
by
Kenneth Baldwin
(Author),
Andrew Gray
(Author),
Trevor Misfeldt
(Author)
&
0
more
| Kenneth Baldwin (Author) Find all the books, read about the author, and more. See search results for this author |
ISBN-13: 978-0521671590
ISBN-10: 0521671590
Why is ISBN important? ISBN
Scan an ISBN with your phone
Use the Amazon App to scan ISBNs and compare prices.
This bar-code number lets you verify that you're getting exactly the right version or edition of a book. The 13-digit and 10-digit formats both work.
Use the Amazon App to scan ISBNs and compare prices.
Add to book club
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Join or create book clubs
Choose books together
Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
In Stock.
Ships from and sold by Amazon.com.
More Buying Choices
The Elements of C# Style is for all C# practitioners, especially those working in teams where consistency is critical. Like previous Elements titles, the text furnishes a set of rules for writing clear, comprehensible and easy-to maintain code; this time for C#. The authors offer a collection of standards and guidelines for creating solid C# that can save time, effort and expense. The book provides conventions for:
- formatting
- naming
- documentation
- programming
- packaging
for C# 2.0 and includes discussion of advanced topics such as generics.
- formatting
- naming
- documentation
- programming
- packaging
for C# 2.0 and includes discussion of advanced topics such as generics.
Editorial Reviews
Review
'The Elements of Java Style is perfect in what it tries to achieve. Each rule is sensible, hardly any are debatable, and there is no excuse for ignoring any of them.' JavaZone Book of the Week
Book Description
A collection of standards and guidelines for creating solid C# code that will be easy to understand, enhance and maintain.
About the Author
Ken is currently President of CenterSpace Software, a developer of C# numerical libraries for the .NET platform. He has previously written documentation for C++ and Java class libraries for Rogue Wave Software, mathematical and statistical tools for MathSoft Inc., 3-D modeling and animation tools for Cubicomp, and semantic networks for Microsoft. He has also developed Web-based learning systems for Medlink and the Stanford University School of Education. Ken holds a PhD in Cognitive Science from the University of California, San Diego, and a BA in Linguistics from the University of California, Berkeley.
Andy was coauthor of The Elements of C++ Style. He is currently an Executive Partner with Evolution Software Design, focusing on .NET, Tablet PCs, and XML/Web Services. He co-hosts TabletDev (www.tabletdev.com), a resource site for the Tablet PC development community. He has many years of Windows development experience, working for IntelliChem, Rogue Wave Software, ACCEL Technologies, and Microsoft. He holds a MS degree in Computer Science from University of California, San Diego, and a BS degree in Computer Science from Harvey Mudd College.
Trevor is coauthor of The Elements of Java Style and The Elements of C++ Style. He has held programming positions for a variety of firms using C#, C++, Java, and other technologies. He is currently CEO of CenterSpace Software, a developer of C# numerical libraries for the .NET platform, and has worked previously for Rogue Wave Software, CleverSet Inc., and ProWorks. He holds a BSc in Computer Science from the University of British Columbia and a BA in Economics from the University of Western Ontario.
Andy was coauthor of The Elements of C++ Style. He is currently an Executive Partner with Evolution Software Design, focusing on .NET, Tablet PCs, and XML/Web Services. He co-hosts TabletDev (www.tabletdev.com), a resource site for the Tablet PC development community. He has many years of Windows development experience, working for IntelliChem, Rogue Wave Software, ACCEL Technologies, and Microsoft. He holds a MS degree in Computer Science from University of California, San Diego, and a BS degree in Computer Science from Harvey Mudd College.
Trevor is coauthor of The Elements of Java Style and The Elements of C++ Style. He has held programming positions for a variety of firms using C#, C++, Java, and other technologies. He is currently CEO of CenterSpace Software, a developer of C# numerical libraries for the .NET platform, and has worked previously for Rogue Wave Software, CleverSet Inc., and ProWorks. He holds a BSc in Computer Science from the University of British Columbia and a BA in Economics from the University of Western Ontario.
Tell the Publisher!
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Learn new cuisines with virtual cooking experiences
Amazon Explore Browse now
Product details
- Publisher : Cambridge University Press; 1st edition (July 31, 2006)
- Language : English
- Paperback : 156 pages
- ISBN-10 : 0521671590
- ISBN-13 : 978-0521671590
- Item Weight : 5.1 ounces
- Dimensions : 4.5 x 0.6 x 7 inches
- Best Sellers Rank: #3,142,486 in Books (See Top 100 in Books)
- #916 in C# Programming (Books)
- #2,073 in Object-Oriented Design
- #2,649 in Software Design & Engineering
- Customer Reviews:
About the author
Follow authors to get new release updates, plus improved recommendations.

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
4.1 out of 5 stars
4.1 out of 5
12 global ratings
How customer reviews and ratings work
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Reviewed in the United States on August 16, 2017
Reviewed in the United States on May 31, 2011
Clearly documented and concise. Follows industry best practices nicely. A good choice if you're looking for a standard style for your team.
It's so close to our internal style that I can use it as the standard with only a page or two of supplemental documentation.
It's so close to our internal style that I can use it as the standard with only a page or two of supplemental documentation.
One person found this helpful
Report abuse
Reviewed in the United States on August 17, 2014
A fine little book - many useful ideas for writing slid dependable c# code. Beginner to advanced can learn from this book.
One person found this helpful
Report abuse
Reviewed in the United States on January 15, 2007
If you are new to C# or are wanting to start writing cleaner, more efficient, more professional, and just plain smarter code, this is a must-read. These guys definitely know their stuff and give some excellent tips. It's light and quick-read, easy to pick up and read a bit during down times, short enough to power through in one sitting, and serves as a great reference. For the money, this is one of the best books I've bought in a long time.
9 people found this helpful
Report abuse
Reviewed in the United States on August 6, 2015
I've beein using C# for a long time and this didn't provide any insight.
One person found this helpful
Report abuse
Reviewed in the United States on December 26, 2011
I'm trying to become more of a productive programmer and code readability is an element to it.
So I searched through collection of programming book at my university library and found this one.
"The elements of C# Style" is short, concise and provides examples when needed. There is a summarized list of tips in the back of the book to act as a cheat-sheet.
Note that most of the tips can be used is most Object Oriented Programming languages, like Java.
But be aware that this book doesn't teach you C#, but rather it focuses on how C# code can be written in order to maximize its effectiveness.
In conclusion, I think this an excellent book for anyone trying to improve their code quality.
So I searched through collection of programming book at my university library and found this one.
"The elements of C# Style" is short, concise and provides examples when needed. There is a summarized list of tips in the back of the book to act as a cheat-sheet.
Note that most of the tips can be used is most Object Oriented Programming languages, like Java.
But be aware that this book doesn't teach you C#, but rather it focuses on how C# code can be written in order to maximize its effectiveness.
In conclusion, I think this an excellent book for anyone trying to improve their code quality.
Reviewed in the United States on October 3, 2008
If anyone ever told you that your code was ugly, then this book is for you. If you want the correct way to implement the IDisposable interface, or construct a singleton object in a multi-threaded environment, then this book is for you.
Many of the details outlined in this book, anyone who has been writing software, even for 6 months, will have a grasp on. There are a few thing that are interesting, but they are things that you would google for.
Many of the details outlined in this book, anyone who has been writing software, even for 6 months, will have a grasp on. There are a few thing that are interesting, but they are things that you would google for.
Reviewed in the United States on February 15, 2008
Some of this was review, some reminders, some teaching. Overall it is probably one of the best books I have ever invested in to improve my programming quality.
3 people found this helpful
Report abuse
Top reviews from other countries
John
5.0 out of 5 stars
Very good concise style book
Reviewed in the United Kingdom on August 12, 2013
As expected, this book is laid out in the same style as the elements of style book by Strunk and White. It offers a good set of rules that add uniformity to your code and is a really good base for coming up with your own or team style guide. I thought it might be a bit dated now, but no, it is still really relevant to newer versions of c#.
l3g0
5.0 out of 5 stars
Five Stars
Reviewed in the United Kingdom on November 2, 2015
Useful and easy suggestions for efficient and readable code
Dak
4.0 out of 5 stars
Worth reading, slightly dated
Reviewed in Canada on March 15, 2015
Very good. Not quite as good as Elements of Java style, largely as it hasn't been updated in some time, and the libraries/frameworks have moved along since the publication of this book. BUT worth reading as you are learning your n-th computer language.

