Raised This Month: $ Target: $400
 0% 

Several Easy Hl Coding Questions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 03-01-2006 , 13:04  
Reply With Quote #7

No... it won't...

Thats a really 'hard to see' identing style

I think my style is much better

---

Look at these two examples

Code:
if(bla == blah) {     for(int a = 0; a < max; a++)     {         for(int b = 0; a < max2; b++)         {             if(something == something)             {                 DoThis();             } else             {                 if(anotherthing == something)                 {                     DoThat();                 } else                 {                     DoTheOtherThing();                 }             }                 //Add a thing             AddThing(thing);         }             ResetThis(value)     } } else {     EscapeSomeData('@', 127); }

Code:
if(bla == blah)     {     for(int a = 0; a < max; a++)         {         for(int b = 0; a < max2; b++)             {             if(something == something)                 {                 DoThis();             } else                 {                 if(anotherthing == something)                     {                     DoThat();                 } else                     {                     DoTheOtherThing();                 }             }                 //Add a thing             AddThing(thing);         }             ResetThis(value)     } } else     {     EscapeSomeData('@', 127); }

You can immidiatly see what piece of code is in what loop with the first style.
You can't really see with the seconds style
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode