psiko.scweek
psiko.scweek

Reputation: 85

Learn proper programming syles?

Where would one find information or just rather good ideas on what is considered proper programming ethics or methodology of how to format the code, comments, or even variable names so that it is easier to read the code at a later time?

Thanks!

Upvotes: 6

Views: 665

Answers (7)

Henric
Henric

Reputation: 1410

Clean Code is certainly a good book. Martin's Agile Principles, Patterns, and Practices in C# is my recommendation if you want a more .NET specific book.

Upvotes: 0

Journeyman Programmer
Journeyman Programmer

Reputation: 1366

Three books I consider essential for beginning OO programmers.

  1. "Refactoring: Improving the Design of Existing Code".

Although modern IDEs often support automatic refactor, this book is still useful. By knowing the reason (or code smell) behind a particular refacoring, you can strive to write the correct code the first time.

  1. "Pragmatic Programmer"

A wealth of best practices.

  1. "Design Pattern"

Most advanced book, but still useful.

Upvotes: 0

Fossmo
Fossmo

Reputation: 2892

Including Code Complete and Clean Code I would recommend you to read "The pragmatic programmer" and "Ship it!". The last books mentioned are not so much about how to format the code, comments, ect. but rather about best practices for developers and development.

Upvotes: 0

Amokrane Chentir
Amokrane Chentir

Reputation: 30385

For C++ I use the C++ google style guide

Upvotes: 1

Peter Perháč
Peter Perháč

Reputation: 20792

The absolute 'must-read' for you is Robert C. Martin's book Clean Code. Do give it a try. It makes some awesome points. I keep recommending to everyone ever since I bought it 6 months ago.

Edit

I thought reading my Amazon review could help :)

Upvotes: 8

Chris Andrews
Chris Andrews

Reputation: 1921

You're asking for Coding Standards, which are language specific.

For C# check out The IDesign C# Coding Standard (on the right-side of the screen in the middle of the page)

For .NET in general see Design Guidelines for Developing Class Libraries

For C++ check here

For Java see Sun's resource Code Conventions for the JavaTM Programming Language

Upvotes: 1

AnthonyWJones
AnthonyWJones

Reputation: 189495

The book Code Complete 2 is a timeless reference for good coding practice.

Upvotes: 13

Related Questions