2015年7月7日 星期二

Reflection

8th Jun - 17th Jun

https://www.gitbook.com/book/chriswong1/data-structure-and-algorithms/details


  • Linked Link 
  • Array
  • Stack
  • Queue
  • Tree
  • Hash
  • Backtracking


19th Jun to 28 Jun

WWDC 2015
- iOS 9

  • SafariViewController - the Safari-like viewController that shares functions with native Safari browser.
  • WKWebView can load local assets.
  • UIStackView for more easier layouts.
  • Additional to Auto-layout ( activate/ deactivate instead of adding/removing it from views)
  • Advanced NSOperation usage - everything wraps into a operation
  • ReplayKit - records the screen on any A7 or up devices 
  • Bigger payload for Push (2kB to 4kB)
  • canOpenUrls must add into info.plist
  • NSURLSession must use HTTPS now - add exception on info.plist
  • Contact Framework becomes more OO and provides filtering functions. AddressBook and AddressBookUI deprecated 
  • CoreLocation 
    • One time location access
    • use allowsBackgroundLocationUpdates to indicate the CLLocationManager instance needed to use background service
  • iPad Picture in Picture ( Use AVPlayerViewController for easy support/ AVPictureInPictureController for custom control / MVMoviePlayerViewController deprecated)
  • iPad SlideOver (Primary app for regular width / Second app for compact width)
  • iPad Split View
- Swift 2
  • try
    • try any operations that may be throws 
    • if the try is success, the operation carries forward
    • if the try is try! that means the operation throws will crash. 
  • throws
    • indicate what may goes wrong 
    • define your own ErrorType 

  • guard
    • guard thing when it is "if let"
    • else to do something fail of that condition
  • protocol extensions
    • protocol someMoreProtocol: originalProtocol
  • Swift is protocol-specific language (e.g. no more global map function) 
    • map([1, 2, 3], {*})
    • [1,2,3].map{*}

- WatchOS 2 ( full access , complications)

  • Extensions run on the watch 
  • Use WatchConnectivity framework to communicate back and forth to iPhone
  • Video and animations 
  • More access on the the watch like shaking
  • Location Service 
-  Universal Links ( Deep Link services)



https://www.gitbook.com/book/chriswong1/wwdc-2015/details

29 Jun to 7th Jun

Functional Programming (Haskell) http://www.seas.upenn.edu/~cis194/fall14/
Functional Programming (Racket from Hong Kong Open Source Conference 2015) https://github.com/chainsawriot/funcprog_hkosc15
Swift 2 ebook Pre release  (https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11)