   using global functions
  Hello,Is it considered good coding practice to use global functions?Like this:namespace Namespace{void SomeFunction( void );//other stuff};Or use a "static" class:namespace Namespace{class FunctionClass{public:static void SomeFunction ( void );};};Thanks,exorcist_bob   
  Objects are useful, but they're not the right way to go in every single situation.  If a function doesn't fit with your object heirarchy don't try to cram it in just because some random person said it was the better style.  It's up to you to decide whether a given function belongs on an object or on it's own.Having said that, making a class for no other reason than to stick a static function in it is dumb IMHO.  It adds complexity to no purpose.A third alternative would be to refactor your code to make the new function fit in more naturally.  Whether or not that's practical depends on a ton of factors that only you know though.   ;  Use whatever fits in best with the design. The only global that might be frowned upon in a design are global variables - since you're cluttering up the namespace for all variables by using global variables.   ;  Thanks a lot!   