News for hackers. Stuff that matters.
Re:Introducing Swift by MIT_Hacker on Monday June 02, 2014 @03:07PM (#7835310)
This will revolutionize programming education.

Interestingly enough, the time manipulation in Swift was inspired by a game called Braid (http://en.wikipedia.org/wiki/Braid_(video_game)) released back in 2009.

This will help young programmers solidify the connection between giving the computer logical commands and what is outputted on the screen immediately.

Reminds me of how excited I was when Processing (http://www.processing.org/) was released which made it dead simple to interact with a screen and graphics. Didn't have live feedback, but it made it incredible easy to understand OOP.

Re:Introducing Swift by devindotcom on Monday June 02, 2014 @03:17PM (#7835432)
How do you see it as revolutionizing programming education? I'm pretty ignorant in this area, but it seems like a very high level language that abstracts a ton of stuff - and very platform specific too if I'm not mistaken. Is that really where we want people to start? I would have thought either a highly graphical language with buttons and widgets for early education, then moving onto platform-agnostic stuff like java and obj c would be the thing to do. Maybe you're talking about later stuff, college and beyond, which makes sense - at that point specialization to this extent seems like a good idea. But as I said, I'm pretty out of touch.
Re:Introducing Swift by jimbokun on Monday June 02, 2014 @05:09PM (#7836409)
I work with someone who previously was a college professor teaching computer science. The university decided to standardize on Mac and iOS hardware, and teach how to program iOS apps as a way to make the CS program more popular.

Trouble was, teaching the entire XCode and Objective C tool chain was not a particularly easy entry point for learning how to develop programs.

(Maybe there were other prerequisite programs, but still, you need to understand C to really understand why a lot of things are the way they are in Objective C, in addition to message passing and object orientation, pointers, and other quirky stuff in order to really wrap your head around iOS development.)

Swift and the corresponding tools look like they would have been a godsend for teaching that class. A more practical way to get students started writing programs they can actually run on their phone.

Re:Introducing Swift by kayoone on Monday June 02, 2014 @03:32PM (#7835596)
Swift doesn't look more high level than other scripting languages, but higher level than Obj-C yes, but also much more modern with a good toolset which will probably boost dev productivity.
Re:Introducing Swift by dazonic on Monday June 02, 2014 @03:51PM (#7835804)
Live preview. Kids changing a value and seeing their widget move differently or change colour instantly, that can be magical.
Re:Introducing Swift by rabino on Monday June 02, 2014 @03:18PM (#7835438)
This is not new though. See http://debug.elm-lang.org/
Re:Introducing Swift by twic on Monday June 02, 2014 @03:25PM (#7835531)
There was a time-travelling debugger for Java back in 2006:

http://www.lambdacs.com/debugger/debugger.html

But it never took off, for some reason. And it didn't have the arresting graphical aspect.

Re:Introducing Swift by brador on Monday June 02, 2014 @03:18PM (#7835449)
Was it inspired by Braid or the work of Bret Victor at http://worrydream.com?
Re:Introducing Swift by MIT_Hacker on Monday June 02, 2014 @03:21PM (#7835482)
Bret Victor admitted at some point to being inspired by playing Braid.
Re:Introducing Swift by talmand on Monday June 02, 2014 @04:31PM (#7836147)
I posted this elsewhere in this thread: http://vimeo.com/36579366

Bret Victor worked at Apple for a time as well.

Re:Introducing Swift by deng on Monday June 02, 2014 @03:22PM (#7835493)
> This will revolutionize programming education.

It could, if it were open and not limited to iOS/OSX.

Re:Introducing Swift by Angostura on Monday June 02, 2014 @04:34PM (#7836162)
A lot of schools have iPads, I suspect a few may end up buying Mac Minis.
Re:Introducing Swift by lachyg on Monday June 02, 2014 @03:14PM (#7835404)
This will also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies.

Setting up a dev environment can be one of the big reasons people fail to learn to program.

Re:Introducing Swift by sequoia on Monday June 02, 2014 @03:23PM (#7835501)
>This will also be incredible for ease-of-setup. Install Xcode, and you're ready to go. No other dependencies.

1. Buy particularly expensive computer 2. Register as an apple developer 3. Install Xcode, and you're ready to go.

> Setting up a dev environment can be one of the big reasons people fail to learn to program.

Citation needed :)

Re:Introducing Swift by rsfinn on Monday June 02, 2014 @03:31PM (#7835588)
Actually:

1. Buy a Mac mini for $600, which doesn't strike me as particularly expensive.

2. There is no step 2.

3. Download Xcode from the Mac App Store for free.

Re:Introducing Swift by WorldWideWayne on Monday June 02, 2014 @05:34PM (#7836592)
Yes, there is a step 2 at this very moment because I can't even download this version of XCode without having developer id.
Re:Introducing Swift by talmand on Monday June 02, 2014 @04:24PM (#7836091)