Timeline for Fundamental difference between a static class and namespaced functions
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 13, 2017 at 12:40 | history | edited | CommunityBot | replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/ | |
| May 17, 2016 at 16:59 | answer | added | lampyridae | timeline score: 2 | |
| May 17, 2016 at 15:29 | comment | added | Cerad | PHP namespaces have nothing to do with static functions. Your static HTML helper is fine especially since you are also using globals. If you ever want to migrate to more testable and easier to maintain code then you might start looking more into oop and dependency injection. | |
| May 17, 2016 at 14:17 | comment | added | Ixrec | In most languages I know, no difference whatsoever, which is why static methods should be fairly uncommon. But PHP isn't my best language. | |
| May 17, 2016 at 14:03 | history | asked | php_nub_qq | CC BY-SA 3.0 |