Ruby IDE

First off has there been any talk about what price range the full
version of
ruby in steel is going to fall into?

What happens if you want to develop a gui application using Ruby is one
expected to draw the gui in one program and write the code that makes it
work in another? I think the integration of form designing tools are a
major strength of an IDE personally. I tend to do most of my ruby
coding on
Linux systems and I prefer Emacs but one major issue I have with Emacs
(and
Vim) is that I seem to be spending an exorbitant amount of time trying
to
get things like snippet.el, and cedet to actually work; so much so that
I
have had to all but give up on getting those things to work if I am
going to
get anywhere on the project I am trying to write at the moment. The net
effect being I end up being far less efficient with respect to typing
alone
than I would be if it was easier to get those plugins working or they
were
built into emacs already.

The more I try to use Emacs for Ruby the more I find myself wanting to
use
an IDE that is at the very least on par with Visual Studio and hopefully
better than Visual Studio if only to focus more on typing the code for
my
project and hopefully learning more about ruby in the process rather
than
trying to configure the editor component in vain.

Do any of these IDE’s mentioned support active line highlighting? (The
current line is say yellow so it stands out against everything else.)

M. Edward (Ed) Borasky wrote:

So … right now my “Ruby IDE” is a Linux desktop (Windowmaker, if that
matters), with a bunch of XTerms running vim (with Ruby syntax
highlighting), an XTerm running irb, a Firefox window, an Acroread
window and of course rake, rspec and soon hoe, ZenTest and some other
tools. Version control is either CVS or SVN. It works fine for the
little things I do, although one of the projects I’m working on is
probably too big for that. But then, that project is in a very real
sense an IDE. :slight_smile:

