The IDE, Reloaded
Join the DZone community and get the full member experience.Join For Free
here is a very interesting take on the concept of integrated development environment . as opposed to traditional ide’s, which work at the same level as the java language itself (classes and packages), this ide, called code bubbles, allows you to work at a much finer granularity: methods, fragments of code and whatever you need for the resolution of a specific task. all these tasks are linked to each other in a workspace, thus allowing you to stay focused only on what is relevant for your current task.
of course, the concept is not new since it’s exactly what mylyn share is trying to achieve, but to be honest, every time i’ve tried to get into mylyn (and i tried several times over the past years), i ended up giving up in frustration. this is not to say that mylyn is a bad product, just that retrofitting such an idea on a traditional ide, no matter how flexible, is probably impossible.
still, i can’t shake this impression that it should be possible to mix both approaches, and considering the mindsharing that eclipse has, being able to offer an intuitive and lightweight add-on that would enable the kind of unit of work granularity that code bubbles enables could be very interesting.
and this thought led me to git, but i’ll need to make a digression first.
one of the strengths of git is its branching model: branches are so cheap that you find yourself branching all the time and then switching, merging and committing very often.
another interesting aspect of source control systems (not limited to git) is that the diffs that you are creating capture the unit of work that is relevant to you. and a git branch is actually very similar to a code bubbles workspace.
so how about an eclipse perspective that would be based on git branches?
the perspective wouldn’t just show the diffs, an information that is in itself not very interesting, but it would be a bit smarter than that and be able to infer that if you modified a couple of lines in the method init(), the that whole method should become a bubble in that perspective. intelligent linking between bubbles could also be provided by looking at the chronological order in which the methods have been edited: git would only know that you added two lines in the method init() and that you then renamed a field in the class foo, but the perspective would note that the two events are related since they followed each other, and it would reflect this by linking the bubbles.
Opinions expressed by DZone contributors are their own.