Coding conventions for core-libs-dev
Mario Torre
neugens.limasoftware at gmail.com
Sat Mar 31 17:16:20 UTC 2018
As a special exception, if you commit tomorrow, you can use CRLF ;)
Cheers,
Mario
On Sat 31. Mar 2018 at 17:30, <raffaello.giulietti at gmail.com> wrote:
> On 2018-03-31 16:51, Mario Torre wrote:
> > Yes, but please try to keep the 80 columns (as per the document Remi
> > suggested, unless it kills readability). It seems archaic, but not so
> > much when you review patches and read code on a mobile device. Lots of
> > people also like to keep their monitors in portrait mode, which means
> > less real estate for long lines, not talking about the fact that this
> > limit forces you to write more concise code!
> >
> > Cheers,
> > Mario
>
> Portrait orientation might invite writing longer methods and choosing
> shorter names, which is arguably even worse than long lines ;-)
>
> Anyway, while 80 chars/line is not my first choice I'll or course adhere
> to the guidelines mentioned by Rémi. BTW, does "80" include the ending LF?
>
>
>
> Raffaello
>
> >
> >
> > On Sat 31. Mar 2018 at 16:35, Remi Forax <forax at univ-mlv.fr
> > <mailto:forax at univ-mlv.fr>> wrote:
> >
> > http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> > is the closest you can find as an official coding convention for the
> > OpenJDK.
> >
> > Rémi
> >
> > ----- Mail original -----
> > > De: "raffaello giulietti" <raffaello.giulietti at gmail.com
> > <mailto:raffaello.giulietti at gmail.com>>
> > > À: "core-libs-dev" <core-libs-dev at openjdk.java.net
> > <mailto:core-libs-dev at openjdk.java.net>>
> > > Envoyé: Samedi 31 Mars 2018 16:24:53
> > > Objet: Coding conventions for core-libs-dev
> >
> > > Hi,
> > >
> > > are there any Java coding conventions to follow?
> > >
> > > I found very outdated guidelines at
> > >
> >
> http://www.oracle.com/technetwork/java/javase/documentation/codeconvtoc-136057.html
> > > with ab archaic line limitation of 80 or even 70 chars/line.
> > >
> > > Are there official, semi-official or suggested documents?
> > >
> > >
> > >
> > > Greetings
> > > Raffaello
> >
>
>
More information about the core-libs-dev
mailing list