Re: Code File Size and readablity
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 03/07/04
- Next message: BarrieGray: "Re: .Net Codepage 850 problem with uppercase accented characters"
- Previous message: John Morrill: "Code File Size and readablity"
- In reply to: John Morrill: "Code File Size and readablity"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Code File Size and readablity"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 7 Mar 2004 19:24:42 -0000
John Morrill <anonymous@discussions.microsoft.com> wrote:
> I understand about large code files. With VS studio .Net I am
> learning new techniques about writing code.
>
> For example, I used to break up long sequences of code into separate
> functions or methods, even though these methods were not used else
> where. Now I use the #region.
I still don't think that's a good idea though - I believe it's
fundamentally a better idea to break up long methods into smaller ones,
which can more easily be unit tested and debugged.
Just being able to collapse long methods so they're not as obviously
long doesn't mean that long methods are a good idea, IMO.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: BarrieGray: "Re: .Net Codepage 850 problem with uppercase accented characters"
- Previous message: John Morrill: "Code File Size and readablity"
- In reply to: John Morrill: "Code File Size and readablity"
- Next in thread: Jay B. Harlow [MVP - Outlook]: "Re: Code File Size and readablity"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|