Swift Programming| Complete introduction


In Which Article Is Based On what Swift Is and Give You a Brief History. 

Introduction:

it's good to know what's going on with the language before you start learning so Swift is relatively new it was a surprise announcement at WWDC back in 2014 like developers that no cue was coming there watching the announcements it's like holy crap a whole new language like everything changed back in 2014 when Swift was announced that the engineers at Apple did was they took all their previous knowledge with objective-c and everything cuss Objective C is you know 30 years old and they did all their research on the new and modern languages and where things were going and they took all that and they built Swift apples next-generation programming a language that is for their future now a lot of people always ask me you know cuss the native IOS development admittedly,

 it is a niche programming language it's not as widespread as you know Java or JavaScript or Python but it is a niche so a lot of people ask me if I become As an IOS developer like does that limit my career choices and I always say like as a swift developer or IOS developer or whatever you want to call it you're tying your career to Apple and as long as you believe that apples not going anywhere it's gonna be around for a long time you know into an RvR whatever the direction they go I think that's a pretty safe bet speaking of safety amazing segue I want to Swiss major selling points is it's just a safe the language there's type safety objects you know can't be nil unless you use optional a big thing of Swift is you want to have a lot of compile-time errors, not run time errors as a new programmer newly aspiring a programmer that may have meant nothing to your writing, you are composing when the code compiles in X code whereas run time errors are you don't know about the error until the app crashes and then you got a debug so you're gonna see a lot of compile-time errors before you can even build your app with Swift.

History

Swift's very brief history again it was announced in 2014 just to let you know kind of how swift has evolved over the past couple of years now Swift had some massive changes and very rapidly in its early days and the reason you should know this as a new beginning Swift developer is because if you look for a blog post or maybe a Stack Overflow answer or some a resource that is old and has been updated since you know 2015 2016 that can get you in a lot of trouble because again through 2014 15 16 17, the good news is that change is starting to slow and swift is slowly starting to mature all right back to the beginning like I said before it was a surprise announcement in 2014 by 2015 Swift 2.0 was announced and it was also announced at WWDC in 2015 that Swift was gonna go open source later that year and ended up going open a source in Swift 2.2 later like in December of 2015 now open source was a big deal because that meant the IOS developer community as a whole could contribute to Swift language itself if If you ever want to look into this go to Swift org you can see the forums and see the discussions on proposals that are going to be implemented into Swift now don't get me wrong this is like heavy language implementation details most of it is even over my head but if you are interested in like how the language gets built or you know what new things are coming to the language that's the spot to go look now going open-source was a big deal but in 2016 Swift 3 came out and that was a huge a deal that was dubbed the great renaming 

What Is It:

basically what happened between Swift 2 and Swift 3 was a ton of breaking changes in Swift's API so it was a nightmare converting a swift two code base to a swift three code base because so much broke and so much changed however, Swift 2 to Swift 3 was kind of like just ripping off the band-aid right it was a ton of pain right there but you know Swift 3 2 Swift for 2 Swift 5 and upcoming so a 5 2 Swift 6 have been a breeze compared to that so they kind of got all the pain out of the way going from Swift 2 to Swift 3 so again when you're looking at old resources or old blog posts if it was done in Swift to stay away from it but like I said after that major Swift 3 the pain it's been smooth sailing since then Swift 4 came out in 2017 but Swift for kind of was the last major number release at WWDC up until so a 4 again every dub which was June of every the year we would get a new Swift so 3 Swift for well it kind of slowed down since then and you know WWDC 2018 was swift 4.2 and it slowed down and they recently announced with on the road-map to Swift 6 that you know there's no major year release it's just gonna release when it's ready which is great I love that because it almost felt like they were King Features into the language to make the annual release cycle and you know they've kind of learned.

Swiss six will release when it's ready no release date it'll come again that along with the fact that you know the change is coming aren't major breaking changes show that the language is maturing and because the language is maturing we're starting to see it leaked out into non-apple native platforms for example machine learning at Google via Tensor Flow that is done in Swift now that's in part to Chris Latiner who is one of the main developers behind creating and launching Swift at Apple he had left for Google and brought Swift over to Tensor Flow he has since loved Google as well just recently but he was spearheading Swift at Google as well so you know it got a good foundation over there and now you can also write server code and Swift Swift is almost ready for Windows that's being actively worked on but again Swift is such a young language that you know it may not be on all these other platforms yet but you can start to see the beginnings of it and if you kind of fast forward your mind five to ten years it's looking pretty good now we're about to go into a bunch of videos about the basics of the Swift language I want to reiterate that these are just high-level videos right a lot of these topics could be almost whole courses in and of themselves or at least multiple ten fifteen-minute videos again like I said before this is supposed to be your first video just your exposure to this world so again these topics will be pretty high-level but it is a good foundation for your future learning speaking of future learning I want to recommend a couple of resources for you to check out again just expand your world of Swift first is the Swift programming language book directly from Apple a little bit of a warning and  this is apples instruction booklet for Swift so it is pretty technical I'm right I remember reading it as somebody who had never coded before and just started my swift a journey which may be exactly where some of you are at it was way over my head but it is a very valuable piece of information so I do recommend at least checking it out but again don't get discouraged if you don't get any of it it's a pretty technical book for beginners what is geared toward beginners is the Swift playgrounds app and I definitely recommend downloading that it's free to download it's being actively maintained like every a year or so you'll see a pretty big that app is still growing but that's a great way to get started and play around as well they do a good job of magnifying things      

Comments

Popular posts from this blog

Perl Programming( The Beginners Guide )

What is CSS | CSS Explained For Beginners | Web Development Tutorial

Humanoid Robots(AI)