• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing Admin/User/Public controllers to insure authentication

#13
@includebeer

"That is why constants were invented!"

Code will become less portable, other people will be forced to use your set of constants, they might have already invented their own set (if they use the same approach too). Second, it is useless work to document these constants. Also, you will think "this constant has a ugly name, let me deprecate it in favor of that one" - useless work.

Edit: I am writing about constants for directory locations, not for constants in general.
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by ivantcholakov - 01-02-2015, 11:17 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.