Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

Declaring a static function in


I have written a getTempFile() function as part of a class in

I now need to access this function from another class.

Would this be better if I put it into a "tools"static class?

Friday, January 7, 2005

I wouldn't create a utilities class - it will end up with all sorts of unrelated functions (low cohesion)
Rather create a filesystem class and put it into a Utilities namespace.

Jon Spokes
Friday, January 7, 2005

O.K. I agree


Monday, January 10, 2005

Why would you create a class with all static functions instead of declaring the functions in a module? 

Russell Ryba
Sunday, January 16, 2005

*  Recent Topics

*  Fog Creek Home