hardcoded constants in the source code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

hardcoded constants in the source code

user

Hi there! I'm starting to learn the sources of OfBiz. It looks promising for me as ecommerce framework.
What confuses me is the syle of referencing constants. For example, " _LAST_VIEW_NAME_" expression is referenced 114 times.
It means, every single time I forced to make the exact copy&paste of chosen constant.
Is that good way of writing code?