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.
Ok but I think that recommend to other readers (and maybe beginners) to use empty function is not a good thing.
empty
True, I've added a disclaimer in beginning of the article.
EDIT: And explained the potential pitfalls associated with these optimizations.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
Ok but I think that recommend to other readers (and maybe beginners) to use
emptyfunction is not a good thing.True, I've added a disclaimer in beginning of the article.
EDIT: And explained the potential pitfalls associated with these optimizations.