--

While I agree, I’m not sure the switch/case example is the best one. So often abstractions at that level are super simple. Give me a map of well-named functions in JavaScript or single-method objects in a strongly-typed OOP language, and it’s a pretty simple translation.

Now, taking a simple UI widget and making it as customizable as a library component when it’s used the same way throughout an app… yeah, not so much.

--

--

Michael Landis
Michael Landis

Written by Michael Landis

Front-end web developer, React enthusiast, vagabond.

Responses (1)