A few days ago, someone has asked what Spring .Net framework does. Well, I can refer him to read some papers about dependency injection, something like this. But in a simple way, it initializes objects in xml files rather than in source codes. We call mutators in xml files. In the way, we can change values of objects in xml files. That does not require to require the source codes again.
Visit : Spring .Net Framework
In .Net 2.0, they introduced Generic Collections. You are able to put a type of object in an array list. For example , ArrayList <Cat> list = new ArrayList <Cat> In this list, all of objects are the instances of Cat Object. We do not need to casting the item and type safe in this list. But in the past time, I like to put a mixture of object types in an array list. Loop out each item and check its type. I used that a lot, when I parse the object from database and do some data mining tools.(Well, I did it in my spare time, of couse , not at work).I think this is a time to change this habit. This is a kind of hack.
Yesterday, I am writing some PHP codes for myself.
I am woundering which way PHP will go.
PHP got some OOP features.
But PHP is very good at scripting.
If I have somethings need to be done in very quick manner, I must choose PHP.
OOP or Scripting?