On Thu, May 30, 2013 at 9:22 PM, Goktug Gokdogan <[email protected]> wrote:
> We currently have a coding style guide for GWT-SDK here: > https://developers.google.com/web-toolkit/makinggwtbetter#codestyle > The guide has some enforcements like static/non-static + alphabetical > ordering. Alphabetical ordering is as good as no ordering in many cases and > these rules are already broken in many places. > > I propose following Guava and many other java libs and just enforce > logical ordering during code reviews (which is also internal recommendation > at Google). One good approach for logical order is to group related public > APIs and then slot in other methods and nested-classes to keep them close > to the related context. This usually helps to follow the code with less > jumps around the class. > > Anyway, I know this can quickly turn into a bikeshed discussion so please > try to resist the urge to oppose unless you have a big concern =) > I have worked in the GWT codebase for years, and in others that didn't have as strict style/order guidelines, and I have to say I *greatly* prefer working in the current code. Even with IDEs letting you find members more easily, I still really miss having ordered method names when I work in code that doesn't have it. -- John A. Tamplin -- http://groups.google.com/group/Google-Web-Toolkit-Contributors --- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
