Travis Smith wrote:
How do you do code completion with vim? I'd love that feature.
Me too ---
Travis Smith wrote:
How do you do code completion with vim? I'd love that feature.
Me too ---
<snip>
> Then you write a function, save :w, test in the console or browser you
> have open. Or if its a function/class you can test stand alone, then send
> it directly to ruby/php or what ever. ':w !ruby' you can't get much more
> immediate feedback than that. No opening and closing Windows or dialogues.Yeah, I generally have mappings like
:wall<CR>:!ruby %<CR>Which will save all open files and run the current file.
You both might like to have a look at the compiler plugin which will run
the given file and allow you to jump to the location of any resulting
syntax errors, exceptions etc.
:compiler ruby
:make %
<snip>
Regards,
Doug
On Thu, Sep 08, 2005 at 01:25:20AM +0900, Joe Van Dyk wrote:
On 9/7/05, BearItAll <bearitall@rassler.co.uk> wrote:
> On Wed, 07 Sep 2005 07:17:24 -0700, Paul Dix wrote:
I do all the above (except debugging and Java) with just vim.
(assuming that unit tests are a substitute for refactoring)
On 9/7/05, graham <fghfghfh@homr.vom> wrote:
> You could ask them why they need all that IDE stuff for developing in Ruby.
Because they develop complex applications with many Classes, thousands
of lines of code and complex interactions. They probably also work on
multiple projects at once, swap between java, HTML, CSS, SQL, Javascript
and want an IDE to "just handle it" and be able to debug it. They like
refactoring support, integrated version control, 1 click deployment
across different servers etc etc. A text editor just can't cut it. (IMHO)
You missed the key phrase: "in Ruby". What you're describing is a
typical project in Java or C++.
In Ruby, if your application is so large and complicated that you
can't easily navigate and understand it without a specialized IDE,
you're basically screwed.
Ruby gives you the power to achieve complicated things with a small
amount of very clean source code. But if you insist on treating it
like C++, all you'll end up with is a mess, and no IDE will save you.
cheers,
Ed
On Thu, Sep 08, 2005 at 02:36:29AM +0900, graham wrote:
> You could ask them why they need all that IDE stuff for developing in Ruby.
Because they develop complex applications with many Classes, thousands
of lines of code and complex interactions.
I actually looked into that for the first time yesterday.
I think I created a mapping like
:map <F6>:wall!<CR>:mak % \| :cwin<CR>
saves the files, runs make, and displays an error window at the bottom
there. Then I can skip around to all the places that have exceptions.
Pretty nifty.
On 9/7/05, Doug Kearns <dougkearns@gmail.com> wrote:
On Thu, Sep 08, 2005 at 01:25:20AM +0900, Joe Van Dyk wrote:
> On 9/7/05, BearItAll <bearitall@rassler.co.uk> wrote:
> > On Wed, 07 Sep 2005 07:17:24 -0700, Paul Dix wrote:<snip>
> > Then you write a function, save :w, test in the console or browser you
> > have open. Or if its a function/class you can test stand alone, then send
> > it directly to ruby/php or what ever. ':w !ruby' you can't get much more
> > immediate feedback than that. No opening and closing Windows or dialogues.
>
> Yeah, I generally have mappings like
> :wall<CR>:!ruby %<CR>
>
> Which will save all open files and run the current file.You both might like to have a look at the compiler plugin which will run
the given file and allow you to jump to the location of any resulting
syntax errors, exceptions etc.:compiler ruby
:make %
Edward Faulkner wrote:
You missed the key phrase: "in Ruby". What you're describing is a
typical project in Java or C++.In Ruby, if your application is so large and complicated that you
can't easily navigate and understand it without a specialized IDE,
you're basically screwed.
I agree. Although Ruby has potential, it still appears to be a language for small systems/utilities. Partly because of the tools support, partly because of performance, partly because it is "new" (ish).
If you have a complex problem to solve, choosing the "wrong language" to write a solution can make your task more difficult, but even Ruby cannot make intrinsically complex systems simple.
Reading this group and you seem to find several common threads
- Newbies from various backgrounds interested in exploring the potential, and hitting the same issues (scattered documentation models, scattered websites with documentation, lack of the level of IDE support other mainstream languages take for granted, language quirks)
- "experts" who use Ruby regularly and have probably figured out how to control the coffee machine via vim, and eschew anything more complex than a console prompt.
Ruby seems to be at the stage of Java 0.9.. i.e. 1 set of command line tools and loads of "learning applets" to play with. Its going to be a few years and something like "RBuilder" (c.f. JBuilder) to get people using it to solve real problems... if this doesn't happen, then Ruby will probably join the backwater of "almost" or niche languages like Effiel, Forth, Modula-2, Pascal(?), Lisp, D..... (the list is endless).
I hope Ruby makes it - and if it does its going to be a few influential groups (like Matz and the Pragmatic team) producing products like RoR and then pushing it hard. You need to make it easy for people to deliver, and great tools support is one way to start this. IMHO all the Ruby IDE developers should be working together to make Eclipse + Ruby plugin work as well (and be as high a profile) as RoR is. You have win-win for all existing Eclipse users looking to transition, and provide great supoprt for new users too.
...
Thx for listening.
Graham
I agree. Although Ruby has potential, it still appears to be a language for small systems/utilities. Partly because of the tools support, partly because of performance, partly because it is "new" (ish).
I've been watching this list for over a year now and I don't remotely believe the above. I think you might want to look into some of the things Rubyists are doings. I expect to to be surprised.
Ruby seems to be at the stage of Java 0.9.. i.e. 1 set of command line tools and loads of "learning applets" to play with.
Again this, does not jive with what I see here every single day. Did you read Ara's post earlier tonight about the image analysis of hurricane Katrina being done with Ruby, by NOAA?
Its going to be a few years and something like "RBuilder" (c.f. JBuilder) to get people using it to solve real problems...
I believe it's my job to manage complexity, as the programmer, not the IDE's job. Tools are nice, but that has little to do with what I can and can't manage.
James Edward Gray II
On Sep 7, 2005, at 6:56 PM, graham wrote:
You misunderstand me. Ruby is quite capable of tackling large,
complicated problems.
People coming from a static-language background expect to need IDEs
because they underestimate the power and brevity of a dynamic language
like Ruby. Once they've replaced their 10,000 lines of Java with
1,000 lines of Ruby, perhaps their IDE will begin to seem less
important.
Or perhaps I'm just biased against IDEs. I've never liked them much
myself.
By the way, it appears rather difficult to make a Ruby IDE with
tab-completion, because you can't know in advance the type of any
object, and methods may be added and changed on the fly.
regards,
Ed
On Thu, Sep 08, 2005 at 08:56:29AM +0900, graham wrote:
Edward Faulkner wrote:
>In Ruby, if your application is so large and complicated that you
>can't easily navigate and understand it without a specialized IDE,
>you're basically screwed.I agree. Although Ruby has potential, it still appears to be a language
for small systems/utilities.
I disagree. I'm currently writing a complete Magazine Subscription
fulfillment database backend with front end in Ruby. It's no problem, even
though the system is complex The backend is about 90% complete and the front
end is about 30 percent complete.
Now granted, if ANY application in ANY language is so large you can't
understand it without an IDE, the problem is not the size, but your design.
Anyway, I do everything with 2 terminal windows open and Kate to edit the
files. No problems there. ![]()
On Wednesday 07 September 2005 17:56, graham wrote:
Edward Faulkner wrote:
> You missed the key phrase: "in Ruby". What you're describing is a
> typical project in Java or C++.
>
> In Ruby, if your application is so large and complicated that you
> can't easily navigate and understand it without a specialized IDE,
> you're basically screwed.I agree. Although Ruby has potential, it still appears to be a language
for small systems/utilities. Partly because of the tools support, partly
because of performance, partly because it is "new" (ish).If you have a complex problem to solve, choosing the "wrong language" to
write a solution can make your task more difficult, but even Ruby cannot
make intrinsically complex systems simple.
i'm not sure i'd put pascal in the 'backwater' category. maybe 'not
used as much'. borland had the pc programming market pretty much tied
up with turbo pascal 1. and the dos text mode interface that everyone
else copied by version 3.
pascal lives on today as delphi. you could probably reproduce a
complex delphi program just using vim, but i don't know of any delphi
developer that would want to.
i'm a touch typist so vim works especially well for me in just about
all the code i work on...
but when it comes to switching between several files, debugging,
testing an ide is more convenient. yeah i can do most of it in vim,
but the cirque de soleil keyboard acrobatics don't make sense compared
to a few mouse clicks.
graham wrote on 9/7/2005 7:56 PM:
will probably join the backwater of "almost" or niche languages like
Effiel, Forth, Modula-2, Pascal(?), Lisp, D..... (the list is endless).
--
http://home.cogeco.ca/~tsummerfelt1
telnet://ventedspleen.dyndns.org
I have to say, I agree that part of what makes Ruby special is that it
doesn't need an IDE to be efficient (*cough* *cough*, Java!). I
personally use JEdit for my Ruby work (well, learning it at least),
and while I'd love something with more autocomplete abilities and
better syntax checking, that's it. Btw, that's neat about NOAA using
Ruby!
Jacob
On 9/7/05, James Edward Gray II <james@grayproductions.net> wrote:
On Sep 7, 2005, at 6:56 PM, graham wrote:
> I agree. Although Ruby has potential, it still appears to be a
> language for small systems/utilities. Partly because of the tools
> support, partly because of performance, partly because it is
> "new" (ish).I've been watching this list for over a year now and I don't remotely
believe the above. I think you might want to look into some of the
things Rubyists are doings. I expect to to be surprised.> Ruby seems to be at the stage of Java 0.9.. i.e. 1 set of command
> line tools and loads of "learning applets" to play with.Again this, does not jive with what I see here every single day. Did
you read Ara's post earlier tonight about the image analysis of
hurricane Katrina being done with Ruby, by NOAA?> Its going to be a few years and something like "RBuilder" (c.f.
> JBuilder) to get people using it to solve real problems...I believe it's my job to manage complexity, as the programmer, not
the IDE's job. Tools are nice, but that has little to do with what I
can and can't manage.James Edward Gray II
I believe it's my job to manage complexity, as the programmer,
not the IDE's job.
Most wise words indeed.
Lots of programmers like to leave the task of project management
up to the IDE. But this can be dangerous, as many times the IDE
will get into trouble with the project management, especially as
the complexity grows.
Jussi Jumppanen
Author: Zeus for Windows
James Edward Gray II wrote:
I agree. Although Ruby has potential, it still appears to be a language for small systems/utilities. Partly because of the tools
support, partly because of performance, partly because it is
"new" (ish).
snip
I believe it's my job to manage complexity, as the programmer, not
the IDE's job. Tools are nice, but that has little to do with what I
can and can't manage.
I agree.
Good thinking, solid design, clear interfaces and proper error
checking/testing are what reduce complexity.
All this help (code completion, error checking etc.) is nice but it
doesn't speed up my work much (if you type fast enough it takes about
the same time to navigate the code completion stuff as to write the
whole call).
Looking up API documentation takes a larger percentage of my time than
typing the call. If I have to know all the C++/STL library calls by
heart, along with the ridiculous amount of Java APIs and all the nice
little Ruby libs, then what am I doing owning a computer and accessing
the internet?
Nope, a decent editor and lots of searchable reference documentation is
what most of us need.
Cheers,
V.-
On Sep 7, 2005, at 6:56 PM, graham wrote:
____________________________________________________________________
http://www.freemail.gr - äùñåÃà õðçñåóÃá çëåêôñïÃéêïý ôá÷õäñïìåÃïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
The jEdit Ruby Editor Plugin has code completion for the core types based
on a naive type inference algorithm, which can be summarized as "if it
quacks like a duck, it'll probably waddle like a duck":
Ruby Editor Plugin for jEdit
Cheers,
Rob
On 9/8/05, Edward Faulkner <ef@alum.mit.edu> wrote:
By the way, it appears rather difficult to make a Ruby IDE with
tab-completion, because you can't know in advance the type of any
object, and methods may be added and changed on the fly.
When I was doing some Delphi work 18 months ago, I did 90% of my
development outside of the Delphi environment and in vim. I used
Delphi for method completion and compiling only.
I work similarly with VisualStudio.
-austin
On 9/9/05, tony summerfelt <snowzone5@hotmail.com> wrote:
graham wrote on 9/7/2005 7:56 PM:
> will probably join the backwater of "almost" or niche languages like
> Effiel, Forth, Modula-2, Pascal(?), Lisp, D..... (the list is endless).
i'm not sure i'd put pascal in the 'backwater' category. maybe 'not
used as much'. borland had the pc programming market pretty much tied
up with turbo pascal 1. and the dos text mode interface that everyone
else copied by version 3.pascal lives on today as delphi. you could probably reproduce a
complex delphi program just using vim, but i don't know of any delphi
developer that would want to.
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca
By the way, it appears rather difficult to make a Ruby IDE
with tab-completion
The Zeus for Windows programmer's editor has a generic form
of code completion that derives it's information from the
tags generated by Exuberant Ctags.
The Exuberant Ctags lists Ruby as one of the supported
languages:
Languages Supported by Exuberant Ctags
so in theory this means the Zeus, Ruby code completion
should work in some limited fashion.
because you can't know in advance the type of any object,
and methods may be added and changed on the fly.
This form of dynamic code completion is definitely very
difficult to implement as it requires the editor/IDE to
have built-in knowledge of the language.
But for the more static type of coding, where some form
of ctags information is generated, a limited form of code
completion should be available.
Jussi Jumppanen
Author: Zeus for Windows
Note: Zeus is shareware (45 day trial).
I worked on a project once where an IDE was appointed as Project Manager - I
think it was Visual Studio actually. It wasn't such a big success - the IDE
didn't say much in meetings and wasn't very proactive in managing the
people, project, timelines, deliverables and politics. Certainly it was a
friendly IDE, but you need so much more than that in a Project Manager. I
really think a person is a much stronger choice for Project Manager although
some organisations will continue to choose an IDE as Project Manager.
Newsgroups: comp.lang.ruby
----- Original Message -----
From: <jussij@zeusedit.com>
To: "ruby-talk ML" <ruby-talk@ruby-lang.org>
Sent: Thursday, September 08, 2005 2:06 PM
Subject: Re: Need help finding decent IDE/development environment for
Windows
I believe it's my job to manage complexity, as the programmer,
not the IDE's job.
Most wise words indeed.
Lots of programmers like to leave the task of project management
up to the IDE. But this can be dangerous, as many times the IDE
will get into trouble with the project management, especially as
the complexity grows.
Jussi Jumppanen
Author: Zeus for Windows
Jacob are you using the jEdit Ruby Editor Plugin?
For everyone on this thread:
The jEdit Ruby Editor Plugin provides type based method-completion for the
Ruby core classes, syntax error checking via the JRuby parser and has an
integrated RDoc viewer. The install is rough, many seem to like it, I intend
to put more work into it over the Northern Hemisphere winter, it's free
software under the GPL, take it or leave it, but feedback is welcome, I give
you the Ruby Editor Plugin for jEdit:
Cheers,
Rob
On 9/8/05, Jacob Quinn Shenker <jqshenker@gmail.com> wrote:
I personally use JEdit for my Ruby work (well, learning it at least),
and while I'd love something with more autocomplete abilities and
better syntax checking, that's it.
I believe it's my job to get as much done as I can--the more I can leave (or
push) to the computer the better. Maybe an IDE isn't the tool to manage the
complexity you're talking about--then we (you/me/whoever) should be looking
to improve or replace the tool. ![]()
regards,
Randy Kramer
On Thursday 08 September 2005 12:06 am, jussij@zeusedit.com wrote:
> I believe it's my job to manage complexity, as the programmer,
> not the IDE's job.Most wise words indeed.
Lots of programmers like to leave the task of project management
up to the IDE. But this can be dangerous, as many times the IDE
will get into trouble with the project management, especially as
the complexity grows.
i tried that with both delphi and c++builder and it was just too
painful. i really didn't feel like setting up vim for each ide i was
trying to replace
it's a great text editor for touch typists though. i usualy start all
my code with vim first...
Austin Ziegler wrote on 9/9/2005 9:54 AM:
When I was doing some Delphi work 18 months ago, I did 90% of my
development outside of the Delphi environment and in vim. I used
Delphi for method completion and compiling only.
--
http://home.cogeco.ca/~tsummerfelt1
telnet://ventedspleen.dyndns.org