Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property vs. Method
Message
De
14/10/2008 16:18:02
 
 
À
14/10/2008 16:02:38
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01354904
Message ID:
01354966
Vues:
22
>Agreed. However, how much do you value maintainability? Enough to sacrifice performance? I read once that using Regular Expressions was more expensive than rolling your own validation methods. I tested it and indeed it was, but having to maintain that much more code was the killer for me, so I went back to Regular Expressions.

If I had to choose between code in a method and a Regular Expression, I would almost *always* choose the code. Regular Expressions are just a bear to read, IMHO. Of course, then I have to say "it all depends", naturally. ;-)

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform