Friday, July 22, 2011

Separate class for assets

In projects with many assets it is very handy to embed them in one (or few, but in the same package) class, so you can instantiate them everywhere in the project. The benefit of this is quite obvious - after making any change in your assets you just have to change one class, you don't have to search through the code to find place that is needed to be changed. Assume that