Is it unclear to have a large utility file?

In my C project, I have a rather large utils.c file. It really is full of many utilities of all kinds. I feel a little naughty just picking up different different functions. For example, it has some utilities related to low-level elements, such as the lowercase () function, as well as some rather complex utilities, such as converting to / from different color formats.

My question is, is it really incomprehensible to have such a large utils.c with many different types of utilities in it? Should I split it into many different utility files? For example, graphics_utils.c etc. What do you think?

+5
source share
9 answers

, , , , , . ( , , ).

, - , , . , .

+6

(, , ..) , , .

+9

-utils, (graphics_utils), .

+6

. , , , unit test. ISO-8601 ginormous Java- , 5% , .

+3

, , , , -. , !

+2

, , , , . , , //, , .

+2

: , .. . , - , , , , , .

( ) , , 5-6 ( ).

+2

, . , ( ) (, StringExtensions, SqlDataReaderExtensions ..). , .

0

All Articles