Is it naughty to have a large utility file?

Posted by banister on Stack Overflow See other posts from Stack Overflow or by banister
Published on 2009-08-18T03:24:17Z Indexed on 2010/03/24 16:33 UTC
Read the original article Hit count: 411

In my C project I have quite a large utils.c file. It is really full of many utilities of different sorts. I feel a bit naughty just stuffing different miscellaneous functions in there. For example it has some utilities related to low level stuff such as a lowercase() function, and it also has some quite sophisticated utilities such as converting to/from different colour formats.

My question is, is it very naughty to have such a large utils.c with many different types of utilities in it? Should I break it up into many different kinds of utility files? Such as graphics_utils.c and so on What do you think?

© Stack Overflow or respective owner

Related posts about code-organization

Related posts about best-practices