Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learn proper programming syles?

Tags:

coding-style

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!

like image 826
psiko.scweek Avatar asked Apr 24 '09 21:04

psiko.scweek


4 Answers

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

like image 170
AnthonyWJones Avatar answered Oct 05 '22 08:10

AnthonyWJones


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 :)

like image 42
Peter Perháč Avatar answered Oct 05 '22 08:10

Peter Perháč


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

like image 37
Chris Andrews Avatar answered Oct 05 '22 06:10

Chris Andrews


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

like image 25
Amokrane Chentir Avatar answered Oct 05 '22 07:10

Amokrane Chentir