helper functions as static functions or procedural functions?
Posted
by fayer
on Stack Overflow
See other posts from Stack Overflow
or by fayer
Published on 2010-05-03T09:54:07Z
Indexed on
2010/05/03
10:18 UTC
Read the original article
Hit count: 603
programming
i wonder if one should create a helper function in a class as a static function or just have it declared as a procedural function?
i tend to think that a static helper function is the right way to go cause then i can see what kind of helper function it is eg. Database::connect(), File::create().
what is best practice?
© Stack Overflow or respective owner