Just had a major conceptual breakthrough on what it means to build a routing system in an app 
-
Show this thread
-
My breakthrough is conceptualizing routing around inside an app as walking through a directed graph. Nodes are “pages” within the app. Edges are how you can get from page to page I’ve been thinking a lot about syntax around routing, and I love this graph-based idea
6 replies 0 retweets 20 likesShow this thread -
Replying to @davedelong
I've modeled apps this way before and it works great. Basically a state machine.
1 reply 0 retweets 3 likes -
Replying to @NachoSoto
Awesome! Any chance you have some literature or code online I can dig through to read more about this approach?
2 replies 0 retweets 3 likes -
Replying to @davedelong
I think this is the only public example I have (from 4 years ago): https://github.com/mindsnacks/MSSidebarController/blob/master/MSSidebarController/Classes/MSSidebarController.m#L90 … I made it for
@ElevateLabs1 reply 0 retweets 5 likes -
Replying to @NachoSoto @davedelong
I then learned a lot from
@andy_matuschak how to model these very cleanly with enums on Swift, but I can't think of any examples of that that are public.1 reply 0 retweets 2 likes -
Replying to @NachoSoto
Man I miss working with
@andy_matuschak. One of my fav memories of our time on UIKit was whiteboarding gesture recognizer exclusion, him suddenly stepping back, thinking a second, & then shouting out “This is the vertex coloring problem!” and disappearing into his office
2 replies 0 retweets 17 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
