Speed up your eclipse as a super fast IDE(beyondlinux.com) |
Speed up your eclipse as a super fast IDE(beyondlinux.com) |
I don't want to care about that, and shouldn't have to.
I remember though putting somewhat similar in my config file.
I use eclipse at work on a spinning disk and at home on an SSD, using the SSD makes an incredible difference.
IntelliJ Idea is much better. And now the community edition comes with capabilities for Android projects.
I recommend it instead of Eclipse.
So create a tmpfs and mount it under /usr/lib/jvm/java-6-sun
sudo mount -t tmpfs -o size=200M,nr_inodes=2k,mode=0775,noatime,nodiratime tmpfs /usr/lib/jvm/java-6-sun
cd /usr/lib/jvm/java-6-sun
cp -a /usr/lib/jvm/java-6-sun-${version}/* .
Done. Of course, if you have more than one jdk installed, update-alternatives may be necessaryIf it works or does not work on your machine, or any other smart way to speed up your eclipse, pls let me know.
Example: you can move a method to a new class in Java, and Eclipse will go through your entire project and find all references to that method and update them for you.
I guess it's the same reason C# and MS coders love Visual Studio so much.
That said, I try to avoid using Java, and generally stick to vim.
I'm not a power user of vim, but perhaps there are some kind of extensions for some of these things there?
You can either 1) run a headless eclipse with a vim front end, 2) use a headed eclipse and vim together, or 3) use a headed eclipse with gvim as an embedded editor.
Looks like it might be worth a try.
Obviously, there are work-arounds (like using clean APIs and libraries), but that's not always an option.
I use cscope for intelligent interaction with my code, vim as the primary editor/interface (keybindings for cscope are awesome..) and ddd in an 'always on top' window for building/debugging .. in comparison to my Eclipse (android) environment where I am also working, I think that an easy balance can be made if you use the 'apps as pipes' philosophy that a good vim experience requires ..
Eclipse turns java into a ctrl-space fest. People yell at java for being verbose and statically typed, but all this verbosity is what allows an IDE such as Eclipse to exist. Just press ctrl+space and the verbosity turns into clarity and speed for both the programmer and the IDE.
I have more than a million lines of codes behind me since I learned how to program, 4 years ago. That's 250 thousand lines of working code per year, and I didn't even code more than half-time in java, and I can't type faster than 40wpm. I'm not advocating quantity vs quality, just saying that quantity becomes a completely irrelevant measure when you use Eclipse & Java, and that's very refreshing; you can keep coding long, dumb, and not performance-critical code while you think about another more important/complex section of your project, participate to a meeting, discuss stuff on the phone - you just set sail and let Eclipse do the hard rowing for you.
As for refactoring - delete a class named MyClass with a doStuff() method in a project, create a new interface MyClass with a doStuff() method in another project and another package, add this project as a dependency to the first project, select the first project, press ctrl+shift+O, et voila, every file was fixed, and it simply works within a few seconds even if there are a thousand sources referencing that MyClass. I'm not sure if there's any language/IDE that allows that sort of fast & furious refactor, but do tell!
What are other great IDE/language combos?
What I'm really disappointed is abysmal quality of IDEs for dynamic languages (Python and JavaScript for example). I know that's because of the language design, but writing code in those languages after coming from Java/Eclipse or VS2010/C# feels like I'm crippled.
http://unity3d.com/support/documentation/ScriptReference/ind...
Jetbrains also have a (fairly) decent Ruby IDE as well. And also ok JS support in their software.
:g/\<sv\>/s//some_nicer_name/gRename is handy, and might even be the most often applied refactoring, but it's also the easiest to craft. Move Method, Pull Up, et al are useful and not as easy to craft.
Then there is the Move class refactoring, which, if integrated well with your source control system, is an almost magical time saver.