TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Learn Swift

238 pointsby aidanfalmost 10 years ago

14 comments

aidanfalmost 10 years ago
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 未加载
ashwinlalmost 10 years ago
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.
Zaheeralmost 10 years ago
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 未加载
Tloewaldalmost 10 years ago
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 未加载
psophisalmost 10 years ago
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 未加载
drussellalmost 10 years ago
This is very helpful. Thanks for sharing! Great that it&#x27;s free too :)
davnicwilalmost 10 years ago
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 未加载
numbersalmost 10 years ago
In Chapter 4, you have a typo: &quot;dynamicly&quot; should be &quot;dynamically&quot;
评论 #9686753 未加载
yla92almost 10 years ago
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 未加载
brisancealmost 10 years ago
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
christudoralmost 10 years ago
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!
rashthedudealmost 10 years ago
Hi Aidan, your about Author section has a typo says&#x27;bulding&#x27; rather than building.
评论 #9686193 未加载
mayrundalmost 10 years ago
Looks awesome! Thanks for your time I will definitely look into it deeply soon!
npallialmost 10 years ago
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 未加载