Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-04-26 Thread cowwoc

Buhahaha.

I disagree (I believe that "smart" tabs is far superior to space-based 
indentation), but I don't care enough to debate it on this mailing list. 
We all know this point has been beaten to death for decades now.


On a side-note, in my experience checkstyle is a net loss on most 
projects. The cost/benefit of using it relatively high, with users 
having to suppress rules (usually due to bugs in checkstyle itself) 
quite often. Javascript frameworks (e.g. ESLint) are way ahead of Java 
on this point (I guess they have to be due to lack of strong typing).


Gili

On 2018-04-26 11:02 AM, Victor Williams Stafusa da Silva wrote:

Whatever is the convention adopted, I only implore one thing: Do not allow
tabs be the default setting!

By the way, a better integration with checkstyle would be welcome.

Victor Williams Stafusa da Silva

2018-04-26 11:32 GMT-03:00 Wade Chandler :


On Mar 16, 2018, at 6:46 AM, Emilian Bold 

wrote:

Rather than discussing the actual conventions, make sure the IDE can

read and apply settings from Eclipse easily and exactly.

Not sure what this means. Just make sure plugins are able to format the

code?

Still, NetBeans does provide formatting and coding hints. Both should

follow /something/ and I assume Wade was wondering what standard to follow.
Exactly, and too, what makes the most sense.


My angle is that NetBeans, just like Eclipse, *is* a de-facto standard.

I don’t necessarily agree this makes the most sense, but I understand your
point. I guess for me this comes up as a source of friction when working on
projects. Intellij is by far the most used with Eclipse next, and then us.
I think either choosing some agnostic, and well written standard, or using
a real de-facto, sort of like how Spring became one over JEE, being used
more, makes for less friction.

Perhaps the answer is to provide NBs historical one as it is our code
base, and use that one with our project (NetBeans itself). Then provide
some others which are largely popular such as IntelliJ, Eclipse, Google,
and “Old Sun Java” for users of the IDE to use out of the box. It doesn’t
seem likely teams are going to go, oh, yeah, the few NB IDE users
formatting options win out over everybody else, and too, other projects are
not likely to provide a format which is easy to just import without some
upfront setup on behalf of the NB users. Too, most places in my experience
don’t come up with their own formatting. They generally pick one which
exists and is published. Us providing common ones makes that even easier
for IDE users.

Thanks for the replies and feedback all. I think I’ll look at this area
soon to see what can be done.

Wade


===

Wade Chandler
e: cons...@wadechandler.com
t: @wadechandler
https://www.linkedin.com/in/wade-chandler


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists







-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-04-26 Thread Victor Williams Stafusa da Silva
Whatever is the convention adopted, I only implore one thing: Do not allow
tabs be the default setting!

By the way, a better integration with checkstyle would be welcome.

Victor Williams Stafusa da Silva

2018-04-26 11:32 GMT-03:00 Wade Chandler :

>
> > On Mar 16, 2018, at 6:46 AM, Emilian Bold 
> wrote:
> >
> >> Rather than discussing the actual conventions, make sure the IDE can
> read and apply settings from Eclipse easily and exactly.
> >
> > Not sure what this means. Just make sure plugins are able to format the
> code?
> >
> > Still, NetBeans does provide formatting and coding hints. Both should
> follow /something/ and I assume Wade was wondering what standard to follow.
> >
>
> Exactly, and too, what makes the most sense.
>
> > My angle is that NetBeans, just like Eclipse, *is* a de-facto standard.
>
> I don’t necessarily agree this makes the most sense, but I understand your
> point. I guess for me this comes up as a source of friction when working on
> projects. Intellij is by far the most used with Eclipse next, and then us.
> I think either choosing some agnostic, and well written standard, or using
> a real de-facto, sort of like how Spring became one over JEE, being used
> more, makes for less friction.
>
> Perhaps the answer is to provide NBs historical one as it is our code
> base, and use that one with our project (NetBeans itself). Then provide
> some others which are largely popular such as IntelliJ, Eclipse, Google,
> and “Old Sun Java” for users of the IDE to use out of the box. It doesn’t
> seem likely teams are going to go, oh, yeah, the few NB IDE users
> formatting options win out over everybody else, and too, other projects are
> not likely to provide a format which is easy to just import without some
> upfront setup on behalf of the NB users. Too, most places in my experience
> don’t come up with their own formatting. They generally pick one which
> exists and is published. Us providing common ones makes that even easier
> for IDE users.
>
> Thanks for the replies and feedback all. I think I’ll look at this area
> soon to see what can be done.
>
> Wade
>
>
> ===
>
> Wade Chandler
> e: cons...@wadechandler.com
> t: @wadechandler
> https://www.linkedin.com/in/wade-chandler
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-04-26 Thread Wade Chandler

> On Mar 16, 2018, at 6:46 AM, Emilian Bold  wrote:
> 
>> Rather than discussing the actual conventions, make sure the IDE can read 
>> and apply settings from Eclipse easily and exactly.
> 
> Not sure what this means. Just make sure plugins are able to format the code?
> 
> Still, NetBeans does provide formatting and coding hints. Both should follow 
> /something/ and I assume Wade was wondering what standard to follow.
> 

Exactly, and too, what makes the most sense.

> My angle is that NetBeans, just like Eclipse, *is* a de-facto standard. 

I don’t necessarily agree this makes the most sense, but I understand your 
point. I guess for me this comes up as a source of friction when working on 
projects. Intellij is by far the most used with Eclipse next, and then us. I 
think either choosing some agnostic, and well written standard, or using a real 
de-facto, sort of like how Spring became one over JEE, being used more, makes 
for less friction.

Perhaps the answer is to provide NBs historical one as it is our code base, and 
use that one with our project (NetBeans itself). Then provide some others which 
are largely popular such as IntelliJ, Eclipse, Google, and “Old Sun Java” for 
users of the IDE to use out of the box. It doesn’t seem likely teams are going 
to go, oh, yeah, the few NB IDE users formatting options win out over everybody 
else, and too, other projects are not likely to provide a format which is easy 
to just import without some upfront setup on behalf of the NB users. Too, most 
places in my experience don’t come up with their own formatting. They generally 
pick one which exists and is published. Us providing common ones makes that 
even easier for IDE users.

Thanks for the replies and feedback all. I think I’ll look at this area soon to 
see what can be done.

Wade


===

Wade Chandler
e: cons...@wadechandler.com
t: @wadechandler
https://www.linkedin.com/in/wade-chandler


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-16 Thread John Muczynski
Oooo ... nice.
  Thank you, Emilian

--
Johnny Muczynski
734-262-2045


On Fri, Mar 16, 2018 at 7:21 AM Emilian Bold 
wrote:

> > A format-on-save setting would be helpful.
>
> Tools -> Options -> Editor -> On Save
>
> ​--emi​
>
> ‐‐‐ Original Message ‐‐‐
>
> On 16 March 2018 1:02 PM, John Muczynski  wrote:
>
> > The product I'm working on at work is using NetBeans as the coding
> standard.
> >
> > Last year, I was able to apply the formatter on all the files in the
> project, and then commit.  That helped make diffs readable. A
> format-on-save setting would be helpful.
> >
> > On Mar 16, 2018 6:47 AM, "Emilian Bold" 
> wrote:
> >
> > > \> Rather than discussing the actual conventions, make sure the IDE
> can read and apply settings from Eclipse easily and exactly.
> > >
> > > Not sure what this means. Just make sure plugins are able to format
> the code?
> > >
> > > Still, NetBeans does provide formatting and coding hints. Both should
> follow /something/ and I assume Wade was wondering what standard to follow.
> > >
> > > My angle is that NetBeans, just like Eclipse, \*is\* a de-facto
> standard.
> > >
> > > --emi
> > >
> > > ‐‐‐ Original Message ‐‐‐
> > >
> > > On 16 March 2018 6:10 AM, Jaroslav Tulach 
> wrote:
> > >
> > > \> Here is my user comment.
> > >
> > > >
> > >
> > > \> My colleagues at OracleLabs integrated Eclipse formatter into our
> continuous build. As far as I know it is the only formatter that works in
> headless mode and is sort of standardized and a bit stable.
> > >
> > > >
> > >
> > > \> As it is annoying to always reformat from command line, I
> integrated Benny's excellent formatter
> http://plugins.netbeans.org/plugin/70382/eclipse-java-code-formatter-eclipse-neon-4-6-1a
> into our NetBeans projects.
> > >
> > > >
> > >
> > > \> Rather than discussing the actual conventions, make sure the IDE
> can read and apply settings from Eclipse easily and exactly.
> > >
> > > >
> > >
> > > \> My 2 Kč.
> > >
> > > >
> > >
> > > \> -jt
> > >
> > > >
> > >
> > > \> 14\\. 3. 2018 v 8:22, Emilian Bold emilian.b...@protonmail.ch:
> > >
> > > >
> > >
> > > > \> The coding conventions NetBeans follows and provides are "as-is".
> People that what to customize it have some options to toggle or could use
> 3rd party plugins.
> > >
> > > \> >
> > >
> > > > \> Particularly since there is no global Java standard I don't
> believe we should be looking for extra work for nothing. For reference, the
> Google Java Style Guide is rather good.
> > >
> > > \> >
> > >
> > > > \> Which standardised coding conventions do the Eclipse and IntelliJ
> IDEs follow?
> > >
> > > \> >
> > >
> > > > \> --emi
> > >
> > > \> >
> > >
> > > > \> ‐‐‐ Original Message ‐‐‐
> > >
> > > \> >
> > >
> > > > > \> On 12 March 2018 7:25 PM, Wade Chandler wadechand...@apache.org
> wrote:
> > >
> > > > \> >
> > >
> > > > > \> I noticed that Oracle has not maintained a convention for the
> Java language like other groups have for their ecosystems. This also has
> not materialized from OpenJDK:
> > >
> > > > \> >
> > >
> > > > > \> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> > >
> > > > \> >
> > >
> > > > > \> http://openjdk.java.net/guide/codeConventions.html
> http://openjdk.java.net/guide/codeConventions.html
> > >
> > > > \> >
> > >
> > > > > \> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> > >
> > > > \> >
> > >
> > > > > \> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> > >
> > > > \> >
> > >
> > > > > \> Contrast this to:
> > >
> > > > \> >
> > >
> > > > > \> https://www.python.org/dev/peps/pep-0008/
> https://www.python.org/dev/peps/pep-0008/
> > >
> > > > \> >
> > >
> > > > > \>
> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > >
> > > > \> >
> > >
> > > > > \> So, it just seems wrong to follow those links; the Java
> conventions were a great example for years. I think the Google ones seem
> reasonable myself unless we or others in the Java community take that up:
> > >
> > > > \> >
> > >
> > > > > \> https://google.github.io/styleguide/javaguide.html
> https://google.github.io/styleguide/javaguide.html
> > >
> > > > \> >
> > >
> > > > > \> Any thoughts or other information? Am I missing something?
> > >
> > > > \> >
> > >
> > > > > \> Thanks,
> > >
> > > > \> >
> > >
> > > > > \> Wade
> > >
> > > \> >
> > >
> > > > \> To unsubscribe, e-mail:
> dev-unsubscr...@netbeans.incubator.apache.org
> > >
> > > \> >
> > >
> > > > \> For additional commands, e-mail:
> dev-h...@netbeans.incubator.apache.org

Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-16 Thread Emilian Bold
> A format-on-save setting would be helpful.

Tools -> Options -> Editor -> On Save

​--emi​

‐‐‐ Original Message ‐‐‐

On 16 March 2018 1:02 PM, John Muczynski  wrote:

> The product I'm working on at work is using NetBeans as the coding standard. 
> 
> Last year, I was able to apply the formatter on all the files in the project, 
> and then commit.  That helped make diffs readable. A format-on-save setting 
> would be helpful.
> 
> On Mar 16, 2018 6:47 AM, "Emilian Bold"  wrote:
> 
> > \> Rather than discussing the actual conventions, make sure the IDE can 
> > read and apply settings from Eclipse easily and exactly.
> > 
> > Not sure what this means. Just make sure plugins are able to format the 
> > code?
> > 
> > Still, NetBeans does provide formatting and coding hints. Both should 
> > follow /something/ and I assume Wade was wondering what standard to follow.
> > 
> > My angle is that NetBeans, just like Eclipse, \*is\* a de-facto standard.
> > 
> > --emi
> > 
> > ‐‐‐ Original Message ‐‐‐
> > 
> > On 16 March 2018 6:10 AM, Jaroslav Tulach  
> > wrote:
> > 
> > \> Here is my user comment.
> > 
> > >
> > 
> > \> My colleagues at OracleLabs integrated Eclipse formatter into our 
> > continuous build. As far as I know it is the only formatter that works in 
> > headless mode and is sort of standardized and a bit stable.
> > 
> > >
> > 
> > \> As it is annoying to always reformat from command line, I integrated 
> > Benny's excellent formatter 
> > http://plugins.netbeans.org/plugin/70382/eclipse-java-code-formatter-eclipse-neon-4-6-1a
> >  into our NetBeans projects.
> > 
> > >
> > 
> > \> Rather than discussing the actual conventions, make sure the IDE can 
> > read and apply settings from Eclipse easily and exactly.
> > 
> > >
> > 
> > \> My 2 Kč.
> > 
> > >
> > 
> > \> -jt
> > 
> > >
> > 
> > \> 14\\. 3. 2018 v 8:22, Emilian Bold emilian.b...@protonmail.ch:
> > 
> > >
> > 
> > > \> The coding conventions NetBeans follows and provides are "as-is". 
> > > People that what to customize it have some options to toggle or could use 
> > > 3rd party plugins.
> > 
> > \> >
> > 
> > > \> Particularly since there is no global Java standard I don't believe we 
> > > should be looking for extra work for nothing. For reference, the Google 
> > > Java Style Guide is rather good.
> > 
> > \> >
> > 
> > > \> Which standardised coding conventions do the Eclipse and IntelliJ IDEs 
> > > follow?
> > 
> > \> >
> > 
> > > \> --emi
> > 
> > \> >
> > 
> > > \> ‐‐‐ Original Message ‐‐‐
> > 
> > \> >
> > 
> > > > \> On 12 March 2018 7:25 PM, Wade Chandler wadechand...@apache.org 
> > > > wrote:
> > 
> > > \> >
> > 
> > > > \> I noticed that Oracle has not maintained a convention for the Java 
> > > > language like other groups have for their ecosystems. This also has not 
> > > > materialized from OpenJDK:
> > 
> > > \> >
> > 
> > > > \> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 
> > > > http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> > 
> > > \> >
> > 
> > > > \> http://openjdk.java.net/guide/codeConventions.html 
> > > > http://openjdk.java.net/guide/codeConventions.html
> > 
> > > \> >
> > 
> > > > \> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules 
> > > > https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> > 
> > > \> >
> > 
> > > > \> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html 
> > > > http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> > 
> > > \> >
> > 
> > > > \> Contrast this to:
> > 
> > > \> >
> > 
> > > > \> https://www.python.org/dev/peps/pep-0008/ 
> > > > https://www.python.org/dev/peps/pep-0008/
> > 
> > > \> >
> > 
> > > > \> 
> > > > https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > > >  
> > > > https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > 
> > > \> >
> > 
> > > > \> So, it just seems wrong to follow those links; the Java conventions 
> > > > were a great example for years. I think the Google ones seem reasonable 
> > > > myself unless we or others in the Java community take that up:
> > 
> > > \> >
> > 
> > > > \> https://google.github.io/styleguide/javaguide.html 
> > > > https://google.github.io/styleguide/javaguide.html
> > 
> > > \> >
> > 
> > > > \> Any thoughts or other information? Am I missing something?
> > 
> > > \> >
> > 
> > > > \> Thanks,
> > 
> > > \> >
> > 
> > > > \> Wade
> > 
> > \> >
> > 
> > > \> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> > 
> > \> >
> > 
> > > \> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
> > 
> > \> >
> > 
> > > \> For further information about the NetBeans mailing lists, visit:
> > 
> > \> >
> > 
> > > \> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> > 
> > 

Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-16 Thread John Muczynski
The product I'm working on at work is using NetBeans as the coding
standard.

