Seriously considering moving to SwiftUI to escape the hell of browser programming. But a much smaller world: e.g. a dozen high-quality parser libs/tools on JS; only ANTLR for Swift.
-
Show this thread
-
Replying to @jonathoda
I just roll my own stuff using canvas. Especially useful if your UI is very custom.
1 reply 0 retweets 3 likes -
Replying to @seanmcdirmid18
Yeah but stuff like grid layouts are a PITA. Just checked and SwiftUI doesn't have a grid layout yet!
1 reply 0 retweets 0 likes -
-
Replying to @seanmcdirmid18
Not in general. You need to bubble up min sizes and push down allocated sizes.
1 reply 0 retweets 0 likes -
Replying to @jonathoda
Yes. I generally do two passes for my UIs; the first pass is draw free, just collecting and caching sizes.
1 reply 0 retweets 0 likes -
Replying to @seanmcdirmid18
This is why programming sucks. You and I have repeatedly built parsers and layout engines so we can do it again when the tools are inferior or missing, but newbies are lost at sea.
2 replies 0 retweets 5 likes -
Replying to @jonathoda
This only means UI frameworks suck. It turns out that what is going on isn’t that complicated, and can be handled with just a bit of code (less code than getting the framework to do what you want if you want something very custom).
1 reply 0 retweets 0 likes -
Replying to @seanmcdirmid18 @jonathoda
At the end of the day, it is just some math that is very reusable. The whole approach of abstracting that away so it all becomes opaque is what trips us up.
1 reply 0 retweets 1 like -
Replying to @seanmcdirmid18 @jonathoda
Parsers are another good example: they are ridiculously easy to write, trying to make them super configurable isn’t going to pay off.
2 replies 0 retweets 1 like
Hot take: parsers and layout engines are only important to us because of the total paradigm *of programming* that @jonathoda is talking about. They're artifacts that are incredibly useful... for the computing universe we've already built.
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.