News for hackers. Stuff that matters.
Re:Show HN: Hydrogen Brings Light Table to Atom by mattdeboard on Wednesday May 20, 2015 @06:18PM (#9579724)
I don't understand how people use Atom for Python. Indentation in language-python is broken.

https://github.com/atom/language-python/issues/64 https://github.com/atom/language-python/issues/22

There are also several syntax highlighting issues but those aren't deal-breakers like broken indentation.

I'm sympathetic, I help maintain elixir-mode for emacs. I know it's hard to get this stuff right. But all things considered, Atom is unusable for Python for me. I was using it for working with JS & React but now that web-mode seems to have ironed at many kinks, I'm back to Emacs.

Re:Show HN: Hydrogen Brings Light Table to Atom by seanp2k2 on Wednesday May 20, 2015 @09:42PM (#9580516)
Know off-hand if there is a fix for JS auto-indenting in the works? My atom seems to just indent everything one level more than the last, never out-denting back. This is something which I've found JetBrains IDEs to be really good at, but at this point Atom has so many useful / fun packages and is so easily extensible that I don't think I'll switch back any time soon.

If there's already a package (I know about FixMyJS which...sorta works...) which does this well, please share!

EDIT: rainbow parens would also be KILLER in Atom, but last time I looked it sounded like it was non-trivial to modify the colors like that.

Re:Show HN: Hydrogen Brings Light Table to Atom by chc on Wednesday May 20, 2015 @06:53PM (#9579899)
Python indentation in Emacs was awful for a long time too, wasn't it?
Re:Show HN: Hydrogen Brings Light Table to Atom by mattdeboard on Wednesday May 20, 2015 @07:04PM (#9579939)
Doesn't matter, it works now. This isn't a moral question about which project has had the fewest bugs in their respective lifetimes. It's a practical question about which mode gets auto-indentation right right now.

edit: I don't know the answer to your question. What I do know is that it's really hard to get indentation right in Emacs for languages with significant whitespace where new lines are the only marker, and I assume the same is true for TextMate (which Atom piggybacks on for indentation). I'm not an expert on emacs, emacs lisp or creating language modes for emacs, but I do have a decent amount of experience[1]. So when I say I'm sympathetic I mean it down in my bones.

But still, if an editor can't get auto-indentation right, it's a deal-breaker.

[1] https://github.com/elixir-lang/emacs-elixir/blob/master/elix...

Re:Show HN: Hydrogen Brings Light Table to Atom by chc on Wednesday May 20, 2015 @08:47PM (#9580358)
Oh, I didn't mean it as a moral question or smack-talk or anything like that. I was just noticing that Python seems to be neglected by a lot of editors. I'm normally an Emacs user, but I gave up on it for Python because I had to spend too much time fighting it on indentation, so I was kind of surprised to see it mentioned in your comment and it made me think.
Re:Show HN: Hydrogen Brings Light Table to Atom by mattdeboard on Thursday May 21, 2015 @07:23AM (#9581962)
No, python-mode works beautifully for me. There are a couple very minor hiccups (I think there's some error with indentation after a method with no `return` statement or some such) but it's not a deal breaker.