Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Code Conventions disappeared (where to find)

Tags:

java

Well, look here, please: Code Conventions for the Java Programming Language There is nothing to download or view there. I mean, if you try to download anything, you'll get this: "We're sorry, the page you requested was not found.". Could you help me find these conventions. I mean exactly these ones, not any other. These conventions are likely to be found somewhere on the Internet. I can't find, maybe you can. Thank you in advance.

like image 896
Michael Avatar asked Apr 03 '14 21:04

Michael


People also ask

How do I fix compile errors in Java?

If the brackets don't all match up, the result is a compile time error. The fix to this compile error is to add a leading round bracket after the println to make the error go away: int x = 10; System.

What are the two common errors of Java programming?

You misspelled a variable name, class name, or a keyword somewhere. Remember that Java is case sensitive. You are trying to access a variable or class which does not exist or can not be accessed. You forgot to import the right class.

Which of the following tools can be used for Java code formatting?

Jalopy is an open-source tool for reformatting Java source code released under a BSD licence. Jalopy can control: Brace placement. Whitespace usage.


1 Answers

The Internet Archive seems to have a version that was captured in its entirety on 22 Feb 2014. Note that the revision date of the document, as of now, is 20 Apr 1999.

Some of the conventions have been labeled obsolete or unhelpful. As Tomasz Nurkiewicz writes in the editorial preface of "Java Coding Conventions considered harmful":

You would expect this 20+ pages document to be the most complete, comprehensive and authoritative source of good practices, hints and tips with regards to the Java language. But once you start to read it, disappointment followed by frustration and anger increases. I would like to point out the most obvious mistakes, bad practices, poor and outdated advices given in this guide. In case you are a Java beginner, just forget about this tutorial and look for better and more up-to-date reference materials.

like image 197
Jeff Bowman Avatar answered Sep 21 '22 09:09

Jeff Bowman