Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum number of parameters in a method of a class
Message
De
22/10/2015 01:00:14
 
 
À
21/10/2015 22:18:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01626276
Message ID:
01626306
Vues:
62
>I've seen worse. I once inherited an application with a class that had 140 parameters to the constructor. Each parameter matched up with a column in the table. I refactored it all out and simply passed a DataRow. So much easier.
>
>
>>I agree... whoever developed that should be shot...

I think in some cases, the problem is that a person doesn't stop to think, "hey, could this be done in a different way?". Some people aren't even aware that you can pass a collection.

(And in partial fairness, sometimes the technologies in the past didn't support it, but certainly no excuse these days)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform