2007-01-23, 01:12 PM
2007-01-23, 07:35 PM
[Wiki: Coding_Standards] (Broken link, head over to docs.mybb.com instead)
Although this makes the files a bit smaller it's more readable like we have it now. We don't really need to make the php files and smaller as it's server side accessed, not sent to the user.
Although this makes the files a bit smaller it's more readable like we have it now. We don't really need to make the php files and smaller as it's server side accessed, not sent to the user.
2007-01-24, 04:01 AM
CraKteR Wrote:[Wiki: Coding_Standards] (Broken link, head over to docs.mybb.com instead)
Although this makes the files a bit smaller it's more readable like we have it now. We don't really need to make the php files and smaller as it's server side accessed, not sent to the user.
Thanks for pointing me to the Coding_Standards page. I had not read it before. For all but one of the proposed changes, I can understand the argument of readability. The remaining one is the function validate_email_format, for which I don't think the readability gets worse.
Roland
2007-01-24, 05:03 AM
Which has been changed for MyBB 1.4
2007-01-24, 09:33 PM
I think there are at least a thousand placed where you can use the ternary operator, but we've chosen not to use it (except for a few locations) to be consistent with all the other if/elses.
I'm not saying it's bad though. Personally I use it in my own coding
I'm not saying it's bad though. Personally I use it in my own coding