Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide won't
Message
From
12/03/2014 13:51:46
 
 
To
12/03/2014 12:06:51
General information
Forum:
Javascript
Category:
JQueryUI
Title:
Miscellaneous
Thread ID:
01596038
Message ID:
01596324
Views:
38
we had coding hints to ALWAYS use braces, as the single line might not stay single forever ;-)
(and maintainance dev were expected to miss missing curly braces)

>
        static void SomeMethod()
>        {
>            for (int x = 0; x < 100; x++)
>            {
>                var sc = new SomeClass { Name = "Viv", Age = 22, IQ = 80 };
>            }
>        }
>
>-----
>I'd rather read this:
>
>
>        static void SomeMethod()
>        {
>            for (int x = 0; x < 100; x++)
>                var sc = new SomeClass { Name = "Viv", Age = 22, IQ = 80 };
>
>        }
>
>:-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform