Aria Minaei
08/31/2020, 8:50 PMCole
08/31/2020, 8:54 PMCole
08/31/2020, 8:56 PMCole
08/31/2020, 8:58 PMGarth Goldwater
08/31/2020, 9:30 PMGarth Goldwater
08/31/2020, 9:31 PMGarth Goldwater
08/31/2020, 9:31 PMCole
08/31/2020, 9:34 PMAria Minaei
08/31/2020, 10:01 PMintegration vs composition: I'm not entirely sure. It makes me feel like composition is like swallowing the other service like a library, while integrations are the icons on your landing page.That's how I picture it too. An example of "integration-style" programming that I deal with often, is the Node.js-style EventEmitter, where there isn't much of a principle in event ordering, concurrency, propogation, scheduling, etc, and the topology of dataflow is more emergent rather than explicitly designed and very hard to debug. It is still possible to compose things that use EventEmitters, but it's just not ergonomic. The composable counterpart to EventEmitter would be an FRP-style Observables like those in Rx.js. Observables there are just generalizations over functions and get the benefit of functions, such as recursion and explicit scope.
Aria Minaei
08/31/2020, 10:16 PM$('ul').reorderable()
(this is supposed to turn all <ul>
lists into lists that the user can re-order by drag/dropping their items).
But as soon as you need to nest two re-orderable lists, the code becomes quite awkward, especially if one list can create more lists inside itself. It is not impossible, just hacky.
Compare that with React, where a <ReorderableList>
is just a component, which are themselves a generalization over functions. Suddenly it becomes easy to write and use nested lists like so: <ReorderableList>...<div><ReorderableList>...
.Aria Minaei
08/31/2020, 10:18 PMAria Minaei
08/31/2020, 10:19 PMCole
08/31/2020, 10:21 PMAria Minaei
08/31/2020, 10:22 PMcomponentWillUnmount()
gets called. In refcounting, some sort of object.free()
gets called.Aria Minaei
08/31/2020, 10:24 PMare you familiar with using data-oriented programming? Esp that used in game development with entity-component-systems?@Cole Haven't used ECS in anything bigger than a toy, so not very familiar.
Cole
08/31/2020, 10:29 PMAria Minaei
08/31/2020, 10:30 PMYou might find this sort of intro to ECS interesting.@Cole Thank you! I was actually building another ECS toy yesterday and looking for a good intro.