<FONT face=Arial>There's something like 800+ language codes. Can you use singleton classes in asp.net? The program itself is an asp.net (not my choice, believe me) web service...</FONT>
L
laszlokovacks
@laszlokovacks
0
Reputation
2
Posts
23
Profile views
0
Followers
0
Following
Best posts made by laszlokovacks
This user hasn't posted anything yet.
Latest posts made by laszlokovacks
-
RE: Best practices...?
-
Best practices...?
<FONT face=Arial>Okay so I'm writing this program that validates data and then writes it to a database. In some situations, a language code (like "en","ru", etc) can be specified and needs to be validated. Does it make more sense to declare the language codes as a global array at the beginning of the program or to return the language codes as an array from a function? In the first solution, the array (of about 800+ elements) is always loaded into memory even if it doesn't get used. In the second solution the array is only loaded into memory when it's needed (which would be once or never per execution of the program). Am I even making sense?</FONT>
<FONT face=Arial>Thanks...</FONT>