ios 快說SwiftUI對iOS開發者影響 Apple 在這介WWDC對Cocoa Cocoa Touch 的Developer按了一次Reset,最起碼UI層面上。不少身邊友人看了簡介,立即中年危機上身,開始吐糟門檻又變低了一大半啊,新人湧現啊,存在感決失啊如此這般。但是真的便是這樣嗎?其實同時是,亦都不是。首先,對於開了簡介便下此判斷的人,我想說聲對不起,對你來說,可能真便如此。或許那麼簡單便下判斷,便是你那中年危機的成因。你需要的,不是讓Apple收回成命,而是重新審視這些年來,自己學會了什麼。不是說你一定便不求上進,只是可能在軟件開發的領域裡,你嚴重偏科了。讓我們認真聊聊吧。軟件領域,是進化得最快的一個行業。就算只談UI,在SwiftUI出現之前,
code Node.js project [Live updating] The Ground Rule:Common Javascript practise1) Maintainabilityis always the first priority when making any decision. (Please refer to following section for detail)2) Transparency:4) Horizontal dependency should be minimise5) Although you don't
programming 關於開四停三的「大」數據迷思 新年回廣州探親,在親友車上,聽其誇耀現在廣州市的數據處理能力及規模的厲害。cctv滿街,最少一星期的視頻數據才能支撐得起那開四停三的厲政,這般那般。當然了,我對中國挖掘個人數據的能力,是不會致疑的。要說當今世界對圖像的深度學習領域,中國必為前列。而其背後的主要推動,當然是監控的需求。在這番共聚天輪的家庭閒聊之中,最叫我好奇的,是從技術角度能出發及解釋得了的一個問號 - 開四停三的數據規範。首先,視頻數據是不會直接入庫的。視頻可以儲存,數據可以接某視頻或其分段,但沒有表是直接一個BLOB把視頻放進去的(嗯⋯⋯是沒有的🙈)。想當然,分析也不會直接依賴原始數據,特別是視頻數據。數據入庫在視頻數據分析前,首先是feature extraction,這裡可以走過不少的pre processing
programming Why I don’t admire Redux (Not against it) First of all, I need to disclose my background since it will help all of you more easy to understand my later points. I’m a mobile app developer almost all the time
code Love is function loveIs() { function isLove(date) { if (date.isInfinite) { return true } return isLove(date + 1) } const today = 0 if(isLove(today)) { console.log('I love you') return } } loveIs() // A never return recursion
culture 開發者該如何學習的角度看別人產品 作為一個開放者,我們該怎樣去看別人的產品? 要答這一個問題,便只能從所有軟件產品的根源說起⋯⋯ 電腦程式的本質,便是對電子活動的一層一層抽象。我們從電流的開合,數學的模擬,語言的整合,直到圖形系統,無一不是在更高的位面對低位面的一次抽象。 但即使是每天都進行著抽象活動的我們,也未必會時刻保持抽象的角度看待別人的產品。因為我們太習慣於具象的世界了。 上一次我看見的開發者集體跳崖事件,便是material design出現時。 抽象是一層一層地向上的,我們繼續談Material Design。 遊戲開始,請簡短說出什麼是Material Design。 3 2 1 ⋯⋯ 好了,對於你來說什麼是Material Design呢? 是卡片、圓角?陰影、過渡?
development let’s define struct in a function! Swift Swipe The first time I know I can define a struct within a function body, I was quite surprised. Why the hell I want to do such annoying thing? For naming scope? No, I
boilerplate kickstart iOS your boilerplate Instead clone a project through XX-Boilerplate, I think you might be interested in what we want and why we want to setup a iOS project. After you create a plain new project, the
culture Why Apple? Warn This post is not intend to argue any programming language. Barely related, it would be human language. Before you continue to read, I should warn you first. The following context may require
development Use UICollectionView to implement highly customisable Bar Chart When working on the new product Fruitful, I found that a Bar Chart framework with clear API and easily yet highly customisable is so difficult to find(OK, free is required). What a
development Performance Let's say we want to get the first element in type Optional U in a array of type [T], T may or may not be type casted into U what will you do?
development How I hack Pacific Coffee and get free drinks( a lot of)? First of all. The story bellow is done by my own payment as it's an experiment. Also it just work. Also, I will provide a very simple solution for such system. Please don't
development How to make a Message framework? Beginning and planing Let's make a Message framework and do some practice on architecture. What we will cover in this series? Planing and architecture of a framework Kick start a project Dirty work of setting up
development Throw inside a do block and catch it back in Swift? Yes Lazy forks, it's just simple topic, but I did the experiment for you: enum SomeError: Error { case notBig case veryBig } func someErrorFucntion() { do { throw SomeError.veryBig } catch { print(error.localizedDescription) } } someErrorFucntion() // And it
development How I use gyb to achieve a more flexible localization in Swift Localization in iOS is so simple by using system provided mechanism. But it can be a nightmare if you want to achieve a more flexible goal with a so far convenient way to
development Don't write Swift 3 on your "wish list" I've been recently invited by many of company those who need to find a right iOS developer. The interesting part is, in almost all of their skill lists, they all want a swift
development Fewer "guard" more flatMap Swift's guard syntax is good, I admitted. But it's not always the best choice in some cases. Let's consider: something.callback() { someOther:SomeOther? in guard let someOther = someOther else { return } functionTakeSomeOther(someOther) } Indeed,
development Empower your welcome screen video with CIFilter Many of us like our app look trendy. How to be "trendy"? Put a video on the welcome our signup screen is quite a good answer. I am going to share my small
development Map Map Map better in Swift Map function is quite a convenience method that often used in functional(mainly) programming. In Swift, all collection types(Array,Dictionary,Set...) support map. It take a closure that take element type from
culture 書單紙 書讀唔多,只講最正: Programming: The Swift Programming Language 1,2,2.2 Objective-C Programming Language 2.0 Edition Seven Programming Language in Seven Week Think functional Functional Programming with Swift C程序設計 三十日自制操作系統 Code Code
development Modify Images of NSAttributeString Loaded From HTML in ease < div>Sometime we may want to load a html file and show it straightly on textview, fast and convenient. Also we might want to modify the images that automatically load from
development Promise in Swift Part-2 I will show you my implementation: let take = { (s:String) in let c = s print(s) } DispatchQueue.main.async { take("first call!") } // To make our following code cleaner, we delcare a
development Promise in swift? Write your own What is Promise? To me, Promise is just to make async call in a linguistic representation for human read. Think about it: somethingAsync{ ok in use(ok) ... anotherAsync{ ok2 in ... } } It help when
development 關於Cross Platform,是咁的 Cross Platform 既Framework,真係今期流行。 從以前唔成熟又lag又唔look native,到而家,好多solution都so far ok la。 而且對於Vendor黎講,又要壓價又要交貨,又或者對於Startup黎講, 一個mobile site既level可以解決到既問題快速上馬交兩個platform既功課, 又真係幾吸睛既。 你又Cross嗱? 而家真係好多Cross Platform tools,咩Xamarin、Talarik、React Native、Electron、Cordova ionic PhoneGap... 一大籮。而且家下個個都打正旗號話自己幾Native,真係⋯⋯開心啦⋯