Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitting on several lines
Message
De
04/06/2013 03:36:24
 
 
À
03/06/2013 08:26:16
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01575403
Message ID:
01575557
Vues:
35
>Best practive, at least on this side, is to always have the return line to return one value and not execute some logic. Also, this syntax differs too much from other environments and we have structure in place to develop code in the same way. That is why, as you may have seen by now, that having a well understable code on multiple lines is preferred. I also really do not want anyone on the team to try to develop an entire app on one single line, sort of, but you get my point, which is something I have seen at several occasions, making everything so difficult to understand, so difficult to maintain and so difficult to evolve.

I went through the same steps myself (hungarian, if else endif, for, ...)

After learning from 'pro' JavaScript code, I realized that using JavaScript native features made code much simpler, thus readable and maintainable: less if (coercion), switch (cond ? value1: value2), for (iterators from JS frameworks)

Christof often mentions it, a different language often brings a different way of thinking, and developing.

Paradox!
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform