Re: Code File Size and readablity

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 03/07/04


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


Relevant Pages

  • Re: Relational-to-OOP Tax
    ... Tightly coupled big balls of mud are an indicator of poor quality ... Software engineering is about applying the optimal techniques ... It does when you are consider staffing and learning curves. ...
    (comp.object)
  • Re: Learning embedded systems
    ... > have stopped looking at all the new techniques, ... > robust enough for the sort of High Integrity Distributed Embedded Control ... learning every new technology thing that comes out. ... > designs that I can put together almost Lego-like to accomplish any of the ...
    (comp.arch.embedded)
  • CFP: AAAI-06 workshop on Learning for Search
    ... The AAAI-06 Workshop on Learning for Search ... Heuristic search is among the most widely used techniques in AI. ... Due to a request by AAAI to accept submissions until after the notification ...
    (comp.specification.z)
  • Re: Working sound for movie production
    ... still always interested in learning any new tricks. ... person only just learning about recording. ... It's a whole different world from the studio. ... pressure.You need to be able to troubleshoot gear failures quickly, ...
    (rec.arts.movies.production.sound)
  • Re: Pictures of hand placements?
    ... > strong forearms, and I never collar. ... > The pictures and techniques in books are a good start, ... I appreciate your opinion, but I am a bit slow on the learning scale these ... I have decided to spend 3-4 days a week in the studio now, ...
    (rec.crafts.pottery)