You might want to try VimMate (http://vimmate.rubyforge.org/). It adds
the most useful IDE features to Vim – namely a file-system browser with
optional SVN integration.

Also, speaking of having multiple XTerms open, it must be annoying to
manually arrange your windows and switch back and forth between them
(when they overlap). Have a look at Tiling Window Managers, such as wmii
(see http://wmii.suckless.org/ and
eigenclass.org), sometime. I’ve been using wmii
for the past two years and I absolutely love it.

Timothy G. wrote:

about the most you can do with Ruby for the same reasons why
refactoring is so difficult.

I’ve played a bit with KDevelop. If I’m hacking on a huge,
mixed-language open source project, it’s probably what I’d use. But I
don’t do a lot of that. I suspect when all the smoke clears, though, the
same gotchas that caused David V. to displace Eclipse with IDEA
would apply to KDevelop for really big projects.

Also, my stipulation of mandated coding standards was intended to “help”
the IDE get around some of the “it’s the most you can do, given the
nature of Ruby” excuses.

This is only a small example of the power of Ruby. You can create
methods to generate any code you can dream up at runtime. Unfortunately
with this level of flexibility and the rather relaxed syntax used by
the language it is nearly impossible to automatically police coding
standards. Ruby is a language for humans, not computers and only a
human can properly understand it without actually running it.

Nonsense! A human can not possibly understand arbitrary Ruby code
without running it, any more than a Ruby interpreter can solve the
halting problem. A human programmer can only hope to understand what
the coder’s intention was for the code to do, even if he or she wrote
said code!

I realize now that my third requirement also rules out Forth. That
strengthens my belief it should be there. :slight_smile: However, the situation I
described also rules out a simple set of folders and written policies.
You haven’t even included a version control system! :slight_smile: To paraphrase
somebody, “God must have loved version control systems – He made so
many of them.” :slight_smile:

So … right now my “Ruby IDE” is a Linux desktop (Windowmaker, if that
matters), with a bunch of XTerms running vim (with Ruby syntax
highlighting), an XTerm running irb, a Firefox window, an Acroread
window and of course rake, rspec and soon hoe, ZenTest and some other
tools. Version control is either CVS or SVN. It works fine for the
little things I do, although one of the projects I’m working on is
probably too big for that. But then, that project is in a very real
sense an IDE. :slight_smile:

But the thought that any of this magic has to work on Windows is
accompanied mostly by expletives and prayer. :slight_smile:


M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/

If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.

Suraj K. wrote:

Have a look at Tiling Window Managers, such as wmii
(see http://wmii.suckless.org/ and
eigenclass.org), sometime. I’ve been using wmii
for the past two years and I absolutely love it.

I forgot to mention my wmii configuration,
which is kind of interesting in its own right:

http://www.soe.ucsc.edu/~snk/2006-07-01-wmii-3.1-configuration-in-ruby.html

In the Rails world, the most popular editor seems to be TextMate. It
doesn’t give you full IDE features, but it has stuff like syntax
coloring and project management (not Gantt charts but code separation
etc).

I’m a dyed-in-the-wool vi user, I’m hoping playing with Smalltalk will
give me a taste of how the other half lives, but if you’re into IDEs,
I think there’s an Eclipse plugin for Rails which probably is pretty
good for general Ruby use. That’s pure speculation on my part, take it
with a grain of salt, but it’s called RadRails. I haven’t used it but
I did see a presentation on it from the creator and it did seem like
the software was good and the creator was smart. These are always
things to look for.

I used Eclipse on a Java project, and the one great thing about it for
me personally was being able to get method definitions etc.
automatically, and being able to jump to them from anywhere in the
codebase. I’ve heard there’s a way to do something similar in vi with
a Unix utility called ctags. Apparently what you do is run ctags on
your codebase and then vi gets autoloaded with method definition
locations and the ability to hop to them. I haven’t taken that for a
test drive either, though, so again, ymmv.

Hope this helps.

Hi,
after following this discussion for a few days, I decided to do a
little writeup on the various IDEs that are used for ruby editing.
You can check it out at
http://concentrationstudios.com/2006/12/19/ides-text-editors-and-bears-oh-my

[email protected] wrote:

Is there an IDE that actually works that one can use to
develop and compile Ruby.

You could try the Zeus for Windows IDE:

Zeus IDE - Programming environment for Windows developers
Note: Zeus is shareware (45 day trial).

It does Ruby syntax highlighting, code folding, class browsing,
macro scripting, integrated version control, smart indenting,
project/workspace management etc etc.

You can even write Zeus macros using Ruby :wink:

Jussi Jumppanen
Author: Zeus for Windows

Or you could just use gnu screen if you don’t want to switch gui
environments.

Suraj K. wrote:

for the past two years and I absolutely love it.

I actually did have a “Window Manager/Desktop” bakeoff a few months ago.
The gory details can be found on my blog at

http://borasky-research.blogspot.com/2006/04/more-about-linux-desktops.html

Back then, I had pretty much settled on XFCE4.4, but I managed to get
WindowMaker to work after that post, so that’s what I’m on now. I did
try wmii and couldn’t make it work – too many “Vulcan Nerve Pinches”
for my taste. And switching between windows is a job for Alt-Tab. :slight_smile:
WindowMaker allows an unlimited number of “desktops”, so that’s another
option. It’s nowhere near as cool as Enlightenment in that respect,
however.

But, since I’ve “admitted” I’m building my own IDE, at some point I plan
to test it with “twm” and see if it’s usable. I suspect it will be, at
least with a 3-button/wheel mouse, which is what I use. I’m not even
remotely interested in Windows compatibility at this point – this is as
pure an open source project as I can make it.


M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P)
http://borasky-research.blogspot.com/

If God had meant for carrots to be eaten cooked, He would have given
rabbits fire.

You can get all of the above and more (like integrated RubyDocs) with
the acclaimed JEdit (www.jedit.org) which is free and has a Ruby plugin
(http://rubyjedit.org/). It is quite lightweight and works great on
Windows - I have been using it for Ruby/Rails dev for about a year now.
I suggest using the Project Viewer plugin also which gives you the
workspace view.

Vish