Earlier quoted context omitted.
Basically, he just came up with something using FP that was more demo-able than somewhat hacky things people were already doing in other languages/environments. (For which, he deserves tons of credit.)
Bret victor's demos really have nothing to do with FP. The textual code demos in his learnable programming essay are all JavaScript and fairly imperative.
The Swift Programming Language
561–570 of 970 posts
Re: The Swift Programming Language
#562Earlier quoted context omitted.
>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 :)
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: The Swift Programming Language
#563Earlier quoted context omitted.
I don't get the hate. Yeah, syntax is unfamiliar, bu once I got used to it I began to really enjoy objective-c. Ymmv etc., but it's now one of my fav languages - though I guess this is mostly due to cocoa
I don't think syntax is really the issue. Using objc these days is clunky for reasons besides syntax.
@lazy var asHTML: () -> String = {
[unowned self] in
if let text = self.text {
return "\(text)"
} else {
return ""
}
}
Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.lRe: The Swift Programming Language
#564You appear to be advocating a new: [ ] functional [X] imperative [X] object-oriented [X] procedural [X] stack-based [ ] "multi-paradigm" [ ] lazy [ ] eager [X] statically-typed [ ] dynamically-typed [ ] pure [X] impure [ ] non-hygienic [ ] visual [ ] beginner-friendly [ ] non-programmer-friendly [ ] completely incomprehensible programming language. Your language will not work. Here is why it will not work. You appear…
While half of the things you checked in that copy-paste are wrong, let me take the bait and say why it will work: - it's not just an arbitrary language, it's the new officially sanctioned programming interface for Apple's gigantic, wildly profitable ecosystem - it's much more concise than Objective-C - it's faster than Objective-C - it's safer than Objective-C - it has more features than Objective-C - ...yet it's ful…
It makes good press release and marketing speak, but those assertions are a long way from making the OP 'wrong'.
Re: The Swift Programming Language
#565Maybe I'll pickup iOS dev, do you still have to have an mac to dev?
Re: The Swift Programming Language
#566Earlier quoted context omitted.
I immediately thought about that as well. I wonder how they pull it off? Swift is not a functional language, so they just save every single variable, or what?
Time travel debugging has existed for a long time, and it's not limited to functional languages; the most obvious way they could do this is through checkpointing.
Re: The Swift Programming Language
#567Will it still cost me an Arm, a Leg, and my first born to obtain the dev tools and compile code?
Release versions of Xcode are freely available at no cost (except that you need a Mac)
Re: The Swift Programming Language
#568Re: The Swift Programming Language
#569Re: The Swift Programming Language
#570A lot of the syntax is incredibly similar to rust.
Yes, but Swift looks much cleaner thanks to ARC memory management. I wish Rust has something similar, all those sigils make it messy.