News for hackers. Stuff that matters.
Re:Sublime Text 2.0 Released by UnoriginalGuy on Tuesday June 26, 2012 @10:13AM (#4161857)
I just tried Sublime 2 and I must admit I don't "get it." It seems like a basic editor with several features which Notepad++ already had.

Specifically for programming I cannot see why you would use this as opposed to something like Visual Studio with its context aware auto-complete (massive productivity increase).

But then again I also don't get why someone would use Vim or Emacs when you have GUI based tools available (even freely). Even for non-Windows programming Eclipse exists and has a decent (if slow) context aware auto-complete for many languages.

The only justification I've ever heard for people's continued use of tools like this boil down to either "I know the shortcut keys" or "I don't have to use the mouse."

Which to me is odd within its self as very little of my programming efficiency is lost mousing around, and a lot more lost having to jump around code blocks because auto-complete didn't magically know what an object's members were...

Re:Sublime Text 2.0 Released by Derbasti on Tuesday June 26, 2012 @12:19PM (#4162691)
See, I tried to use Visual Studio and I must admit I don't "get it". Actually, I'm not mocking you there. This is the truth. But I don't get many things.

So I end up compiling with VS and editing code in Emacs, because VS does not have a shortcut to switch between files quickly and because VS does not integrate with Git properly and because VS does not have keyboard macros and because I just don't like VS much.

Funny enough, I used to feel the same way as you do, though. I mean, how can you live without auto completion? But gradually I realized that in fact, I did not miss auto completion any more after a day or two not having it. And I did not miss a method browser either. And a menu bar. And... a mouse.

I think we humans are clever animals and we can adjust to any number of things. Me, I have been through IDEs (XCode, Eclipse, VS), Textmate, Vim and now Emacs. In the end I think it boils down to fun: I can work with pretty much any tool or language you throw at me. But to really get me going I need to have fun. And Emacs is giving me that. I am not quite sure if it really is any more or less efficient than XCode or Visual Studio or ed or whatever, but I know that I am magnitudes more productive when I am having fun than when I don't.

So use what you like best. Just don't forget that it is about having fun! Anyone who tells you otherwise... well, I frankly don't care. Have fun!

Re:Sublime Text 2.0 Released by recursive on Wednesday June 27, 2012 @12:10AM (#4165463)
ctrl + tab to switch between open files. ctrl + w, ctrl + s to focus the project explorer, from where you can use the arrow keys to select a file from the current project.
Re:Sublime Text 2.0 Released by aerique on Wednesday June 27, 2012 @04:15AM (#4166057)
Yes, that's what he meant with VS not being efficient in that regard.
Re:Sublime Text 2.0 Released by recursive on Wednesday June 27, 2012 @11:04AM (#4167339)
He said "VS does not have a shortcut to switch between files quickly". I'm having trouble thinking of a quicker way to switch files than pressing ctrl + tab.
Re:Sublime Text 2.0 Released by justinhj on Wednesday June 27, 2012 @11:34AM (#4167495)
I'm a long time emacs user and I work in Visual Studio a lot. VS does have pretty good integration with Perforce and other commercial scs, which presumably is what most of it's target audience needs.

Switching between files works best with Visual Assist added. Alt-Shift-o search string will get a list of matching files, and approximates emacs buffer switching.

Regarding the great IDE vs emacs/vim debate, I find using the IDE is best when working with code, and emacs for everything else. Occasionally I'll need to do something more complicated or that can be automated with an emacs macro and I edit the file there instead.

Re:Sublime Text 2.0 Released by neutronicus on Tuesday June 26, 2012 @10:36AM (#4162033)
You're missing a few more:

emacs lives on every server I have to work on.

emacs works with every language I have to use for work, including C/C++, Fortran, LaTeX, Python, Shell, and every language I like to play around with, including Haskell, Clojure, and Common Lisp.

I switch between tasks often enough that the fact emacs can do all of them (and doesn't crash all the time like Eclipse...) is great.

Re:Sublime Text 2.0 Released by vidarh on Tuesday June 26, 2012 @11:27AM (#4162386)
Regarding auto-complete, I find it is extremely rare that typing speed is what slows me down, nor that I end up having to chase code around. There are plenty of fast search solutions for terminal based editors, but I don't even use things like ctags because the times I've tried it the speedup was never compelling enough to justify yet another thing to install on all the machines I work on.

Solving the problem at hand in a good way is usually far slower than editing the text in my experience. Maybe I'd think different about that if I went back to using C++, or were coding in Java or another verbose language, but thankfully I don't have to.

But the bigger reason is: They are GUI apps. I do 99% of my work over ssh connections to servers where I have lots of screens open and waiting for me to attach with all the state I want ready and waiting no matter which machine I happen to connect from.

I have shortcuts for a dozen machines or so on my desktop that throws me straight into a screen over ssh, and even in the two cases where those machines are across the Atlantic for me, my screen with my editor windows is open faster than any IDE I've tried will open locally on my machine.

Being limited to local editor-state seems to me to be a huge step backwards.

Re:Sublime Text 2.0 Released by cageface on Tuesday June 26, 2012 @12:37PM (#4162790)
I find it is extremely rare that typing speed is what slows me down

Auto-complete isn't about typing speed. It's about API exploration.

Re:Sublime Text 2.0 Released by kaffeinecoma on Tuesday June 26, 2012 @01:34PM (#4163090)
Exactly. I avoided IDEs for years thinking they were for lazy typists. Finally a friend convinced me to try one, and it totally changed the way I work. Just hit CTRL-space and see what you can do with it. Who needs to look up documentation when you can just hit CMD+B and jump into that library's source code? Oh the time I wasted...
Re:Sublime Text 2.0 Released by vidarh on Wednesday June 27, 2012 @05:36AM (#4166231)
If I don't remember a method or class name, I sure as hell don't want to auto-complete it into what I'm currently typing without opening up documentation.
Re:Sublime Text 2.0 Released by simonsarris on Tuesday June 26, 2012 @10:27AM (#4161965)
I used sublime text and my interns all use visual studio. I love both, but I can give a few points:

* No CTRL+D duplicate line in VS

* Can't use middle-mouse in VS to select multiple columns

* Can't place your cursor in many multiple locations at once in VS

* You can use ALT+DRAG to select columns in VS but there's no way to put a carat at the end of each of a bunch of lines of varying sizes

* CTRL+J to append the next line to the current one, removing all whitespace. I feel as if this has saved me a year of life.

Those five alone are extremely useful when writing JavaScript and HTML.

* The autocomplete in VS does not "learn" like the sublime text one does.

* No good incremental search in VS (might have changed on the very newest version?)

* CTRL+B opens the current HTML page being edited in my browser on sublime text. There's probably an equivalent in VS though

* highlighting a string of text highlights all similar ones in sublime text. In VS for C# it sorta does this if the string of text is a token

* The ability to sort and shuffle lines in sublime text can be useful at times, though this is usually when preparing data and not when writing code.

Re:Sublime Text 2.0 Released by serbrech on Tuesday June 26, 2012 @11:56AM (#4162576)
Oh, you're comparing ST2 to VS without R#.

* Ctrl + D does copy lines

* you can place the cursor at multiple places since VS 2010

* Extensive search with R# (Search files, classes, methods... * using CamelCase, fuzzy..)

* sort shuffle lines, methods or any blocks with R#.

So ok, it's R#, and I agree that ST2 is amazing out of the box. (LOVE it for the Rails side project I work on) but adding R# (or standalone add-ins) to visual studio will get you there too.

Navigation within a .NET solution will always be better with VS + R# in my opinion.

Re:Sublime Text 2.0 Released by kingatomic on Tuesday June 26, 2012 @10:47AM (#4162105)
I also much prefer ST2's regex grammar for find/replace.. not only do you have to enable regex find/replace in VS, it uses a clunky grammar.
Re:Sublime Text 2.0 Released by bemmu on Tuesday June 26, 2012 @01:55PM (#4163223)
I use ST2 and have been learning about using multiple cursors, but I wonder what kind of things are you doing where that comes in handy? So far I haven't had a chance to use it, especially since there already is a shortcut for commenting things out.
Re:Sublime Text 2.0 Released by amatix on Tuesday June 26, 2012 @04:54PM (#4164053)
Example: Take some log text, where all you're interested in is the messages, and you don't want hostname/date/time/etc cruft.

1. Ctrl+A Select all the lines

2. Ctrl+Shift+L to split into multiple cursors, 1 per line

3. Home/Ctrl+Shift+arrows/etc to select stuff to copy/delete

I find it easier than constructing a regex to pass to find/replace.

Re:Sublime Text 2.0 Released by est on Tuesday June 26, 2012 @08:45PM (#4164959)
> but I wonder what kind of things are you doing where that comes in handy?

so you got some property names like

a

b

c

d

now convert them into ['a', 'b', 'c', 'd']

with ST2, you middle mouse vertical select, ctrl+right, press ', then end, press ,, then del.

Re:Sublime Text 2.0 Released by encoderer on Tuesday June 26, 2012 @10:27AM (#4161970)
Have you ever watched somebody proficient with Vim or Emac, who has spent years crafting the perfect .vimrc for themselves?

You'd get it if you did.

Re:Sublime Text 2.0 Released by falling on Tuesday June 26, 2012 @10:36AM (#4162039)
And why would I want to spend years crafting the perfect .vimrc for myself when tools exist that already do 80% of that better and without any configuration?

I say this with a carefully crafted and organized .vim folder.

Re:Sublime Text 2.0 Released by mhd on Tuesday June 26, 2012 @11:11AM (#4162275)
Which magical tools are we talking about here?
Re:Sublime Text 2.0 Released by dakotasmith on Tuesday June 26, 2012 @10:46AM (#4162094)
Conceptually, because of needs which exist outside of the coverage of that 80%.
Re:Sublime Text 2.0 Released by hollerith on Tuesday June 26, 2012 @11:15AM (#4162300)
Upvoted.

And I have an .emacs.d folder carefully crafted over 20 years.

Re:Sublime Text 2.0 Released by aerique on Wednesday June 27, 2012 @04:17AM (#4166066)
Same here but with every new Emacs version I can cull a good bit from it. Starting from Emacs 23 it has decreased by at least 50%.
Re:Sublime Text 2.0 Released by hollerith on Wednesday June 27, 2012 @11:33AM (#4167488)
Do you mean it is decreased >= 50% since you started using Emacs 23? What version are you using now?
Re:Sublime Text 2.0 Released by aerique on Wednesday June 27, 2012 @06:34PM (#4169530)
Yes, sorry to be unclear. When Emacs 23 was released I took a good look at my config and noticed that a lot of things I had added over the years weren't needed anymore.

Looking at the new features in Emacs 24 I expect my config to shrink even more. I am still on Emacs 23 but will switch when it both shows up on Debian Testing and when my workstation needs a reboot.

Re:Sublime Text 2.0 Released by njharman on Tuesday June 26, 2012 @11:59AM (#4162597)
Because that last 20% is 80% of the power/speed/productivity.
Re:Sublime Text 2.0 Released by riffraff on Tuesday June 26, 2012 @03:49PM (#4163792)
citation needed
Re:Sublime Text 2.0 Released by kamaal on Wednesday June 27, 2012 @06:18AM (#4166305)
>>And why would I want to spend years crafting the perfect .vimrc for myself when tools exist that already do 80% of that better and without any configuration?

If only it were that easy. Programming trends change drastically. What is fashion today, isn't tomorrow. You need tools that survive this for years(In case of vim and Emacs its decades).

I am all ears to hear about the 'tools' that you talk about.

Re:Sublime Text 2.0 Released by kingatomic on Tuesday June 26, 2012 @10:40AM (#4162062)
I use both IDEs and ST2. As with most things it comes down to personal preference, but perhaps mine may shed a little light.

I use Eclipse for Java, VC++10 for C++, and ST2 for everything else. "Everything else" is a hodgepodge of things; dynamic scripting languages, JSON/CSV files, plain text files, etc. Basically everything one may use Notepad++ for, true; but I've found that I much prefer the ST2 interface, a subjective conclusion on my part. It's fast, it looks nice (to me), and I like the API.

Re:Sublime Text 2.0 Released by de90 on Tuesday June 26, 2012 @10:24AM (#4161937)
For me the biggest reason is speed. I use visual studio at work and love it, but when I am at home writing javascript. All those extra features just make it such a slow experience.
Re:Sublime Text 2.0 Released by mpolun on Tuesday June 26, 2012 @10:49AM (#4162116)
My biggest problem with IDEs is that they often don't like when I want to do something nonstandard. I've had trouble using git with Eclipse (it works, but I spend more time than I want fooling with it), for example. It's usually faster and simpler to add support for a new programming language or environment to a programmable text editor than to an IDE. Currently I'd say that the best environment for working with Go, is to use sublimetext2 and the GoSublime extension.

IDEs are valuable when doing what they were designed for (I use Eclipse when I write Android apps, and I'd probably use Visual Studio if I was going to write something for the MS stack), but I'm rarely doing things that fit nicely into their world, and I end up spending more time fighting with them than they are worth.

That's just for me though.

Also: you can get completion in many text editors if you install the right plugins. See the GoSublime extension that I mentioned for example.