News for hackers. Stuff that matters.
Re:Ask HN: What editor do you use? by Prrometheus on Tuesday December 30, 2008 @07:32AM (#414166)
Doesn't emacs really make more sense for a low-level language, though? A programmable editor seems like it would be more helpful with more code and more code repetition. Maybe it's because I'm starting with Matlab/Ruby/Python, but I really don't get why emacs and vim are so awesome.

I'm following the advice of the sages and learning emacs anyways. But mostly it's because I figure the sages are smarter than I am than actually seeing the need for it.

Also, debuggers are REALLY useful when you're learning a language for the first time. I shudder to think what my last machine learning project would have been like without a debugger. Maybe when I'm an ace, I can "just write good code and tests". But I'm not an ace, I'm a newb. I like seeing what my variables are doing and trying out commands that I think might do what I want them to do.

Re:Ask HN: What editor do you use? by scott_s on Tuesday December 30, 2008 @09:18AM (#414223)
I relied on a visual debugger (in Visual Studio) for much of my undergrad. In grad school (including now), I rely on gdb and printf/cout statements to debug my code.

I find printing the value of variables, and saving the record to a file, a valuable means of debugging. Instead of only knowing the current state, I can construct a picture of the entire execution of my program. Gdb also lets me do most of the things I did in Visual Studio. Most importantly, it tells me the line where the program crashed, and if I need to, it can tell me the state of variables.

Notice this has nothing to do with the editor I use (although I use vi). Visual Studio is an Integrated Development Environment - IDE. Once you learn enough Unix tools, Unix itself becomes your IDE.

Re:Ask HN: What editor do you use? by SwellJoe on Tuesday December 30, 2008 @04:38PM (#414709)
Also, debuggers are REALLY useful when you're learning a language for the first time.

Yes, they are. I thought we were talking about text editors?

Re:Ask HN: What editor do you use? by Prrometheus on Tuesday December 30, 2008 @04:59PM (#414732)
Don't you edit text when you are new to a language?