Ask the boss to combine this react example in "React Design ideas" to help explain Corey.

the following paragraph mentions Coriarization:

quoted from "React Design ideas": ide/react-basic-sharp%E8%BF%9E%E7%BB%AD%E6%80%A7continuations" rel=" nofollow noreferrer "> https://github.com/react-guid.

continuity (Continuations)
Unfortunately, since there are too many lists in UI, explicit management requires a lot of repetitive boilerplate code.

We can move some templates out of the business logic by delaying the execution of some functions. For example, use "Coreification" (bind in JavaScript). Then we can pass state, from outside the core function so that there is no boilerplate code.

this does not reduce the boilerplate code, but at least strips it from the critical business logic.

function FancyUserList(users) {
  return FancyBox(
    UserList.bind(null, users)
  );
}

const box = FancyUserList(data.users);
const resolvedChildren = box.children(likesPerUser, updateUserLikes);
const resolvedBox = {
  ...box,
  children: resolvedChildren
};


question:
I don"t feel clear about Collization. Please explain it with the above example. Thank you.

Sep.16,2021

your examples are not complete, such as what is FancyBox and likesPerUser? Where's updateUserLikes? It's hard to understand it all. But according to my understanding, another concept of
related to Corialization is that partial, partial means that you can execute without giving full function arguments, and then it returns
a new function to accept the remaining arguments.

Corialization seems to be more stringent than partial, saying that functions can only accept one argument. If a function takes more than one argument, the result of
Corialization is to accept one function at a time, which in turn returns a new function.

after knowing the concept, take a look at your example
Collization. I don't think there is any embodiment

.
Menu