As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have been using Google CodePro Audit for java for few days now and i'm amazed in how much it helped me improve my code.
There are some rules which never crossed my mind and some that i don't really understand the consequences.
For instance, i always though that using utility methods were a good pratice. But there is a rule in there which states "Utility methods should be avoided except under certain circumstances" . Can anyone elaborate on that ?
Also, post your opinions in which are the MUST rules to follow using codePro.
Thank You.
Regards
Bruno
I think the reason for the warning is that utility methods take away from the Object Oriented nature of Java programming.
However, I don't think I've ever worked on a Java project that didn't have at least one utility class containing only public static methods.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to make a tool for creating FSM control circuit simulations. NB! not the ALU part.
Can anyone recommend a good Java API with as much functionality already available as possible? Itll basically be something like a graphical modelling language editor.
The user should be able to make and run stuff like this:
There are a number of Java libraries out there for visualizing graphs. Some that I hear mentioned a lot include:
JUNG
jGraph
GraphVis and Grappa
The following blog has a pretty extensive list of options with commentary and screenshots: http://s6ai.livejournal.com/33969.html
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does someone know if Guava or Java8 in the future will provide persistent collection-implementations inspired by more functional implementations as for instance in Clojure or Scala (providing snapshots, efficient modifications due to sharing of tree-structures and so on)?
With regards to Guava, there is a discussion on the project's discussion group here, which ends with the project lead (Kevin Bourrillion) stating his opinion that Guava would not be the correct library for persistent collections.
I don't believe there's anything like this scheduled for Java 8. A description of the plan for Java 8 here, which states the main features are Project Jigsaw, and Lambda. There will be other inclusions, but no mention of persistent collections.
Check out PCollections: http://code.google.com/p/pcollections/
I expect it's the closest to what you're looking for.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I know there are some differences between both of them, but suppossing that you already have a fully-operating Java environment for developing, testing and production, will you ever consider using Ruby MRI instead of JRuby? On top of that, I would also argue that you can inline Java, use Java datatypes and, most importantly, it almost always outperform Ruby. What do you think? Is there any reason why one should consider Ruby seriously when compared to JRuby?
It's all about choice. If JRuby makes more sense to you use it. Using MRI means you're using Ruby the way Matz has intended it.
This should also answer the question for Rubinius, Maglev and all other implementations. Each serves a different purpose and tries to cover all aspects of MRI. To achieve that they (all) use RubySpec to test the implementation against MRI.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Anybody knows a good book that can help me understand test driven programming and how it is done in jee6? Ive never really used that approach(or at least correctly). I am very curious abut this topic i would like to give it a try in my java web projects.
So if any good literature recommendation, please let me know.
You don't need a book for that, to my opinon. You need to know, how to create and run unit tests (for different programming languages and frameworks).
The idea of test driven development (TDD) is fairly simple:
read the requirements (no requirements -> no TDD)
write a test, that tests the requirements. The test will fail initially.
write code until the test passes (and don't write any extra stuff!)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Most google results for sample questions/problems for java, results in a link directing to mock certification questions. Does anyone know where can i find sample problems for practice ?
Thanks
codingbat has hundreds of Java practice problems. In addition to sheer numbers of problems, it's also great because it has a testing mechanism in place to check if your solution is correct.
They're mostly on the easy category, but it's still good for practice, and you can always challenge yourself by imposing your own restrictions, e.g. recursion when it's not demanded, regex-only instead of traditional string manipulation, "cheating" by using libraries, etc.
Project Euler is popular. There's not much point in being language-specific if your goal is general practice rather than testing detail knowledge.