Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide won't
Message
De
12/03/2014 13:51:46
 
 
À
12/03/2014 12:06:51
Information générale
Forum:
Javascript
Catégorie:
JQueryUI
Titre:
Divers
Thread ID:
01596038
Message ID:
01596324
Vues:
43
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 };
>
>        }
>
>:-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform