static-data

Advise regarding static data in an application and testing

I am working on a pretty typical asp.net web site and using sql server 2005 as database. I have created a Model dll holding the applications typical business logic. The application is dependent of some static data which is stored in the db in lack of a better persistent storage, but since the application is dependent of this data in ord...

Static data on iphone c++

I have data for countries which include Name, Population, Area etc for countries... What is the best way to store them, I was thinking of static arrays in header files ...? I am using c++ primarily for some game on iPhone Should I consider other options like sqlite, plists, dictionaries ....? ...

Using static variable in function vs passing variable from caller

I have a function which spawns various types of threads, one of the thread types needs to be spawned every x seconds. I currently have it like this: bool isTime( Time t ) { return t >= now(); } void spawner() { Time t = now(); while( 1 ) { if( isTime( t ) )//is time is called in more than one place in the real...

How will you fetch static data in your windows form application?

What's your approach to fetch static data in your windows form application? My approach is to load an arrayList with data when the user logs in. Then reuse this arraylist which will save round trips to the database. This means if you add something to static data, (a rare occasion), you will have to exit your windows forms application a...