Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualFelix Ungman

Posted 18 April 2013 - 01:59 AM

(we all want to read code that looks exactly like our style I'm sure). 

 

Well, my approach is something like this:

1 - practice reading code in a lot of different styles and get comfortable with doing it

2 - practice *writing* code in a lot of different sales and get comfortable with doing it

3 - get to know and use the formatting tools of your IDE

4 - be consistent and follow style of the code that you are working with

 

Consistency is far more important that the particular style.

 

What style do you tend to use and like better?  What are you reasons you chose that specific style for curly braces?

 

The primary formatting tool is whitespace, and I personally prefer lots of whitespace and large monitors to compact code so curlys usually get the line to themselves.


#1Felix Ungman

Posted 18 April 2013 - 01:58 AM

(we all want to read code that looks exactly like our style I'm sure). 

 

Well, my approach is something like this:

1 - practice reading code in a lot of different styles and get comfortable with doing it

2 - practice *writing* code in a lot of different sales and get comfortable with doing it

3 - get to know and use the formatting tools of your IDE

4 - be consistent and follow style of the code that you are working with

 

Consistency is far more important that the particular style.

 

What style do you tend to use and like better?  What are you reasons you chose that specific style for curly braces?

 

The primary formatting tool is whitespace, and I personally prefer lots of whitespace and large monitors to compact code so curlys usually get a the line to themselves.


PARTNERS