Topic: htmLawed class (OOP code)
htmLawed is now available in OOP PHP code as a class. More here.
You are not logged in. Please login or register.
PHP Labware forum → htmLawed → htmLawed class (OOP code)
htmLawed is now available in OOP PHP code as a class. More here.
Moving to an htmLawed class would be an improvement, but I think there are lower-hanging fruit: Improve the code's readability: more meaningful var names, more comments, less dense syntax; remove the need for global vars (or at least store global state in statics inside global functions); use longer prefix on global functions, e.g. 'htmLawed_' instead of 'hl_'.
The nice thing is none of the above should affect performance, but even if it does, the long term maintainability would be worth it I think.
The OOP code is in addition to the non-OOP code. Regarding your advice on how the code is written, thanks, but no thanks! I find its compactness makes maintenance easier.
PHP Labware forum → htmLawed → htmLawed class (OOP code)