One way that I evaluate a new IDE is by opening a file in a fresh install and determining how much I can do with that file. Obviously features that need to know about the other files in the project won't work. I recently tried to use NetBeans and JDeveloper to generate getters and setters.
Here is a quick tip:
Do you have two anonymous inner classes that need to communicate? I had two anonymous inner classes that implemented
Runnable and needed to communicate with a
Would it be useful to be able to provide method return values for null objects?
For the List interface, the null return values might include:
get(int) : null
size() : 0
iterator() : An empty iterator
That would allow the following code that has less null checks:
Is there any downside or problem potential to changing the Java compiler to automatically cast? In the example below the result of
list.get(0) would automatically be casted to the type of the variable
I use Source Insight as my primary IDE.
Searching my code and other files outside my IDE is something that I need to do often but I haven't found a good solution.
Some of my co-workers had their cvs login name changed so we had the problem where every directory checked out from cvs had a CVS subdirectory with a
Root file in it that had the old username.
The code below actually prints "yikes!"
A pet peeve of mine is when a variable is declared way before it is needed. It is much easier to understand a piece of code if a variable is declared just before it is needed.
When the user drags an item to a location, slows movement, and then makes a quick movement right before finishing the drag, the user probably wanted the ending location to be the mouse location right before the quick movement. The user should be prompted for which target they want if the quick movement changed the target.