SitePoint Sponsor |
|
User Tag List
Results 26 to 42 of 42
Thread: Ruby-editors
-
May 29, 2006, 12:43 #26
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can someone explain what the differences between emacs and textmate are? Textmate seems a little more GUI oriented, but lots of things can be done with keyboard shortcuts.
I've heard that textmate keycombos are more intelligent. If you press Ctrl+I, textmate will insert a class, unless your cursor is in a class, then it will insert a method, unless it is in a method, when it will insert an if-statement.
Emacs isn't that clever, but you can do good things with abbrev and snippets. (you type par and then tab, and emacs expands it to params[:id], or liai, and it becomes link_to "text", :action => "action", :id => id, and you can step through the parameters with tab. Does textmate have this too?
Does textmate have rails specific things like a rails console (script/console), or an sql console? Does it have an integrated shell, or do you have to use an external shell? Does it have functions for jumping from view to controller (for example, if you are in app/views/a_contr/act.rhtml, you can jump to the action in the controller AContr#act.). Can you run webrick in the background? Does it have rake unittest integration? Ri integration?
Thanks.
-
May 29, 2006, 15:06 #27
Fenrir2: TextMate is built for Mac and the Cocoa GUI. Emacs was not and can tend to be buggy on Mac. In fact, it is difficult in many cases to get emacs working properly in gui mode on mac. Personally, I've tried a few emacs binary packages for mac os x and the cocoa gui but with little luck except with Aquamac Emacs (and when I tried that, the keyboard shortcuts never worked). As as side note, I don't mind editing in Terminal but I find I'm usually more productive with an intuitive interface than command line editors. I use emacs sometimes when I'm working in linux but I usually find other editors have more of the features and ease of use I need. So the big diff here is ease of use.
Besides just general ease of use, I really enjoy TextMate's smart tabs feature colapsing blocks of code, etc. Like emacs, TextMate has liai+tab feature but the par+tab shortcut changes it to partition { |e| } instead of params[:id].
TextMate does not however have consoles for rails or sql or intigrated shells and I don't know of anyway to jump to a controller that way with TextMate. However TextMate does have a very gracefull approach for switching between files especially if you are working in a project with multiple tabs.
WebBrick (or any other program run in the command line) will not interfere with TextMate. TextMate is not an IDE, it is just a very usefull text editor. You should try it out for the 30 day trial so you know what it is about.Stop Global
-
May 29, 2006, 16:22 #28
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Fenrir2
Being able to see a list of all your files and folders, especially with a Rails app's default layout, is very handy. I find myself clicking in and out of folders much more in emacs, in TextMate you can just expand a folder toview the contents, without having to hide the other half of your files. It also updates automatically, rather than having to refresh it manually ala emacs.
Generally I find TextMate more friendly than emacs. For example, if you open a file in emacs, it reopens the file, regardless of whether it is already open. TextMate just brings the currently open file to the foreground as you'd expect.
The other constant niggle I have in emacs is the syntax highlighting (or as it calls it, "Global Font Lock" - that's another niggle, everything seems to have archaic names) with mmm-mode. It bugs me when you've got to manually refresh the colours, or it doesn't pick up that some code is JavaScript not HTML, or it takes 5 seconds for it to realise I've closed a multiline comment, or it thinks that this or that end double quote might as well be black. Perhaps mmm-mode isn't set up properly, I'm surprised an editor with so much praise doesn't support it out of the box.
Hmm, I should probably put something positive in here about emacs so I don't come off too one-sided.
DouglasHello World
-
May 29, 2006, 16:32 #29
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Fenrir2
Originally Posted by Fenrir2
Originally Posted by Fenrir2
http://blog.inquirylabs.com/2006/02/...n-in-textmate/
Originally Posted by Fenrir2
Originally Posted by Fenrir2
Originally Posted by Fenrir2
That's one of the great things about the TextMate+Rails community, there are plenty of people working out the kinks and shouting about it.
DouglasHello World
-
May 29, 2006, 20:33 #30
I'd probably use TextMate if I was on a mac. But since I'm on windows, editPlus2 seems to be best.
ncarlson.net - a programmer's dystopia
-
May 30, 2006, 01:05 #31
- Join Date
- May 2005
- Location
- Holland!
- Posts
- 852
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
Business as usual is off the menu folks, ...
-
May 30, 2006, 08:17 #32
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Cool, I really would like to try textmate, but I don't own a mac (yet).
-
May 30, 2006, 12:50 #33
- Join Date
- Jan 2005
- Location
- Pakistan
- Posts
- 194
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
RadRails is cool
-
May 30, 2006, 16:17 #34
- Join Date
- Feb 2006
- Posts
- 28
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Im using radrails. its a very annoying when some pages don't open. But I don't really have time to go around finding a better alternatice right now.
-
May 30, 2006, 21:56 #35
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
May 31, 2006, 06:15 #36
- Join Date
- Jun 2005
- Location
- Eastbourne, UK
- Posts
- 17
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm also using RadRails. Tried other editors but I really needed the full project-centric IDE of RadRails.
Right now the only annoyance is the inability to open a few rhtml files with code highlighting.
-
Jun 1, 2006, 04:53 #37
- Join Date
- May 2002
- Location
- Central WI, US
- Posts
- 262
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Fenrir2
-
Jun 1, 2006, 05:18 #38
- Join Date
- May 2001
- Location
- LaGrange, Georgia
- Posts
- 6,117
- Mentioned
- 3 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Sojan80
http://macromates.com/
-
Jun 8, 2006, 03:41 #39
- Join Date
- Mar 2005
- Posts
- 58
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I mainly program Perl and occasionally PHP, and I really like Activestate's Komodo. It has Ruby support, and I'm interested to hear from Ruby programmers who've used Komodo
-
Jun 8, 2006, 06:57 #40
- Join Date
- Jan 2003
- Location
- USA
- Posts
- 32
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
RadRails is getting pretty good these days. It's my free editor of choice currently (works on Windows and Mac, dunno about linux).
I really liked Textmate but it's way overpriced, imho. Komodo was very nice, too and for $30, it's not too bad. But neither of them really had enough features worth the price to me versus the free alternatives.Thank God I'm not too early!
-
Jun 8, 2006, 11:06 #41
- Join Date
- Mar 2005
- Posts
- 251
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Fenrir2
will bring up a rails generate menu in textmate you can generate a Scaffold, Model, Contoller, Mailer, Migration or Plugin
-
Jun 8, 2006, 11:32 #42
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Cool. I really want them to port it to linux.
Bookmarks