Skip to main content
1 of 2
ardent
  • 328
  • 1
  • 10

God Files versus Ravioli Code

Recently I asked a question about whether or not I should refactor my code. the responses I received were most definitely in the camp of going through with the refactoring due to the presence of a God File.

However, now I'm pushing towards what I fear is Ravioli code. I will have around 6-7 ".c" modules (which I find perfectly manageable), but I'm pushing in to having probably around 10~ ".h" headers.

I also still have about 8000 lines of code I need to parse through and refactor into their own parts and I'm not even sure how many more headers I'm going to need. I will probably be condensing and combining a few headers, but my question is:

What is worse from a software maintainability point of view, having ravioli code or averting ravioli code by potentially having smaller god headers? Is my problem inevitable due to the 12k+ lines of code? Or am I simply blowing the size of the system out of proportion?

ardent
  • 328
  • 1
  • 10