DEV Community

Discussion on: 3 tips for performant PHP code

Collapse
 
siimsoni profile image
Kristjan Siimson

Well, it is your job as a programmer to know when you use which language feature. You can't argue that a function is bad because you can use it incorrectly.

Collapse
 
klnjmm profile image
Jimmy Klein

Ok but I think that recommend to other readers (and maybe beginners) to use empty function is not a good thing.

Thread Thread
 
siimsoni profile image
Kristjan Siimson • Edited

True, I've added a disclaimer in beginning of the article.

EDIT: And explained the potential pitfalls associated with these optimizations.