开发者

Where can I find best practices documentation for Java?

开发者 https://www.devze.com 2023-02-16 14:18 出处:网络
I would like to know where I can find best practices documentation for Java for: Coding standards Error management

I would like to know where I can find best practices documentation for Java for:

etc.


Effective Java, Second Edition

After that, you can look at specific books for specific areas (such as unit testing). There are a lot of ways to do things in Java, so unlike say .NET, there is often no obvious first approach to many common problems - there are competing frameworks.


Beside good documentation (which you have to read, understand and keep in mind) I recommend using some static code analyzer tools which will 'inform' you 'just in time' on your porject if you violate some rules. Have a look at:

  • PMD
  • FindBugs
  • Checkstyle

They all integrate to various IDEs and looking at their documentation (rule sets) is quite valuable.

But - they are just tools. You should always question their warnings - which in turn needs some experience.

0

精彩评论

暂无评论...
验证码 换一张
取 消