Last year, I was able to apply the formatter on all the files in the
project, and then commit.  That helped make diffs readable. A
format-on-save setting would be helpful.


On Mar 16, 2018 6:47 AM, "Emilian Bold"  wrote:

> Rather than discussing the actual conventions, make sure the IDE can read
and apply settings from Eclipse easily and exactly.

Not sure what this means. Just make sure plugins are able to format the
code?

Still, NetBeans does provide formatting and coding hints. Both should
follow /something/ and I assume Wade was wondering what standard to follow.

My angle is that NetBeans, just like Eclipse, *is* a de-facto standard.

--emi

‐‐‐ Original Message ‐‐‐

On 16 March 2018 6:10 AM, Jaroslav Tulach  wrote:

> Here is my user comment.
>
> My colleagues at OracleLabs integrated Eclipse formatter into our
continuous build. As far as I know it is the only formatter that works in
headless mode and is sort of standardized and a bit stable.
>
> As it is annoying to always reformat from command line, I integrated
Benny's excellent formatter http://plugins.netbeans.org/
plugin/70382/eclipse-java-code-formatter-eclipse-neon-4-6-1a into our
NetBeans projects.
>
> Rather than discussing the actual conventions, make sure the IDE can read
and apply settings from Eclipse easily and exactly.
>
> My 2 Kč.
>
> -jt
>
> 14\. 3. 2018 v 8:22, Emilian Bold emilian.b...@protonmail.ch:
>
> > The coding conventions NetBeans follows and provides are "as-is".
People that what to customize it have some options to toggle or could use
3rd party plugins.
> >
> > Particularly since there is no global Java standard I don't believe we
should be looking for extra work for nothing. For reference, the Google
Java Style Guide is rather good.
> >
> > Which standardised coding conventions do the Eclipse and IntelliJ IDEs
follow?
> >
> > --emi
> >
> > ‐‐‐ Original Message ‐‐‐
> >
> > > On 12 March 2018 7:25 PM, Wade Chandler wadechand...@apache.org wrote:
> > >
> > > I noticed that Oracle has not maintained a convention for the Java
language like other groups have for their ecosystems. This also has not
materialized from OpenJDK:
> > >
> > > http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> > >
> > > http://openjdk.java.net/guide/codeConventions.html
http://openjdk.java.net/guide/codeConventions.html
> > >
> > > https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> > >
> > > http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> > >
> > > Contrast this to:
> > >
> > > https://www.python.org/dev/peps/pep-0008/ https://www.python.org/dev/
peps/pep-0008/
> > >
> > > https://docs.microsoft.com/en-us/dotnet/csharp/programming-
guide/inside-a-program/coding-conventions https://docs.microsoft.com/en-
us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > >
> > > So, it just seems wrong to follow those links; the Java conventions
were a great example for years. I think the Google ones seem reasonable
myself unless we or others in the Java community take that up:
> > >
> > > https://google.github.io/styleguide/javaguide.html
https://google.github.io/styleguide/javaguide.html
> > >
> > > Any thoughts or other information? Am I missing something?
> > >
> > > Thanks,
> > >
> > > Wade
> >
> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> >
> > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> >
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-16 Thread Emilian Bold
> Rather than discussing the actual conventions, make sure the IDE can read and 
> apply settings from Eclipse easily and exactly.

