Style question : sort members ?
Ian Young
ian at iay.org.uk
Wed Feb 12 06:30:38 EST 2014
On 11 Feb 2014, at 20:04, Tom Zeller <tzeller at dragonacea.biz> wrote:
> I like to sort source code in Eclipse via :
>
> Source -> Sort Members... -> Sort All Members
Takes all kinds, I suppose. I'm probably with Scott on this one: the order I want to see things appear in as I scroll through the file depends on their purposes and relationships, not the alphabet. When looking at the whole file, in other words, the ordering represents some kind of narrative.
> Should that be a coding convention ? Opinions ?
I do not think that we should adopt this as a coding convention.
If you feel that alphabetical ordering helps you to navigate large files (and I sometimes find it helps me, particularly with code I'm not familiar with), you might try using the Outline pane in Eclipse and poking the "Sort" button there. This gives *exactly* the "Alphabetical, grouped by fields, constructors, methods" view you prefer, without imposing it within the file.
-- Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5943 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/dev/attachments/20140212/7e0d62f8/attachment.bin
More information about the dev
mailing list