TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Learn Swift

238 点作者 aidanf将近 10 年前

14 条评论

aidanf将近 10 年前
I&#x27;ve been learning Swift in recent months, and as part of that process I wrote a short book about the language.<p>It&#x27;s aimed at developers (like me) who can already program in a language like Ruby or Python and are looking for a quick tour of Swift.<p>It&#x27;s available to read for free online at <a href="http:&#x2F;&#x2F;books.aidanf.net&#x2F;learn-swift" rel="nofollow">http:&#x2F;&#x2F;books.aidanf.net&#x2F;learn-swift</a><p>I&#x27;ll be adding stuff about yesterdays announcements in the next couple of weeks.
评论 #9687501 未加载
评论 #9687020 未加载
评论 #9686789 未加载
评论 #9689318 未加载
评论 #9685943 未加载
评论 #9685881 未加载
评论 #9690007 未加载
ashwinl将近 10 年前
I&#x27;d highly recommend Functional Programming in Swift for more intermediate topics. By Eidhof, Kugler, and Swierstra<p><a href="http:&#x2F;&#x2F;www.objc.io&#x2F;books&#x2F;fpinswift&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.objc.io&#x2F;books&#x2F;fpinswift&#x2F;</a><p>No affiliation to the author&#x2F;book.
Zaheer将近 10 年前
Shameless plug - I made a site that gathers resources for learning Swift. Will be adding this shortly :)<p><a href="http:&#x2F;&#x2F;www.LearnSwift.tips" rel="nofollow">http:&#x2F;&#x2F;www.LearnSwift.tips</a>
评论 #9687282 未加载
评论 #9687400 未加载
Tloewald将近 10 年前
I like the style, brevity, and practicality of the book (at least the first few chapters; haven&#x27;t read it all yet). Good stuff and good luck with it.<p>I did find the first few examples with the REPL to be a bit confusing. Were you using a function before it was defined?
评论 #9686720 未加载
psophis将近 10 年前
Slight tangent, but are there any recommended guides&#x2F;books&#x2F;videos for leaning the iOS frameworks with swift?<p>I have recently started programming on iOS with swift. I got my head around the language just not any of the frameworks, specifically UIKit.
评论 #9687038 未加载
评论 #9693978 未加载
drussell将近 10 年前
This is very helpful. Thanks for sharing! Great that it&#x27;s free too :)
davnicwil将近 10 年前
This is fantastic, just what I was looking for, a very quick intro to swift that assumes I&#x27;m already a programmer.<p>The Apple docs, at least last time I tried reading through them, were like wading through treacle so this is a great alternative! I just read the first couple of chapters in 10 minutes and got all the key info I wanted with no fluff - great job!<p>One edit suggestion - I&#x27;ve noticed a couple of times so far that &quot;it&#x27;s&quot; is used incorrectly, for example in this sentence:<p>&gt; You can’t change the type of a variable once you’ve declared it. It’s type is fixed at the time it is declared.<p>I assume you know the error here but on the off chance you don&#x27;t:<p>it&#x27;s = it is (it&#x27;s a Bool) &#x2F; its = the possessive of it (Bool is its type)<p>It&#x27;s a little jarring so you might want to go through and fix these.<p>Cheers for the book! :-)
评论 #9699882 未加载
numbers将近 10 年前
In Chapter 4, you have a typo: &quot;dynamicly&quot; should be &quot;dynamically&quot;
评论 #9686753 未加载
yla92将近 10 年前
I love this. Btw, totally off topic : Is it possible to write iOS&#x2F;OSX apps by learning Swift without the knowledge of ObjC ? My background : I know some Java&#x2F;Ruby and do some Android apps.
评论 #9688281 未加载
brisance将近 10 年前
Nice, I&#x27;m learning Swift from your site. The kerning for Chapter &quot;10.4&quot; is killing me though. Other than that I&#x27;m enjoying going through it. :D
christudor将近 10 年前
Have just started learning Swift. Have favourited, and will be sure to give some feedback once I&#x27;ve made my way through the whole thing. Good luck with it!
rashthedude将近 10 年前
Hi Aidan, your about Author section has a typo says&#x27;bulding&#x27; rather than building.
评论 #9686193 未加载
mayrund将近 10 年前
Looks awesome! Thanks for your time I will definitely look into it deeply soon!
npalli将近 10 年前
Sorry, but this guide is not as comprehensive or updated as the official documentation [1]. Just compare the generics or memory management sections to see why you would want to read the official documentation. Maybe a high level tour of swift but you certainly are not going to learn swift with this guide.<p>[1] <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;Swift&#x2F;Conceptual&#x2F;Swift_Programming_Language&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;ios&#x2F;documentation&#x2F;Swift&#x2F;...</a>
评论 #9685984 未加载