Skip to content

Message bubbling #1105

Answered by hecrj
zmerp asked this question in Q&A
Oct 31, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

I structured the UI into pseudo-widgets, structs where each one has a view() and update() method.

Why? The Message, update, view triplet introduces the most complexity, you should never use it as a default to design your UI. Instead, you should start with simple view helpers and flat state first!

Overall, you should hand-craft the simplest API for the specific use cases of each part of your app. Avoid applying the same design pattern everywhere! If all you have is a hammer, everything looks like a nail.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zmerp
Comment options

@zmerp
Comment options

@zmerp
Comment options

@zmerp
Comment options

Answer selected by zmerp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants