We could now start to write a complex user interface component, where users can enter individual time units in different input elements. However, I believe it's much more convenient to treat time duration input with a no-UI approach.
Put very simply, no-UI means that we use regular text input to provide user interactions. Well, that's nothing new right? Text input is where it all started. However, there's a significant trend in providing no-UI interactions lately. By combining intelligence in how we process the text input of users, no-UI interactions can actually be surprisingly efficient, and outperform complex user interfaces by far.
Instead of building a complex user interface to enter time duration, we can simply ...