Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As a human, I would like to be able to treat user interfaces as predictable, physical objects.

Unfortunately programs are built out of math and so I can’t usually do this.

Apple iOS actually does do a pretty good job of it, and that is a huge differentiator that I think is a large part of why iPhones feel great to use.



Thank the dispatch queue and Xcode will yell at you if you do anything other than UI and very trivial computes on the main UI thread


Some of Apple's biggest perf wins in the last several years involved removing dispatch asynchrony from code paths that really don't need to be asynchronous.

Obviously if you're writing an event-loop web server, then your file IO needs to be non-blocking or you're hosed. On the other hand, if you're reading a small configuration file from disk after your app launches, the most responsive option may well be to just read the bytes on the current thread and continue.

https://web.archive.org/web/20190606075031/https://twitter.c...

https://web.archive.org/web/20211005132519/https://twitter.c...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: