Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualwodinoneeye

Posted 13 July 2013 - 04:02 PM

 

a random variable doing...nothing on the 4th line?

 

Well to be fair I have hand-picked the worst from this code, and this is just a beginning of the method.

 

 

That is clear and concise compared to alot/much of code Ive worked on in my professional career

 

Add some blanks spacings and carriage returns and some alignment/indentation  of common statement elements and tnat would be clearer than most of the Microsoft code Ive seen

 

Ive seen alot of code in 'books' that are the opposite spaced out rediculously

 

Just do what I do and take a library like that and put it through a 'pretty' printer program I wrote that reorgamizes the code to my own style (or do it by hand - seriously it wont take that long and you would get a readthrough of the code giving you some understanding of what the lib actually does)

---

 

 

as for variable names most of those usages are very tight minimal in their function  (let hear after you start having 8 way nested loops)

 

Now if they start having object class  with dozens of attributes or more obscure usage of the variables (besides initialization loops)  then longer names are warranted.


#1wodinoneeye

Posted 13 July 2013 - 03:58 PM

 

a random variable doing...nothing on the 4th line?

 

Well to be fair I have hand-picked the worst from this code, and this is just a beginning of the method.

 

 

That is clear and concise compared to alot/much of code Ive worked on in my professional career

 

Add some blanks spacings and carriage returns and some alignment/indentation  of common statement elements and tnat would be clearer than most of the Microsoft code Ive seen

 

Ive seen alot of code in 'books' that are the opposite spaced out rediculously

 

Just do what I do and take a library like that and put it through a 'pretty' printer program I wrote that reorgamizes the code to my own style (or do it by hand - seriously it wont take that long and you would get a readthrough of the code giving you some understanding of what the lib actually does)


PARTNERS