News for hackers. Stuff that matters.
Re:A JavaScript IDE for the iPhone by asolove on Wednesday October 20, 2010 @09:14AM (#1811036)
This is something I've wanted to do, so let me share the random ideas I had:

- Horizontal space is at a premium, so don't show line numbers. When scrolling, show the line numbers hovering over the lines (so I can find my spot in a long file if I need to), but I don't need to see them while actually editing a line.

- The big win on the iPhone is not so much writing as reading. Make it easy to download a GitHub repo of source I might want to read on my commute. And make it easy for a project to link to that. Then I can get familiar with the coding style and abilities of, say, backbone.js or some other new javascript thing, while standing on the Metro.

Re:A JavaScript IDE for the iPhone by binarymax on Wednesday October 20, 2010 @10:41AM (#1811365)
I've been mulling to do one as well, another idea is arrow keys to move the cursor about instead of trying to touch where you want it.
Re:A JavaScript IDE for the iPhone by cryptoz on Wednesday October 20, 2010 @10:31AM (#1811328)
Does the iPhone provide a way to download files like that? I'm running an older model (3G) so maybe that limitation is gone, but it's something that I find very lacking. Wow, though, being able to comfortably read js libraries - and write small tests, even - on a phone would be fantastic.
Re:A JavaScript IDE for the iPhone by semanticist on Wednesday October 20, 2010 @12:46PM (#1811862)
iPhone Safari supports local storage and local SQLite databases. You could force some sort of offline access into it.

There's no access to the filesystem in iOS Safari, no uploading or downloading files.

Re:A JavaScript IDE for the iPhone by blackmac on Wednesday October 20, 2010 @01:36PM (#1812036)
Implementing good scrolling with textareas not reacting to touch events is kind of hard. I will implement import of external files though, maybe not complete repos in the first step though
Re:A JavaScript IDE for the iPhone by mrspeaker on Wednesday October 20, 2010 @08:36AM (#1810912)
I wrote a similar one for CoffeeScript: http://www.mrspeaker.net/2010/04/29/instant-coffeescript/ but it uses the HTML5 cache manifest stuff to let it work offline (kind of) like a native app. I wrote to the creator of the JS IDE saying "please do the same!" but actually, I really want it so I'm also doing it myself (and will post him the changes when I'm done).
Re:A JavaScript IDE for the iPhone by blackmac on Wednesday October 20, 2010 @09:54AM (#1811186)
I am definitely going to do that, plus I will add a way to save scripts to the local SQLite DB.
Re:A JavaScript IDE for the iPhone by shawndumas on Wednesday October 20, 2010 @09:11AM (#1811029)
I've been using (and loving) JsAnywhere [1] (iTunes link[2])

-----

[1]: http://jsany.org/

[2]: http://itunes.apple.com/us/app/javascript-anywhere/id3634522...

Re:A JavaScript IDE for the iPhone by binarymax on Wednesday October 20, 2010 @10:39AM (#1811358)
I use and love jsanywhere but it is desperately in need of key shortcuts! switching key layouts every time I need ;(){}[]+-= is a killer.
Re:A JavaScript IDE for the iPhone by jot on Wednesday October 20, 2010 @10:43AM (#1811371)
Another alternative worth checking out is JSConsole:

Browser: http://jsconsole.com/ iOS: http://jsconsole.com/app/ Source Code: http://github.com/remy/jsconsole

Re:A JavaScript IDE for the iPhone by nene on Wednesday October 20, 2010 @09:22AM (#1811062)
It's sad that this app doesn't work with a normal desktop browser - IMHO one shouldn't rely completely on touch events.

It almost works with Android, except for the special-characters-menu, the tooltip of which gets hidden under textarea.

Re:A JavaScript IDE for the iPhone by donohoe on Wednesday October 20, 2010 @12:20PM (#1811770)
I'd like to use this as an opportunity to implore someone to write a JS/CSS/HTML editor for iPad, with option to sftp it remotely and simple syncing... a scaled down version of TextMate with simpler features.

I would happily pay for this app.

Re:A JavaScript IDE for the iPhone by lukifer on Wednesday October 20, 2010 @02:48PM (#1812372)
I have a great idea for how to do one, but not nearly enough time to make it happen. :(
Re:A JavaScript IDE for the iPhone by kleiba on Wednesday October 20, 2010 @10:55AM (#1811418)
Great little tool, but of your list of possible features to add, I think syntax highlighting should move to the top. It improves readability and thus usability greatly.
Re:A JavaScript IDE for the iPhone by charlief on Wednesday October 20, 2010 @11:08AM (#1811485)
Now we can all code epic viruses on our phones just like in the pilot of the latest Doctor Who series.
Re:A JavaScript IDE for the iPhone by wmblaettler on Wednesday October 20, 2010 @09:14AM (#1811037)
I tried it on my iPod Touch, OS version 3.1.2 and could not get the keyboard to come up or see any code from the samples appear in the textarea. Seems pretty cool in the iPhone Simulator though.
Re:A JavaScript IDE for the iPhone by stefanvarga on Wednesday October 20, 2010 @10:25AM (#1811309)
We did it as native app, for now Android.. iPhone to come. We have some cool features. Javascript will be supported in next official release, but for hacker news a preview version with JS - http://www.touchqode.com/downloads/experimental/MobileCodeEd...

---- [http://www.touchqode.com/]

Re:A JavaScript IDE for the iPhone by camtarn on Wednesday October 20, 2010 @09:34AM (#1811115)
That's awesome - best part about it being a webapp is that it works beautifully on my Android phone too :)
Re:A JavaScript IDE for the iPhone by blackmac on Wednesday October 20, 2010 @04:53PM (#1813039)
The first update with some of the most requested features is here. Have fun!

http://webdesktoplife.com/post/1360939954/first-update-for-j...

Re:A JavaScript IDE for the iPhone by PanMan on Wednesday October 20, 2010 @10:01AM (#1811211)
Looks nice, but way to small on the iPad. I would guess with a few small CSS changes (relative instead of absolute positions) it would work well on both devices.
Re:A JavaScript IDE for the iPhone by 8ren on Wednesday October 20, 2010 @11:59AM (#1811691)
It's a little bit amazing having a touchscreen keyboard, in that if it's missing a certain key, you can just add it.
Re:A JavaScript IDE for the iPhone by ryanwaggoner on Wednesday October 20, 2010 @06:50PM (#1813466)
Awesome, but what's with the domain name? Might want to pick something easier to remember / type.
Re:A JavaScript IDE for the iPhone by sp4rki on Wednesday October 20, 2010 @01:34PM (#1812027)
This is almost as cool as the dreams I keep having of a Vim port for the iPad.
Re:A JavaScript IDE for the iPhone by Raphael on Thursday October 21, 2010 @12:31AM (#1814289)
OK, hard mode: use standards so that it works on more than one platform.
Re:A JavaScript IDE for the iPhone by Detect on Wednesday October 20, 2010 @12:28PM (#1811801)
Can we make saving easier? Maybe Share/Email This?
Re:A JavaScript IDE for the iPhone by blackmac on Wednesday October 20, 2010 @04:53PM (#1813043)
The new version has email sharing. Thank you!