Welcome Guest, Not a member yet? Register   Sign In
Helper files
#2

[eluser]mddd[/eluser]
Putting functions inside a class is good for separating them. You could have a math::rand function and also a sort::rand function, for instance.
But there is also a practical aspect to consider. It would be annoying to have to use every helper function in your view prefixed by its class.
I think the current situation is a good inbetween.


Messages In This Thread
Helper files - by El Forum - 04-20-2010, 06:14 AM
Helper files - by El Forum - 04-20-2010, 06:33 AM
Helper files - by El Forum - 04-21-2010, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB