Best practice to maintain your code readability, etc. |
(07-10-2018, 11:24 PM)Pertti Wrote: >>> Another neat way to simplify code is to drop nested if-else statements and exit method as early as possible. As mentioned I prefer declaring a default $result and only returning a single $result. Each to their own PHP Code: //=================================== |
Messages In This Thread |
Best practice to maintain your code readability, etc. - by kaitenz - 07-10-2018, 01:28 AM
RE: Best practice to maintain your code readability, etc. - by php_rocs - 07-10-2018, 08:16 AM
RE: Best practice to maintain your code readability, etc. - by Pertti - 07-10-2018, 01:48 PM
RE: Best practice to maintain your code readability, etc. - by John_Betong - 07-10-2018, 05:21 PM
RE: Best practice to maintain your code readability, etc. - by John_Betong - 07-10-2018, 05:31 PM
RE: Best practice to maintain your code readability, etc. - by John_Betong - 07-10-2018, 06:23 PM
RE: Best practice to maintain your code readability, etc. - by kaitenz - 07-10-2018, 07:36 PM
RE: Best practice to maintain your code readability, etc. - by kaitenz - 07-10-2018, 07:45 PM
RE: Best practice to maintain your code readability, etc. - by Pertti - 07-10-2018, 11:24 PM
RE: Best practice to maintain your code readability, etc. - by John_Betong - 07-14-2018, 10:17 PM
|