Re: VS.NET-style code outlining?
Re: VS.NET-style code outlining?
- Subject: Re: VS.NET-style code outlining?
- From: Jeff Biggus <email@hidden>
- Date: Tue, 24 Feb 2004 16:46:26 -0600
On Feb 24, 2004, at 1:58 PM, Erik Hanson wrote:
If a block of code can be collapsed and replaced with a comment, why
not extract it into its own method? That would not only make the code
easier to read, it would increase the chance of reuse and probably
improve the structure of the code. I'd like to see Xcode development
time spent on extracting the method for me rather than collapsing the
code.
This is a different issue. Within any method, there are blocks of code
which the programmer is simply not interested in examining at that
moment and it would be nice to have it collapsable. Making a new method
for each block that I simply am not currently examining would lead to
bad software design, which hopefully you're not suggesting. For
example, often in code optimization one will make a method longer, not
shorter or breaking it up into more sub-methods (as when one unrolls a
loop, etc).
The suggestion for code collapse changes no code, it's just an IDE
convenience. It would be, possibly, just between any set of braces,
which would probably most often mean collapsing a whole method, or a
longish if-then clause. It's simply a nice alternative to scrolling up
and down or using the pull-down menu to jump from method to method. It
would be nice to have again, as Project Builder once had it.
-Jeff
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.