13 報

Share this post

開發者週報 #29 時間真難

www.ethanhuang13.com

開發者週報 #29 時間真難

Apple/iOS 開發者的一週大小事 2020/02/24-2020/03/01

13
Mar 1, 2020
Share this post

開發者週報 #29 時間真難

www.ethanhuang13.com

13的話

時間真難,這時間真難😥

(看前一期 · 回首頁)


時間真難

上一集 weak self podcast 播出以後,有資深工程師跟我推薦回去看 WWDC13 Solutions to Common Date and Time Challenges 這個 session,我也強烈推薦。

關於時間與日期的處理到底多複雜,我也大力推薦前 Apple 工程師 Dave DeLong(他參與過 UIDatePicker 的改版)的 Your Calendrical Fallacy Is... 這篇文章,檢驗一下自己對日期是否正確。

Dave 剛好也在本週開源(但是寫了很多年)的時間處理套件「Time」。它並不是要取代 Foundation 裡的時間處理,而是試著讓 API 更加好用。文件本身就很值得參考與學習。

Twitter avatar for @davedelong
Dave DeLong @davedelong
Introducing Time (née Chronology), a new @SwiftLang package for type-safe Date and Time calculations Repo: github.com/davedelong/time Blog: davedelong.com/blog/2020/02/2… Forums: forums.swift.org/t/introducing-… #HappyLeapDay
forums.swift.orgIntroducing “Time”Today is Leap Day, so I’d like to introduce you to a new Swift package I’ve been working on for over 2 years: Time is a package that makes date and time calculations more expressive and safe in Swift. It’s built on the power of Foundation’s APIs, but smooths away their many rough and ambiguous ed…
9:36 PM ∙ Feb 29, 2020
279Likes66Retweets

這時間真難

截稿時間已知 Facebook 取消實體的 F8 研討會。接下來要看 Google I/O 跟 WWDC 的消息了。

WWDC 的 sessions 已經是現場直播,所以這方面不是問題。但如果不能帶程式碼、app 去跟 Apple engineers 面對面討論問題,有些難題可能真的不好解決。

Twitter avatar for @ethanhuang13
13.4 @ethanhuang13
@_teapot418_ 拿自己的 source code 去問他們「這個壞掉了」XD 帶 radars 去問說有沒有修好或是 workaround 問某某商業模式或 UX 會不會影響到審查 立刻裝新 beta 版跑跑看有沒有 bug 趕快回報 ...之類的
5:58 AM ∙ Feb 26, 2020

Announcing ArgumentParser

Swift 官方推出了 CLI 在處理參數的套件,看起來相當簡單易用。原始碼在這裡。

小技巧

Twitter avatar for @twannl
Antoine v.d. SwiftLee 🚀 @twannl
When Xcode is not really helping you, try out using print to read out a variable 👌🏻 #swiftlang #iosdeQG
Image
2:36 PM ∙ Feb 25, 2020
318Likes50Retweets
Twitter avatar for @eJamesLin
CJ Lin @eJamesLin
方便實用的重載!
Twitter avatar for @jegnux
Jérôme Alves @jegnux
@KarthikShiva17 @merowing_ Ahah, that’s a simple custom operator that I use all the time. It’s like @devxoul’s `Then` library, but that works universally without the need of conforming to a protocol. FYI, I chose .. in reference to Dart’s “cascade operator”. https://t.co/WuakkjcAgY
4:14 PM ∙ Feb 27, 2020
17Likes2Retweets

最近的坑

Twitter avatar for @joe_trash_talk
__難哥 @joe_trash_talk
iOS 13 UIView animation 💥的原因是 storyboard 裡 view 的 layout 選成 automatic 改成圖片中這樣就好了😂😂😂 #對不起我只會storyboard (;´༎ຶД༎0qmP
Image
7:59 AM ∙ Feb 25, 2020
9Likes1Retweet
Twitter avatar for @ViolistMonet
Monet @ViolistMonet
如有雷同,純係巧合 公司裏的正妹 PM 細心地畫好眼線,把短裙拉高一點並且很快的喬一下奶 同事問:要去約會? 答:沒啦,要跟工程師談 schedule 縮短兩個禮拜 x x x (張無忌的媽媽在死前跟他說:孩子,你要小心漂亮的女人,她們會害你)
8:31 AM ∙ Feb 25, 2020
1,624Likes299Retweets
Twitter avatar for @stroughtonsmith
Steve Troughton-Smith @stroughtonsmith
A little more very-hidden documentation re bundle ID changes for Catalyst and Universal Purchase in Xcode and the account portal; Apple wants people off the maccatalyst. bundle prefixes ASAP. Pretty clear they now believe it should never have shipped that way
Image
Image
2:38 AM ∙ Feb 25, 2020
65Likes13Retweets
Twitter avatar for @chockenberry
Craig Hockenberry @chockenberry
PSA: If you're using a URL that begins with "prefs:" or "App-Prefs:" you will be rejected. It doesn't matter if you're trying to help a customer navigate a byzantine maze of switches and knobs to do the thing they want. You will be rejected.
5:59 PM ∙ Feb 26, 2020
39Likes6Retweets

還是笑一個吧

Twitter avatar for @weak_self
weak self podcast 👍 我就弱! @weak_self
[公告] 本節目終於想到了正式的中文名稱。為了紀念這個意義重大的里程碑,我們取得授權,放在 Twitter Cover。歡迎點我的頭進來看看🤣🤣Gfd
Twitter avatar for @ethanhuang13
13.4 @ethanhuang13
在認真考慮要不要買這張圖 https://t.co/Kz3lxIaSHB
1:50 PM ∙ Feb 29, 2020
63Likes9Retweets
Twitter avatar for @weak_self
weak self podcast 👍 我就弱! @weak_self
我就弱!
Image
1:57 PM ∙ Feb 29, 2020
41Likes4Retweets

weak self podcast 27: 來做 Side Project 系列之不要剛見面就要個資啊

全新企劃!由 13 負責主持的「來做 Side Project」系列探討 iOS 工程師自己做 app 時可以注意的細節。

補充資訊

有讀者回信補充說上週提到的 UIWebView 停用。2020/04 是針對全新的 app。既有 app 更新的話則是在 2020/12。相關連結請見去年底的官方新聞稿。


以上就是本期的內容。歡迎轉寄或推薦給同事或開發者朋友。有問題或回饋請直接回覆即可。

Share this post

開發者週報 #29 時間真難

www.ethanhuang13.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 ethanhuang13
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing