Actionscript/Javascript ethic coding

JonZ

New member
I tried to look at many tutorials, and all tutors have their own way of coding ethic.

Some people code this way (curly braces):
Code:
function myFunction():void{
     //code
}
others this way:
Code:
function myFunction():void
{
      //code
}
Some will add underscores on variables, others don't. And many subtle things. I've yet to see a good website explaining some of the reasons and logic behind code structures, if it for aesthetic or weight wise.

I'd like to have some links if you know some.
 
Last edited:
Coding standards are for increasing readability of code. There are many different standards out there. The main point is to create consistency across all the code you write. There is no right or wrong way. You can even check out a few standards and pcik and choose parts that best work for you. Here's a Wiki link on coding standards that is informative:

http://en.wikipedia.org/wiki/Coding_standards

Try googling Javascript "Coding Standards" to find some examples for Javascript.
 
Back
Top