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

#14
(01-02-2015, 11:17 PM)ivantcholakov Wrote: 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.

Less portable? A constant allows you to define a path and a filename in a single place. How can this be less portable than hard-coding everywhere?


Quote:Also, you will think "this constant has a ugly name, let me deprecate it in favor of that one" - useless work.

It's the same with everything: function, class name, configuration item...
Reply


Messages In This Thread
RE: Writing Admin/User/Public controllers to insure authentication - by includebeer - 01-03-2015, 10:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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