News for hackers. Stuff that matters.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by paultopia on Monday June 12, 2017 @10:34AM (#14537666)
Honestly, I try to write code on iOS all the time, and it's not really the absence of tools that can execute that code that really stands in the way. Instead, it's:

- The absence of a really good typing story. The 12.9 iPad Pro with smart keyboard is nice for typing text but terrible for moving the cursor around. It's agonizingly slow to do it with keyboard (highlighting is worse, for some reason) and inaccurate to do it with finger/fiddly to do it with Pencil.

The only text editor with vim keybindings (an absolute must in an environment where it's hard to move the cursor normally...) of which I'm aware is Buffer, while the only text editor with both good syntax highlighting and good github integration (via Working Copy) is Textastic. Honestly, I really wish one of those two would just buy the other so that I could have both.

- The absence of a really good ssh story. Prompt is nice, but for some reason, whenever I try to SSH into anything, there's so much latency that it is really painful to actually do anything. Maybe I just have slow network connections? But anyway, so much for just coding on a linode or something in vim.

Re:Apple’s Guidelines Now Allow Executable Code in Education... by nouveaux on Monday June 12, 2017 @10:47AM (#14537767)
I'm not sure why Prompt is slow for you but as a suggestion, I really like using Blink. It supports Mosh and it might help with your latency problem
Re:Apple’s Guidelines Now Allow Executable Code in Education... by yangl1996 on Monday June 12, 2017 @11:33AM (#14538067)
\+1 for this. Mosh solved all problems an iPad ssh client may have. It allows the client to go offline and reconnect in no time when the client is back online, which is a common case on iOS (apps get killed when being in background for a short time). Lower latency (thanks to local echoing) and seamless switch between networks (cellular and wifi roaming) are also definitely nice to have. I tested Blink (a client on iOS with Mosh support) on a high-speed-rail trip from Shanghai to Beijing and it was rock solid.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by paultopia on Monday June 12, 2017 @10:00PM (#14542450)
That is reaaalll nice. I like it a lot.

(Although I'm a little embarrassed that I paid 20 bucks for an app in the app store that's open source. But that's totally worth it to not have to fight with xcode...)

Re:Apple’s Guidelines Now Allow Executable Code in Education... by enedil on Tuesday June 13, 2017 @08:07AM (#14544171)
Don't be embarassed for paying for open source.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by paultopia on Monday June 12, 2017 @10:58AM (#14537840)
Thanks! I'll totally give it a try.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by photojosh on Monday June 12, 2017 @09:27PM (#14542362)
Just checking... the Emacs + standard macOS shortcuts don't work for you?

Ctrl-A/E or Cmd+left/right arrows for start/end of line

Option+left/right for prev/next word

and more here: http://jblevins.org/log/kbd

Disclaimer: I use an Apple Wireless Keyboard or other BT keyboard, not the Smart Keyboard. YMMV.

(Edit: line breaks)

Re:Apple’s Guidelines Now Allow Executable Code in Education... by paultopia on Monday June 12, 2017 @10:05PM (#14542464)
oh, interesting! I didn't know those would work on iOS, but at least some of them do. That's a nice tip.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by photojosh on Monday June 12, 2017 @11:41PM (#14542727)
I did a little dance around the room when I first learned about them. They were so ingrained from my Mac usage (because as that link said, they're common across any standard text box control), that I think I didn't even notice that I was using them for the first few minutes.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by jimbokun on Monday June 12, 2017 @11:03AM (#14537864)
My son has been going through Swift Playgrounds, and I think the text selection and editing has been one of the things slowing him down.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by giobox on Monday June 12, 2017 @07:02PM (#14541833)
Does he know the two finger drag on keyboard gesture? This lets you drag the text cursor around like the keyboard is a giant trackpad - it's game-changing for typing on an iPad if you weren't aware of it before, and makes navigating text significantly better.
Re:Apple’s Guidelines Now Allow Executable Code in Education... by rahoulb on Monday June 12, 2017 @12:59PM (#14538795)
I use Blink (which means setting up Mosh, but Mosh is awesome)
Re:Apple’s Guidelines Now Allow Executable Code in Education... by sologoub on Monday June 12, 2017 @11:21AM (#14537992)
Been doing Prompt2 to Linode on an iPad Air (the first one) for a couple of years, mostly over 3G or LTE and haven't noticed much of a lag.

Perhaps my expectations are deflated because of the mobile connection...

Re:Apple’s Guidelines Now Allow Executable Code in Education... by jclardy on Monday June 12, 2017 @05:22PM (#14541237)
I agree, the one thing I was hoping for with the new 10.5" and other iPad announcements was some sort of indirect cursor input for the Smart Keyboard.

It doesn't even need to be a full trackpad, even just a nub would work - the idea is it would just be used to move the text cursor around the screen. The on-screen keyboard does it really well...but typing on the on-screen keyboard isn't great (and obstructs half the display.)

Re:Apple’s Guidelines Now Allow Executable Code in Education... by sedm0784 on Wednesday June 14, 2017 @06:25AM (#14551733)
> The only text editor with vim keybindings

Vim also has Vim keybindings. ;)

Sadly, the iOS version has a number of other issues that make it impractical for real use, which is probably why you overlooked it.

(Apologies for the pedantic derail. I couldn't stop myself.)

Re:Apple’s Guidelines Now Allow Executable Code in Education... by tootie on Monday June 12, 2017 @04:28PM (#14540815)
Wait, why?