java double-buffering performance [closed] - java

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
What is better to use in java: a manually implemented double-buffering, or to use an already double-buffered swing component? Or is this without any difference?
Thank you.

It's unclear what you mean by "better" (or for that matter, the specifics of "manually implemented double-buffering"), but two major points:
It generally makes more sense to not reinvent wheels.
Don't optimize prematurely. Unless you are seeing performance that does not meet your requirements and have benchmarked and determined that your double-buffering implementation is the cause, then you should not be asking this question.

Related

Should use inbuilt libraries or define classes? [closed]

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 6 years ago.
Improve this question
what is recommended in competitive programming defining classes or using the java libraries?eg.stack or linked lists.Does performance of code depends on it?
Normally you don't need to write your own classes for saving and managing some objects in a list.
I recommend you not to invent the wheel again.
Except you do it for a learning purpose.
The problem with writing your own classes for critical operations is that you can't do it better than a team of some pretty smart heads. Neither do I.

Why are javadocs evil and what's a better alternative? [closed]

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.

Lynda or Treehouse? [closed]

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.

How to choose platform? [closed]

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.

Checking class's thread-safety in intellij Idea [closed]

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.

Categories