Lloyd Dupont wrote:
I haven't really programmed in ObjectiveC since a long time now.
But I have to work with my boss's source, developed on MacOSX all
in ObjectiveC.
Something puzzles me and I wonder if it's normal in
"ObjectiveC" (or C)..... (or if I'mjust unlucky ;-)
His files are very long (most of them over a few 10 of thousands
lines) and some methods are very long too (up to 1 to 2 or 3
thousands line. 1 thousands line is common, 3 is rare).
Now I wonder, is it "common practice" in ObjectiveC, or is it just
my boss?
I don't think its common practice in most programming languages.
One of the metrics used for program maintainability is length per
function. Higher length, less maintainable.
Take a look at the whole refactoring movement and most "good
programming practice" information out there. You'll see that
shorter is generally better and preferred.