Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I´m starting to use PMD and I really want to know which are the most important rules or the rules that anybody can´t miss when using this tool.
I´m looking for some article or page with a list of rules that must be used in PMD, this tool has a lot of rules and it's difficult to select only a few of them.
Thanks!
The answer to this question is both general and subjective. However, the sourceforge pmd site has a list of some pre-packaged rulesets:
http://pmd.sourceforge.net/pmd-5.0.5/rules/index.html
You should probably use at least the basic ruleset. Beyond that, it's up to what kind of project you are working on and which rules apply to it.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Hi i am new to java and facing difficulties in learning methods and their parameters , tell me the best way of memorizing all methods,interfaces names etc
Use an IDE. Code completion is a wonderful thing. In eclipse I love to type syso ctrl-space and watch System.out.println() magically appear. I love to hover my mouse over a method and have the java docs popup and tell me what it does and what it needs.
Use google. Use stackoverflow. Use github. Use your own code once you've written enough stuff.
Also realize those of us who've been coding for decades still have to look some of this stuff up. So you're not alone.
It also helps to use cheetsheets:
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I recently went for an interview and was requested to submit an example of my production code.
Submitted the code complete with javadocs, but was questioned by the interviewer about my choice of it.
I find javadocs quite useful for understanding code by others and it's really not that much of a legibility issue if I'm using an IDE. Can someone enlighten me on why it may not be recommended and what would be a better alternative in said situation?
Javadocs are not evil, and for Java it's the best you can do to properly document your code.
Being questioned does not mean automatically that what you've done is evil. Questions are mostly to test if you're sure in what you do and if you know more about it or you just made a guess.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am thinking about joining either Lynda or Treehouse to sharpen my coding skills. I was wondering (since they're both paid services) if anyone has any feedback or experience with either of the two. I am also open to new suggestions, too.
thanks
I would try to use as many freely available resources as possible first. Here is a list of free books.
https://stackoverflow.com/questions/194812/list-of-freely-available-programming-books
Also Coursera and other MOOC's can be a great resource.
Personally I've used Treehouse and it helped me somewhat but is too expensive in my opinion.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I just completed my post graduation and I know core java, advance java and oracle and little bit android, so to start my carrier i have option to choose java/.net platform. I am also interested to learn .net so which choice is better to learn .net or continue with just java platform? give me your suggestions.
Learning is always a good thing. There is no such thing as the one language to rule them all.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I heard that there is a possibility to check if the class is thread-safe.
Is it so? How to do that?
The question was HOW so here is the answer:
go to Settings->Inspections and there choose Threading issues and Concurrency annotation issues
I think you have to look at FindBugs project. It makes static analysis of code and possibly can find some concurrency problems. There is also plugin for intelliJ which can be integrated with this tool.