Using the Ruby Dev-Tools plug-in for Eclipse 108
An anonymous reader writes "IBM Developerworks is running an article that introduces using the Ruby Development Tools (RDT) plug-in for Eclipse, which allows Eclipse to become a first-rate Ruby development environment. Ruby developers who want to learn how to use the rich infrastructure of the Eclipse community to support their language will benefit, as will Java developers who are interested in using Ruby."
What doesn't Eclipse do? (Score:3, Funny)
I think there is a plug in that should scratch just about any itch. Nice.
Re:What doesn't Eclipse do? (Score:5, Informative)
Indeed, the Python [sourceforge.net] and Perl [sourceforge.net] plugins are both very nice and from the look of it more featureful than the Ruby plugin at the moment (though I expect it's only a short matter of time before that evens out). I think its more a matter of what languages aren't currently covered? There are apparently plugins for Eiffel [sourceforge.net] and Haskell and Ocaml [sourceforge.net] and SPARK [sri.com] and Scheme [eclipse-plugins.info] (though I can't vouch for quality on any of those) and pretty much anything else you can imagine (given that those were random searches on my part).
Jedidiah.
Re:What doesn't Eclipse do? (Score:1)
Re:What doesn't Eclipse do? (Score:2)
Jedidiah.
Re:What doesn't Eclipse do? (Score:2)
As for non-supported languages, I haven't seen a plugin for occam or occam-pi yet...
Re:What doesn't Eclipse do? (Score:3, Interesting)
It's starting to seem like everyone and their brother that's doing a C/C++ IDE is standardizing on CDT. If the trend continues, perhaps one day we will unseat Visual Studio as king of the heap, although there is a long way to go still.
The most important thing I can say, regardless of your language
Re:What doesn't Eclipse do? (Score:3, Interesting)
Re:What doesn't Eclipse do? (Score:1, Interesting)
mcedit supports it (shift-f3)
ultraedit supports it (alt-c)
vim supoprts it (through some odd macro based extension)
emacs supports it (obviously)
now, not all have as nice of a support as ultraedit (my fave editor), but eclipse lacks this *BADLY*.
Re:What doesn't Eclipse do? (Score:3, Informative)
No, it doesn't. This is currently provided by the Lunar Eclipse [sourceforge.net] project, which publishes a few Eclipse plugins. Specifically, look at the rectangle copy/cut/paste/edit operations in the Editor Enhancements plugin created by that project. (Note: the Emacs-style Alt-/ completion mentioned on these pages was integrated as a part of Eclipse itself.)
Also, Eclipse has a useful stock feature which covers one use case for rectangular edits: block indent
Re:What doesn't Eclipse do? (Score:1)
That's not really block selection though, is it? Block selection is drawing a selection rectangle on the text and then being able to directly edit that block by typing or pasting some text. The Lunar Eclipse plugin doesn't get you a selection block on the screen that makes it obvious what you're selecting. It also doesn't let you directly edit the (unseen) block. You have
Re:What doesn't Eclipse do? (Score:2)
Isn't this just C-V? Seems to work for me in stock Vim. Not really on topic, I guess. Sue me :(.
Re:What doesn't Eclipse do? (Score:2)
The emacs developers are also hard at work on a complimentary cross plugin too I hear.
Re:What doesn't Eclipse do? (Score:2)
I think I'm going to need a bigger boat^W^Wmore memory.
Re:What doesn't Eclipse do? (Score:5, Insightful)
From vi, to emacs, to eclipse (ratios of memory usage in each generation maintained!)
I actually do not like the eclipse editor component as much as emacs. Ideally, I'd want the GUI-esque browsing/completion/etc of eclipse with the emacs editor. (There have been attempts at this, but none of them feel "right")
It's also harder to write ad-hoc extensions to an eclipse plugin, which is one large benefit emacs has over it.
df
Re:What doesn't Eclipse do? (Score:2)
How true!
It's also harder to write ad-hoc extensions to an eclipse plugin, which is one large benefit emacs has over it.
Hmmm... maybe we need a Elisp plugin ;-)
Re:What doesn't Eclipse do? (Score:2)
If anyone's interested, I'm wanting to write one. I've got the Java skills, but I don't have the Eclipse-plugin-writing skills. Let me know if you can help out.
Dlugar
Re:What doesn't Eclipse do? (Score:3, Funny)
Dmaien
Re:What doesn't Eclipse do? (Score:2)
the shortcuts that Vi uses are superior for me, and Eclipse (being the best Java IDE for me) I'd like to see Eclipse use Vi keyboard commands through a plugin.
Anyone have a free plugin for that?
Re:What doesn't Eclipse do? (Score:1)
There hasn't been a reliable SCP plugin for 3.x, only for 2.x days. Where did it go?
Re:What doesn't Eclipse do? (Score:1)
At our shop we us Eclpse to code in Java, PHP, C, C++ and Nulsoft Installation Scripts. This only leaves one language where we have to use note pad or TextPad. VBScript
If anyone knows of a VBScript plugin for Eclipse please pipe up and make a crappy job (coding in VBScript) a bit less crapy.
Re:What doesn't Eclipse do? (Score:2)
Eclipse.. the open-source massage chair...
RadRails (Score:5, Informative)
Re:RadRails (Score:4, Interesting)
RadRails is great, but the setup is a bit of a pain in the butt. I have to tell it where Ruby is, for instance... something it doesn't even need to know. It could just run "ruby" and let the path take care of it.
But anyway, any steps towards autocompletion and automated code refactoring for Ruby are fine by me. And moving into an IDE which is capable of these things is a step. :-)
Gaining Popularity (Score:1)
Radrails (Score:5, Informative)
Uses RDT plus others, and a nice, clean install.
RDT is good, but... (Score:5, Interesting)
I do most of my development in Java, so I mostly use IntelliJ (best Java IDE, IMHO). However, I also really like Eclipse because in one IDE you can code in Java, C++, Ruby, Python, etc.
Re:RDT is good, but... (Score:2)
Re:RDT is good, but... (Score:2, Funny)
Re:RDT is good, but... (Score:2)
Re:RDT is good, but... (Score:2, Interesting)
Re:RDT is good, but... (Score:1)
My biggest gripe (and it is hardly a valid gripe) is that KDevelop moves to quickly. I do think the current version is quite stable tho.
I would welcome a comarison of the two by someone who has spent considerable time with both.
Thanks
Re:RDT is good, but... (Score:1)
I haven't tried Eclipse, but KDevelop 3.2.x includes the following ruby features:
Comparing features with RDT - it doesn't have a unit test front end, or an ri graphic front end yet. Apart from that they are pretty much equivalent as far as I can see.
Re:RDT is good, but... (Score:2)
IPython does autocompletion for Python methods and attributes on the command line.
Re:RDT is good, but... (Score:1)
IPython is not the first to do this either. PythonWin for example has had auto-complete for ages in it's internal interpreter.
Ruby..... (Score:5, Insightful)
And Eclipse? simply the best development IDE available IMHO...... And all of that in only a few thousand lines of code.....
Re:Ruby..... (Score:1)
But, that being said, I really like Eclipse and use it for my Java coding. Maybe I'll gi
Re:Ruby..... (Score:4, Informative)
Once you learn it, you'll find that it is very consistent throughout development. You don't need to worry about certain syntax not working in certain situations, etc. Language consistency is the main reason I use Ruby. If I don't know it, I can guess and be right 95% of the time. It's almost creepy.
That said, I'd have to imagine that closures are the main issue you have with Ruby's syntax, since that's really the only part of Ruby's syntax that differs from other scripting languages.
e.g.
1.upto(5) do |number|
puts number
end
1
2
3
4
5
Just know that closures are incredibly powerful and can be used to simplify a great deal of things. Don't let the use of |s turn you away.
Re:Ruby..... (Score:2)
I totally agree. That, the clear documentation, and the familiar API (somewhat consistent with Java) are the three things that enabled me to learn it so fast.
I have a rule I use when learning a new language
Re:Ruby..... (Score:2)
puts number
end
1
2
3
4
5
"
This is not an example of a closure, but an example of a block. Of course this is compounded by the fact that closures are enabled by blocks. You probably don't need to worry about closures in order to pick up Ruby, but if you don't know what they are, they are well worth learning. The C equavalent to this particular code is a for loop:
int i;
for (i = 1; i =5; ++i) {
printf("%s", i)
}
Re:Ruby..... (Score:1)
Re:Ruby..... (Score:4, Insightful)
Re:Ruby..... (Score:2)
Heh... As someone with Python background, I definitely find Ruby syntax very quirky. My theory is that most Ruby users are people who started out with Perl and would never learn Python "because of the whitespace issue" (in truth they just didn't have a need, the time or what it takes to break old habits). Then as Python started becoming more and more popular, it became more and more difficult to adm
Re:Ruby..... (Score:2)
Re:Ruby..... (Score:4, Interesting)
I'm currently giving Ruby a shot implementing a little project and so far I find it ok but the syntax in Python or Java definitely seem cleaner. Having to use punctuation to help the compiler|interpreter figure out scope (think @'s in front of variables for object vars) is just plain lazyness on the part of the authors.
The last thing I'm having trouble getting over is the dynamic nature of the languages. Static typing seems to be such a nice warm cozy safety blanket that it is hard to give up. I see where it can be powerful and useful and allow you to take many shortcuts. In fact much of Rails would be impossible without the dyanamic typing and openness of the class structure, but I miss the static class definitions when working with my model objects. It gives me a weird feeling to have to look at the tables themselves so I can figure out what the attributes on my obects are. Yes I know DRY...
It'll be an interesting next few years to say the least. Maybe Ruby will be the next big thing or maybe something else will. I for one would like to see a revamped Python that took the things they did right and fixed the things they did wrong. Perl 6 anyone?
Re:Ruby..... (Score:3, Interesting)
Among other, indentation, always document, short code modules, and best of all DO NOT EMBED CODE IN WEB TEMPLATES!
Take a look at ZPT (and possibly Kid) if you need to understand why you shouldn't do that. (they succesfully survive round tripping through HTML visual editing, generate only valid html, etc.)
Re:Ruby..... (Score:2, Insightful)
Re:Ruby..... (Score:1)
Enforcing the use of scope operators to indicate scope was the best thing the Ruby authors did.
I'm using C++ at work now and I fucking hate the half-assed naming schemes (hungerian notation, m before all class variables) we have to use because C++ doesn't force you to use this->
I think in the future, all programming languages
Re:Ruby..... (Score:1)
In other words, you've only ever learned one syntax. That's kind of sad.
Nice plugins, a few problems installing on Breezy (Score:1)
Re:Nice plugins, a few problems installing on Bree (Score:1)
jEdit's got one too... (Score:2)
For what it's worth, enscript works fine for doing Ruby syntax highlighting [blogs.com] if that's all you need.
RDT rocks. (Score:2, Insightful)
Here I was, happily writing stuff with XEmacs, but somehow, there was something missing from my coding stuff and things started to feel a bit wooden.
Weirdly enough, when I grabbed RDT, things started to look surprisingly bright and writing code was not that boring anymore. There are some emacsisms that I miss, but otherwise, this thing is really great. Eclipse was clearly made for bigger projects and it worked just fine when I got the crazy tendency to split my code across zillion little files! Wish XEmac
Re:RDT rocks. (Score:1, Offtopic)
trollish comment (Score:2)
Re:trollish comment (Score:1)
Re:trollish comment (Score:2)
Them's fightin' words, sorta. That blasted inconsistentcy is why I love Perl. It's the Swiss Army Chainsaw of programming languages.
Smalltalk!?! **choke** **gasp** **coke-coming-out-my-noise** It burnses! It burnses! Make it stop! I had to learn Objective-C (for WebObjects) which is a close to Smalltalk as I want to get. OK I'll take smalltalk over Java any day. Perl will always be the first programming language I fell in lov
Re:trollish comment (Score:3, Interesting)
Re:trollish comment (Score:2, Interesting)
m.m.
Re:trollish comment (Score:1)
This proves nothing, Japan and software don't usually mix well outside of gaming and embedded gizmos.
Re:trollish comment (Score:3, Insightful)
You owe to yourself to try this (Score:2)
The Ruby Eclipse plugin is the best debugger I know of. It's been indespensble. The time you spend setting it up will pay off big.
Why use Eclipse? (Score:1)
Text editor vs. IDE (Score:1, Informative)
- best of breed Java development tools, including full refactoring support and full debugger
- team integration (comes with CVS support, other stuff can be added with plugins)
- awesome browsing support
- automatic incremental builds take place in the background. NEVER PRESS THE COMPILE BUTTON AGAIN. Just type some code, hit Save, and see the compile errors appear in the margin immediately. Since there's no need to stop and compile, you can Debug or Run your applicat
Re:Why use Eclipse? (Score:1)
the best thing about this (Score:2)
that must really roast their beans. har har...
Re:the best thing about this (Score:2, Insightful)
The JVM and the J2SE class libraries are the most important contributions made by Sun under the Java technology umbrella. The Java language itself is irrelevant. Many people dislike the language syntax, and they have the right to do so. Syntax is a matter of taste - everybody should be able to program using the language they like the most (for the task at hand). But portability, interoperability, security, and other core features of the Java runtime are often underestimated.
People should stop fighting ove
Re:the best thing about this (Score:2)
A C# JVM bytecode compiler would be nice too...
Re:the best thing about this (Score:2)
Does this support dynamic variable highlighting? (Score:4, Interesting)
Nice Ruby OS X editor: TextMate (Score:4, Insightful)
Re:Why is Ruby gaining such media attention? (Score:4, Interesting)
Ruby is hugely productive. Pretty much everything I've ever wanted to do requires less code, less configuration, and simply less hassle than in every other language I've used.
Now, this is mostly evident when compairing to more traditional statically typed languages like Java and C#, but Ruby's has plenty to offer folks who already use agile languages like Python or Lisp. Ruby has an easy to use and powerful package managment system, Gems. An excellent build tool, Rake. RDoc, a powerful JavaDoc like documentation system. Rails, which is probably the most productive web devleopment platform on the planet. Watir, a web scripting system that makes functional and system testing a breeze. MouseHole, a really slick scriptable proxy. Two extremely well written, freely available books: the first edition of Programming Ruby, and Why's Poignant Guide. An extremely helpful user community. The list goes on and on.
Maybe you should be asking yourself why you dislike Ruby so much, rather than why everyone else likes it. That's not to say that everyone should like it as much as I do, but I suspect you're missing something important.
Re:Why is Ruby gaining such media attention? (Score:3, Interesting)
Re:Why is Ruby gaining such media attention? (Score:1)
#Use Proc.new
p = Proc.new { } ; o.method( p )
--Not quite multi-paradigm enough for my taste (why can't I work with plain functions, for example, instead of everything's-a-method?)
# Works fine.
def hello()
print "hello world\n"
end
hello
Eclipse (Score:1)
Also, it kept on giving me lists of errors I could not understand.
I went back to scite and jEdit. I'm thinking of going back to emacs, actually.
Re:Eclipse (Score:2)
Debugging Rails applications problematic (Score:1)
also the article at
http://www.napcs.com/howto/railsonwindows.html#_To c111133460 [napcs.com]
My real goal was to debug Ruby on Rails programs with the plugin.
In theory I was able to do it, but not very usefully. I found that even a very
simple Rails program kept throwing off uncaught exceptions which kept stopping the debugger.
I could press the 'Continue' button to resume, but I would have to step through about
15 exceptions before the browser w