Your Ruby IDE

Stewart M. wrote:

Wow Ben you Guru

Nah… I just have a big mouth. :slight_smile:

OK

  1. got the database in order wiht the ports and the hostname. so no more
    problems there.

Sweet.

  1. LOL i love dreamweaver so i will have to disagree i find it really
    good to edit pages and it handles html ok. For the most part i type out
    all the html code my self using the WYSIWYG editor at times. ITs good
    for doing things like CSS as it has text prediction which is really
    handy!!!

That’s cool… I just like to go for the jugular sometimes… you could
probably crank out
a page faster than me… hopefully they at least have a built in
validator by now.

  1. Tryed uninstalling all java apps from my machine and reinstalled 1.5
    aka java 5 run time. Did not help… i can still run radrails however i
    have to use the setup.jar file and not the exe when i want to run the
    app.

This is really weird. Maybe try a new copy of eclipse with a fresh
install of the radrails
plugin?

  1. I think i will just continue using the shell to do this. I have
    putty all setup so its just as easy. I checked the way to set it up but
    once again it seems to assume you are running the run times form the
    local machine which i am not… I suppose i could map the bin folder to
    a drive and use it that way but i really cant see it saving me much
    time… what do you think about this Ben?

Here’s another tut that’s been passed around a bunch:

http://www.napcs.com/howto/railsonwindows.html

However, it’s not about using radrails so it might screw you up even
worse. But there are
tips in there about setting up external scripts and stuff.

I’ve had very few problems with radrails… and I’ve been impressed with
how quickly a
couple of guys are knocking shit out.

Christophe G. wrote:

Wiebe C. wrote:

Ben M. wrote:

Dreamweaver is pure evil. HTML is just as valuable code as Ruby… would
you want some
macrodobey monstrosity creating your Ruby for you? Proper HTML markup
conveys the intent
or meaning of the data it’s marking up (i.e. HTML is NOT a presentation
language) so how
could a stupid machine ever get it right? :slight_smile:

Does this mean you can edit rhtml with radrails properly? Most IDE’s are
not aware of the JSP or rails tags in the HTML, and will mark it as bad.
And, being able to automaticly create open and close tags would be
welcome too.

More or less, syntax coloring is sometime funky with rhtml files but
RadRails is still under beta - No auto close either, or I missed this
one.

And most importantly, can it code-complete in rhtml (or .rb files for
that matter)? When you have a view and you’re typing “object.”, does the
“.” trigger a list of methods you can use?

Not really, it provides a very minimal code completion (in fact sort of
code completion) for classes names and ruby standard methods.

Well thats it right there. Thats what everyone needs the intellisense to
pick up what your typing. Auto close would be very handy as well. I have
been looking around a little and i found this…

http://discuss.joelonsoftware.com/default.asp?joel.3.319015.27

This does not bode well for ruby on rails as Intellisense in the ide
makes up a big part of the RAD princapals (that RoR is built on).
However one thing to bare in mind about RoR, its quite new when you look
at j2ee and dot net(leaders in Intellisense). There is still a long way
for RoR and RadRails oo go and if the take up has been as good as it is
so far then we have a lot to look forward too.

Alex Y. wrote:

That’s really a matter of personal taste. You could make the
counter-argument that if a system’s complicated enough to mean that its
users need intelligent code completion to get anything done, it’s way
too complex and should be simplified. Me, I use vim with a few handy
shortcuts. You don’t need autocomplete for RAD.

In my opinion, a listing of available methods on objects is useful even
for the most simple systems. Especially if it also shows what parameters
the method needs. It would reduce the amount of times you have to look
at the Rails API docs, for example.

A month ago I had to ask “What’s VIM”, and then I found out and started
using it, and now it’s definitely for me.

These things can be learned :slight_smile:

Bravo ! VIM is the most versatile editor there is. It will most likely
exist on any *n?x system you ever log into.
I try and open the /help system every once in a while, find a command I
don’t use… then play with it until it dawns on me how useful it
actually
is.

I’ve seen people edit files faster than any other editor could ever
possibly
do with any other IDE (except possibly hardcore emacs users :))

Stewart M. wrote:

This does not bode well for ruby on rails as Intellisense in the ide
makes up a big part of the RAD princapals (that RoR is built on).
That’s really a matter of personal taste. You could make the
counter-argument that if a system’s complicated enough to mean that its
users need intelligent code completion to get anything done, it’s way
too complex and should be simplified. Me, I use vim with a few handy
shortcuts. You don’t need autocomplete for RAD.

Dylan S. wrote:

(except possibly hardcore emacs users :))
maybe like this:
http://www.bloomington.in.us/~brutt/msf-abbrev-demo.gif
:^)

I’ve been using PSPad for my rails editing for a while now. It’s a bit
of a pain to add rails syntax support, but once setup I find it very
good.

Back in August I posted a howto on my website that showed how to set up
Eclipse with RDT, the Web Tools platform and DBEdit to do Rails
development. This is pre-Radrails but I keep updating the site because
there
are still some very important things missing from RadRails that I have
come
to depend on. The Web Tools project from Eclipse gives you a really
nice
CSS / HTML editor with templates and autocomplete… and with a tiny bit
of
work (and some templates from my site) you can hack the JSP editor to do
RHTML files.

I’m sure that RadRails will eventually render my work useless, but in
the
meantime you could give my setup a loook.

http://www.napcs.com/howto/railsonwindows.html

Hi Stewart,