Not sure what this means. Just make sure plugins are able to format the code?

Still, NetBeans does provide formatting and coding hints. Both should follow 
/something/ and I assume Wade was wondering what standard to follow.

My angle is that NetBeans, just like Eclipse, *is* a de-facto standard. 

--emi

‐‐‐ Original Message ‐‐‐

On 16 March 2018 6:10 AM, Jaroslav Tulach  wrote:

> Here is my user comment.
> 
> My colleagues at OracleLabs integrated Eclipse formatter into our continuous 
> build. As far as I know it is the only formatter that works in headless mode 
> and is sort of standardized and a bit stable.
> 
> As it is annoying to always reformat from command line, I integrated Benny's 
> excellent formatter 
> http://plugins.netbeans.org/plugin/70382/eclipse-java-code-formatter-eclipse-neon-4-6-1a
>  into our NetBeans projects.
> 
> Rather than discussing the actual conventions, make sure the IDE can read and 
> apply settings from Eclipse easily and exactly.
> 
> My 2 Kč.
> 
> -jt
> 
> 14\. 3. 2018 v 8:22, Emilian Bold emilian.b...@protonmail.ch:
> 
> > The coding conventions NetBeans follows and provides are "as-is". People 
> > that what to customize it have some options to toggle or could use 3rd 
> > party plugins.
> > 
> > Particularly since there is no global Java standard I don't believe we 
> > should be looking for extra work for nothing. For reference, the Google 
> > Java Style Guide is rather good.
> > 
> > Which standardised coding conventions do the Eclipse and IntelliJ IDEs 
> > follow?
> > 
> > --emi
> > 
> > ‐‐‐ Original Message ‐‐‐
> > 
> > > On 12 March 2018 7:25 PM, Wade Chandler wadechand...@apache.org wrote:
> > > 
> > > I noticed that Oracle has not maintained a convention for the Java 
> > > language like other groups have for their ecosystems. This also has not 
> > > materialized from OpenJDK:
> > > 
> > > http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 
> > > http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> > > 
> > > http://openjdk.java.net/guide/codeConventions.html 
> > > http://openjdk.java.net/guide/codeConventions.html
> > > 
> > > https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules 
> > > https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> > > 
> > > http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html 
> > > http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> > > 
> > > Contrast this to:
> > > 
> > > https://www.python.org/dev/peps/pep-0008/ 
> > > https://www.python.org/dev/peps/pep-0008/
> > > 
> > > https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > >  
> > > https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> > > 
> > > So, it just seems wrong to follow those links; the Java conventions were 
> > > a great example for years. I think the Google ones seem reasonable myself 
> > > unless we or others in the Java community take that up:
> > > 
> > > https://google.github.io/styleguide/javaguide.html 
> > > https://google.github.io/styleguide/javaguide.html
> > > 
> > > Any thoughts or other information? Am I missing something?
> > > 
> > > Thanks,
> > > 
> > > Wade
> > 
> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> > 
> > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
> > 
> > For further information about the NetBeans mailing lists, visit:
> > 
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-15 Thread Jaroslav Tulach
Here is my user comment.

My colleagues at OracleLabs integrated Eclipse formatter into our continuous 
build. As far as I know it is the only formatter that works in headless mode 
and is sort of standardized and a bit stable.

As it is annoying to always reformat from command line,  I integrated Benny's 
excellent formatter 
http://plugins.netbeans.org/plugin/70382/eclipse-java-code-formatter-eclipse-neon-4-6-1a
 into our NetBeans projects.

Rather than discussing the actual conventions, make sure the IDE can read and 
apply settings from Eclipse easily and exactly.

My 2 Kč.
-jt


14. 3. 2018 v 8:22, Emilian Bold :

