4 ms·
This emerged as a result of writing performance-demanding games, but I think it should be more widespread, because it's much more fundamental, as opposed to obj
by Mikhail_Edoshin 7y ago
This emerged as a result of writing performance-demanding games, but I think it should be more widespread, because it's much more fundamental, as opposed to object-oriented design.
- mind-blight 7y agoDefinitely. I started writing React/Typescript this way, and it's been a pleasure. Each component is just a function, so composing components is just a data pipeline. If you have few, key data structures that you're working with, it makes reconfiguring that pipeline to fit product needs a while lot easier. It also means you naturally end up with small, testable, generic components without having to think too hard about it. You've five the heavy lifting in the data structure, and whatever behavior you want flows naturally from that.