Obviously the method to use to take code into segments in Delphi (managable code sizes, etc) that is units within Delphi, so I'm not really asking that.
But what I'm going to ask is this: How do you typically manage big projects? Or even a smaller one? Let's say I have a unit whose source file is getting too massive to handle on a human level and I want to split it up into two units and then make that available to any program that calls it? What's the best way to go about that in general?
And specifically with the strong typing exhibited in Delphi, how does someone handle that in a clear and concise way. Let's say the one big unit becomes two units, but there's a type definition there that would apply to both units. Is there an easier/cleaner way to resolve this other than making the type definitions into its own unit, using that unit in the two other units, and then requiring the use of both the main unit (we don't want to break programs too much if we don't have to), and the type unit?
But what I'm going to ask is this: How do you typically manage big projects? Or even a smaller one? Let's say I have a unit whose source file is getting too massive to handle on a human level and I want to split it up into two units and then make that available to any program that calls it? What's the best way to go about that in general?
And specifically with the strong typing exhibited in Delphi, how does someone handle that in a clear and concise way. Let's say the one big unit becomes two units, but there's a type definition there that would apply to both units. Is there an easier/cleaner way to resolve this other than making the type definitions into its own unit, using that unit in the two other units, and then requiring the use of both the main unit (we don't want to break programs too much if we don't have to), and the type unit?