Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Do swift: Swift 무작정 해보기

5,267 views

Published on

..

Published in: Technology
  • Follow the link, new dating source: ♥♥♥ http://bit.ly/2F4cEJi ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ♥♥♥ http://bit.ly/2F4cEJi ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Do swift: Swift 무작정 해보기

  1. 1. let swift(16) Do Swift: Swift 무작정 해보기 김윤봉
  2. 2. I’m 김윤봉 @y8k OSXDev.org 2016 Swift Study Staff iOS Developer @ Viva Republica iOSTip FB page LET me lOg
  3. 3. let swift(16) INTRO
  4. 4. Swift Project 시작 Swift Release History Swift 1.0 2010 2014 2015 Swift 2.0 Swift 3.02016 WWDC 2014 WWDC 2015 / Open Sourced by Chris Lattner WWDC 2016
  5. 5. I felt
  6. 6. & I decided “그래도 Objective-C 가 짱이지!!”
  7. 7. What?! To quote Apple, “Objective-C is not going away, both Swift and Objective-C are first class citizens for doing Cocoa and Cocoa Touch development.” So you can still use Objective-C. However, Apple seems to be encouraging you to use Swift for any new development, while not expecting you to go back and re-write all of your Objective-C code. Although this is pure speculation, we are guessing Apple will also be moving away from Objective-C for future Framework and API development, and some day Objective-C may even be deprecated. So, hop aboard with the rest of the raywenderlich.com Team on the Swift train :] Is Swift meant to replace Objective-C, or supplement it? * https://www.raywenderlich.com/74138/swift-language-faq
  8. 8. TIOBE Index * http://www.tiobe.com/tiobe_index?page=index
  9. 9. TIOBE Index - Swift
  10. 10. TIOBE Index - Objective-C
  11. 11. StackOverflow Report * http://stackoverflow.com/research/developer-survey-2016#technology-most-loved-dreaded-and-wanted
  12. 12. So..
  13. 13. let swift(16) I Did …
  14. 14. 5DUCKS Swift 1.2 2015년 중반 SK Planet (SK Telecom) iOS 개발자 2명
  15. 15. 바로예약 Swift 2.2 2016년 초중반 야놀자 iOS 개발자 3명
  16. 16. let swift(16) EPISODE
  17. 17. Do We Swift?! Swift Okay?! Swift는 1.2부터 안정화 되었다… 하지만…
  18. 18. Just Do It!
  19. 19. let swift(16) Anyway, Let’s Swift
  20. 20. Bottlenecks 손가락이 기억하고 있는 “[“, “]”, “;”, “NS”, “@“ 에라 모르겠다 모든 변수는 var로 통일한다! Optional and Binding Collection Types Property
  21. 21. Optional var name: String! = “초기값 필수” var email: String?
  22. 22. Binding var nickName: String? nickName = “y8k” if let name = nickName { self.nameLabel.text = name
 } else { self.nameLabel.text = “NoName” } guard let name = nickName else { self.nameLabel.text = “NoName” return
 } self.nameLabel.text = name
  23. 23. Collection Types let alphabets: Array<String> = [“A”, “B”, “C”] let roomAndNames: Dictionary<String, String> = [“101” : “Kim”, “102” : “Lee”] let alphabets: [String] = [“A”, “B”, “C”] let roomAndNames: [String : String] = [“101” : “Kim”, “102” : “Lee”] let selectedNums: Set<Int> = [1, 2, 3]
  24. 24. Property var name: String { get { } set { } } class fullName: Name { override var firstName: String { } }
  25. 25. Property class fullName: Name { var number: Int = 0 { willSet(value) {
 } didSet { } } }
  26. 26. Next Generics Closure Extension Protocol-Oriented Programming
  27. 27. Protocol-Oriented Programming protocol Drivable { var topSpeed: Int { get } } protocol Transport { var seatCount: Int { get } } struct Car: Drivable, Transport { var topSpeed = 150 var seatCount = 5 }
  28. 28. Cons. Framework API 사용은 거의 유사하다. Objective-C 능숙자는 여기까지만 알아도 큰 어려움 없이 Swift 로 넘어올 수 있다. 하면서 배우게 되더라… Swift의 빠른 버전업으로 유지/보수 비용이 증가하나 코드의 간결 성과 확장 용이로 인해 증가된 유지/보수 비용이 보상이 되기도 한 다. Swift를 이용한 Open Source 프로젝트 전 분야에 걸쳐 많은 시 도가 일어나고 있다. Objective-C 코드와 Swift 코드는 한 프로젝트 내에서 혼합하여 사용가능하다. 단, 한 파일 내에 두 언어의 코드 혼합은 안됨.
  29. 29. OSXDev.org Swift Study 매달 1회 오프라인 스터디 진행 Open Study The Swift Programming 
 Language by Apple inc.
  30. 30. 3.0…. What the…
  31. 31. let swift(16)

×