News for hackers. Stuff that matters.
Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by greggman on Thursday July 14, 2016 @08:41PM (#12098274)
Swift Playgrounds looks great but I'm surprised no one has mentioned the frustration that Apple is shipping something on iPad that other developers have been banned from making since iPad shipped

From the Swift Playground website:

> Send your code to a friend’s iPad using Mail, Messages, or AirDrop

No other apps are allowed to do this because of the iOS Terms of Service restrictions

Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by steve_taylor on Thursday July 14, 2016 @11:57PM (#12098858)
Codea has been around for a few years now. It lets you code iPad apps on the iPad using Lua. You can even export the project to Xcode so you can eventually deploy your creations to the App Store. And this is certainly not the only iOS-based coding environment. It looks like Apple has knowingly made an exception for this use case because it's not the type of thing they had set out to prevent with their rules around loadable code. Apps like Codea bring a lot of value to the platform.

http://twolivesleft.com/Codea/

Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by greggman on Saturday July 16, 2016 @06:29AM (#12105885)
The terms of service only disallow downloading code. As long as codea only allows copying and pasting code it's not breaking any terms

You can see this is how they handled it

https://bitbucket.org/TwoLivesLeft/core/wiki/CopyingCode

Swift Playground doesn't seem to have that limit which arguably makes Swift Playground a whole lot better and arguably anti-competitive

Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by swift on Friday July 15, 2016 @01:25AM (#12099107)
Wow; very cool! I've been hoping for something like this ever since I read Bret Victor's essay "Learnable Programming":

http://worrydream.com/LearnableProgramming/

Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by Longhanks on Thursday July 14, 2016 @10:17PM (#12098581)
Pythonista does the same since months, just for Python code.
Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by greggman on Saturday July 16, 2016 @06:18AM (#12105859)
That's great but unless they're running Python in WebKit it's actually against the current terms of service

> 3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by rhinoceraptor on Friday July 15, 2016 @09:15AM (#12100690)
You can even do little web servers in Pythonista and access it from the browser. I didn't think iPads allowed that sort of thing.
Re:Learning to code as a 30-year-old kid with Apple’s Swift ... by na85 on Thursday July 14, 2016 @09:35PM (#12098451)
By now, people are used to being dicked around by the masters of whatever walled garden they choose to play in.

It's not like this sort of behaviour is new to Apple (or any of their competitors) .