Better HN
topnewbestaskshowjobs
Log inSign up

pirate3215

8 karma · joined Oct 3, 2023 (3y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

One reason I have heard about is implicit labelling doesn't work with all voice control tech, including macOS voice control[1]

[1] https://a11ysupport.io/tests/html_label_element_implicit

comment 2y ago · link · parent

Both patterns are valid, but do they both follow UI as a function of state?

In the approach where we maintain a temporary copy, should we count the copy as part of the state or should we call UI = f(currentState, oldState)?

comment 2y ago · link · parent

Whenever someone mentions "UI is a function of state", I think about transitions and animations. Is every frame in a transition also a function of state?

I tried adding a transition to a dialog box in React sometime back. When the user tries to delete some data, a confirmation dialog shows up. It disappears(with CSS transitions) when the user confirms. Deletion happens before transitions are complete and the user sees a different, unexpected state in the dialog for a flicker of time.

This is solved if all the data inside the dialog is actually a deep copy of state.

If this was not done via react, we could've prevented the dialog content from being bound to the state

Should UI really be a function of states?

comment 3y ago · link · parent

Interesting product.

The website can be more transparent. The careers page say "we're hiring all over the world." when in fact you're looking for people within 9 hour timezone.

Also, the about page says "We're a team of 35 from all over the world."