News for hackers. Stuff that matters.
Re:Edit like an Ace by dotBen on Monday August 15, 2011 @03:52PM (#2888374)
By having this tied into github I'm beginning to see how use Ace (or similar) instead of vim/emacs as a day-to-day code edit workflow...

Just fork a project to your account on github, edit in Ace, and then make a pull request when you are done.

Would people do this? If not, is Ace just going to be for minor edits, etc?

I'm curious how other people will use this.

EDIT: people the child comments are telling me the fork is done automatically for you - cool. I need to play around with this on other projects!

Re:Edit like an Ace by rtomayko on Monday August 15, 2011 @04:13PM (#2888475)
Just wanted to note that a fork is automatically created and a pull request created when you edit a file in a repository you don't have push access to. So the workflow is even simpler: 1.) see file, 2.) edit file and save, 3.) land on send pull request page.
Re:Edit like an Ace by ithkuil on Monday August 15, 2011 @08:20PM (#2889244)
great. But perhaps a fork is still needed for editing multiple files and submitting as one pull request?

or the pull request would accumulate changes?

I cannot reproduce but I noticed a situation when I was issuing multiple pull requests and the previous pull request somehow got commits that weren't intended to end up there; so I begin to think that it was intentional.

(just asking because I would like to avoid creating a tmp github account just to try that out, otherwise I wouldn't bother you with silly questions)

Re:Edit like an Ace by albertsun on Monday August 15, 2011 @09:33PM (#2889416)
Pull requests do seem to accumulate changes if you push to your fork while there's one open.
Re:Edit like an Ace by vmind on Monday August 15, 2011 @03:56PM (#2888394)
Ace is gradually gaining full IDE features like syntax checking, split views, and responsive behaviours such as auto-brace/bracket/parens insertion.

If you want an online-only workflow, Cloud9 already offers github as a backend for an Ace powered IDE. I think Ajax.org have hired someone to work on IntelliSense style auto-complete for Cloud9, not sure if those will be suitable to be put into Ace itself.

Re:Edit like an Ace by rat on Tuesday August 16, 2011 @04:01AM (#2890292)
how is split views an ide feature?
Re:Edit like an Ace by mtogo on Monday August 15, 2011 @03:53PM (#2888382)
Imho, if i'm going to download the code to run and test it anyway, i might as well use an editor on my computer (vim/e/sublime) and skip Ace.
Re:Edit like an Ace by masklinn on Monday August 15, 2011 @04:35PM (#2888563)
> Just fork a project to your account on github, edit in Ace, and then making a pull request when you are done.

Github's edit feature does all that: if you're trying to edit a file in a third party's project, it creates a fork and opens the file for editing, and creates a pull request when you commit your edit.

> If not, is Ace just going to be for minor edits, etc?

Well yeah, since you can't really test the code (for now at least, maybe they'll build some sort of testrunner via VMs later on) it's not like you can perform significant code editions with it. But for docfixes, typos or minor stuff it's very handy.

Re:Edit like an Ace by philjackson on Tuesday August 16, 2011 @04:16AM (#2890325)

    Just fork a project to your account on github, edit in Ace, and then make a pull request when you are done.
I'm not sure that would be plausible for anything other than documentation or maybe typo fixes in string literals. I would ask contributors to my projects to make sure they've run tests (and made new ones, if need be) before sending a pull request.
Re:Edit like an Ace by highriseo on Monday August 15, 2011 @04:40PM (#2888590)
I wonder if joint support with somebody like heroku is coming. Being able to develop and deploy all from your web browser would be a very cool feature.
Re:Edit like an Ace by jambo on Monday August 15, 2011 @08:19PM (#2889242)
Of note, this was the core feature of Heroku when they first started out (no need to know git/command line).
Re:Edit like an Ace by beaumartinez on Monday August 15, 2011 @04:35PM (#2888567)
Well, you can't run tests on code you edit this way; I'd say its intended usage is just minor edits such as typoes.
Re:Edit like an Ace by nasmorn on Monday August 15, 2011 @05:11PM (#2888730)
Well this sounds like a problem that could be fixed quite easily, albeit it would cost some money to do so. But for people willing to pay for this kind of workflow it would be no issue to provide them with a testing machine. Since you only run tests every few minutes or so it wouldn't even be too resource intensive for most people.
Re:Edit like an Ace by bricestacey on Monday August 15, 2011 @07:08PM (#2889081)
Travis-ci is already doing something to that effect. Check them out. https://github.com/travis-ci/travis-ci
Re:Edit like an Ace by erikb on Tuesday August 16, 2011 @03:53AM (#2890284)
I hope that someday you can work like that. But I doubt that people can work like that when they are not able to test their code. At least adding unit test capabilities is absolutely nessesary for that.
Re:Edit like an Ace by nknight on Monday August 15, 2011 @04:11PM (#2888463)
Well, I just did a fork -> edit with Ace -> pull request for two little documentation fixes in a library I use. It was quite convenient. But I don't see using it for a project I frequently contribute to, unless I'm stuck away from my usual dev environment (which would be strange, since it's my laptop).