I am using Emacs21 on Debian Sarge and I have been able to get the
following features by adding various mode files (a very short list for
each)
see: Peak Obsession

ecb mode - Gives me directory explorer pane(IDE like interface)
File manipulation pane(create etc)
Methods list pane
Ruby mode- Syntax Highlighting, code completion etc
CSS mode - same for CSS
HTML, XML modes
Rails mode - Code Snippets, Start/Stop WeBrick or Mongrel
SQL mode - Execute SQL

There are tons more features…and its all free and open source.

Check out http://www.emacswiki.org/cgi-bin/wiki
for all sorts of mode files.

THe only caveat is that there is a steep learning curve…I’d say a
couple of weeks of intense work to get proficient. But the payoff is
great. While I am no emacs expert (yet:) I have seen some who start
the day with Emacs and don’t ever leave it since you can do pretty
much everything in it.

-bakki

PS: Tangentially -
While studying the elisp mode files i found it very very rewarding to
learn lisp. It even helps to understand Ruby better since Matz used
many Lisp concepts in Ruby.
Check out:
http://www.paulgraham.com/
See Matz’s quote at
http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/179642
and also
“Some may say Ruby is a bad rip-off of Lisp or Smalltalk, and I admit
that. But it is nicer to ordinary people.”

  • Matz, LL2 (from Paul Grahams site - lisp quotes)

Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?

Active state’s komodo - I had been using it for python [personal
edition is only $30] - big plus is that you can debug your ROR apps with
it…

brez! !! wrote:

Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?

Active state’s komodo - I had been using it for python [personal
edition is only $30] - big plus is that you can debug your ROR apps with
it…

Komodo has to be the best IDE ever. i’ve been using the free trial
version and i would probably sport for the pro version. $300 is quite a
lot, but you can’t beat it!

I’ll second the emacs recommendation. I haven’t seen anything else
that does everything I need (tags, svn, textmate-like snippets, css,
sql, etc.). Radrails is OK, but too much of a dog. Eclipse with the
radrails plugin is better than radrails by itself, but again it’s
still to much of a dog for me. Also, you can use emacs over an SSH
session.

Regards,
Jason

Not to start a war but Vim does all that. Both are excellent editors.
I myself prefer Vim, but what I tell people all the time when it
comes to editors is:

Choose an editor with some power behind it then spend some serious
time actually learning how to use that editor well. A few weeks/
months down the road you will wonder how you did without it. Too many
people grab an editor and learn simple copy, cut, paste, maybe
indenting blocks of code and possibly ending an HTML tag for them and
leave it at that. Oh, how much they are missing.

My advise? Re-read the above paragraph :wink:

Jeremy C.
http://lifewithchrist.org <— undergoing a rewrite into RoR.

Yes there is,

http://www.vim.org/scripts/script.php?script_id=1318

Jeremy C.
http://lifewithchrist.org <— currently being rewritten in RoR

On 28/03/06 15:51 -0500, Jeremy C. wrote:

Not to start a war but Vim does all that. Both are excellent editors.
I myself prefer Vim, but what I tell people all the time when it
comes to editors is:

I also like to use vim for various things. Are there snippets for vim
to make rails dev easy on the fingers?

Regards,
Jason

If you want to look into VIM with out having to jump in with both feet
right off the bat there is Cream http://cream.sourceforge.net/ Cream
sits on top of VIM making it easier to install and more intutive to
new users. As you get comfertable you’ll find your self droping into
“Expert” mode more and more often, harnessing all of the power of VIM
with out the initial confusion of modal editing.

Rob K.

On Thu, Oct 29, 2009 at 12:28 PM, Shawn Koppenhoefer
[email protected] wrote:

Robert MannI wrote:

I’m using TextMate.
I’d love to try out VIM.

Would anyone use anything else than TextMate if on a Mac ? :slight_smile: hint
hint, nudge nudge, wink wink.
Yes, of course, there’s a lot of people using VIM on a Mac.

p.s. Oh my god!.. I just realized how old this thread is! prev-post is
early2006.
Nevermind, these questions never get old fashioned. :slight_smile:

By the way, I’m using VIM on a linux box.


Leonardo M…
There’s no place like ~

Robert MannI wrote:

I’m using TextMate.
I’d love to try out VIM.

Would anyone use anything else than TextMate if on a Mac ? :slight_smile: hint
hint, nudge nudge, wink wink.

p.s. Oh my god!.. I just realized how old this thread is! prev-post is
early2006.

Shawn Koppenhoefer wrote:

Robert MannI wrote:

I’m using TextMate.
I’d love to try out VIM.

Would anyone use anything else than TextMate if on a Mac ? :slight_smile: hint
hint, nudge nudge, wink wink.

I’m using KomodoEdit on a Mac. I refuse to spend all that money on a
text editor.

p.s. Oh my god!.. I just realized how old this thread is! prev-post is
early2006.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Stewart M. wrote:

Just a poll here i am looking for a good IDE for rails and wondering
what you guys use?

Rails does not need or benefit from a real IDE. I dropped Aptana and
NetBeans and use KomodoEdit for Rails development. jEdit is also worth
a look.

features i like in an ide

code highlites
auto code complete
file browser

I like a project browser and syntax highlighting. I don’t have much use
for code completion: it would be nice to have (and in fact KomodoEdit
does have it) but because of Ruby’s dynamic nature, I’ve yet to see code
completion for Ruby that actually works well.

Currently i am using dreamwever but the code highliting is really bad
its also a pain to set up other doucment types such as .yml data config.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]