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 <fo...@univ-mlv.fr
> <mailto:fo...@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.giulie...@gmail.com
>     <mailto:raffaello.giulie...@gmail.com>>
>     > À: "core-libs-dev" <core-libs-dev@openjdk.java.net
>     <mailto:core-libs-dev@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
> 

Reply via email to