> The coding conventions NetBeans follows and provides are "as-is". People that 
> what to customize it have some options to toggle or could use 3rd party 
> plugins.
> 
> Particularly since there is no global Java standard I don't believe we should 
> be looking for extra work for nothing. For reference, the Google Java Style 
> Guide is rather good.
> 
> Which standardised coding conventions do the Eclipse and IntelliJ IDEs follow?
> 
> --emi
> 
> ‐‐‐ Original Message ‐‐‐
> 
>> On 12 March 2018 7:25 PM, Wade Chandler  wrote:
>> 
>> I noticed that Oracle has not maintained a convention for the Java language 
>> like other groups have for their ecosystems. This also has not materialized 
>> from OpenJDK:
>> 
>> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 
>> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
>> 
>> http://openjdk.java.net/guide/codeConventions.html 
>> http://openjdk.java.net/guide/codeConventions.html
>> 
>> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules 
>> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
>> 
>> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html 
>> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
>> 
>> Contrast this to:
>> 
>> https://www.python.org/dev/peps/pep-0008/ 
>> https://www.python.org/dev/peps/pep-0008/
>> 
>> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
>>  
>> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
>> 
>> So, it just seems wrong to follow those links; the Java conventions were a 
>> great example for years. I think the Google ones seem reasonable myself 
>> unless we or others in the Java community take that up:
>> 
>> https://google.github.io/styleguide/javaguide.html 
>> https://google.github.io/styleguide/javaguide.html
>> 
>> Any thoughts or other information? Am I missing something?
>> 
>> Thanks,
>> 
>> Wade
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 
> 
> 


Re: What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-14 Thread Emilian Bold
The coding conventions NetBeans follows and provides are "as-is". People that 
what to customize it have some options to toggle or could use 3rd party plugins.

Particularly since there is no global Java standard I don't believe we should 
be looking for extra work for nothing. For reference, the Google Java Style 
Guide is rather good.

Which standardised coding conventions do the Eclipse and IntelliJ IDEs follow?

--emi

‐‐‐ Original Message ‐‐‐

On 12 March 2018 7:25 PM, Wade Chandler  wrote:

> I noticed that Oracle has not maintained a convention for the Java language 
> like other groups have for their ecosystems. This also has not materialized 
> from OpenJDK:
> 
> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 
> http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
> 
> http://openjdk.java.net/guide/codeConventions.html 
> http://openjdk.java.net/guide/codeConventions.html
> 
> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules 
> https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules
> 
> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html 
> http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html
> 
> Contrast this to:
> 
> https://www.python.org/dev/peps/pep-0008/ 
> https://www.python.org/dev/peps/pep-0008/
> 
> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
>  
> https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
> 
> So, it just seems wrong to follow those links; the Java conventions were a 
> great example for years. I think the Google ones seem reasonable myself 
> unless we or others in the Java community take that up:
> 
> https://google.github.io/styleguide/javaguide.html 
> https://google.github.io/styleguide/javaguide.html
> 
> Any thoughts or other information? Am I missing something?
> 
> Thanks,
> 
> Wade


-
To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org
For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





What Coding Conventions Should We Follow Now? What should the IDE default to?

2018-03-12 Thread Wade Chandler
I noticed that Oracle has not maintained a convention for the Java language 
like other groups have for their ecosystems. This also has not materialized 
from OpenJDK:
http://www.oracle.com/technetwork/java/codeconvtoc-136057.html 

http://openjdk.java.net/guide/codeConventions.html 

https://wiki.openjdk.java.net/display/OpenJFX/Code+Style+Rules 

http://cr.openjdk.java.net/~alundblad/styleguide/index-v6.html 


Contrast this to:
https://www.python.org/dev/peps/pep-0008/ 

https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
 


So, it just seems wrong to follow those links; the Java conventions were a 
great example for years. I think the Google ones seem reasonable myself unless 
we or others in the Java community take that up:
https://google.github.io/styleguide/javaguide.html 


Any thoughts or other information? Am I missing something?

Thanks,

Wade