We are forever chasing the ability to enter the flow state on command. We think pair programming can be a great example of what happens when you work with a system who is in the flow state with you. There are times where Alex and I will program together and time stands still, we share screens and one of us writes code while the other thinks from a different angle. We work through the problems with ease, there are no interruptions, every line of code written is correct, we are a cohesive unit whose sum is greater than its parts. We envision a future where Notion helps enter the flow state faster and stay there longer.
We measure the flow state with a combination of our calm and focus APIs. We hypothesized that people in the flow state have a calm mind. It happened to work well enough to prototype the application.
const calmAverage$ = notion.calm().pipe(The idea here is to create an observable that latches onto the calm API. We want to make sure we only are running when the device is connected and not charging. We never want to encourage the use of Notion while charging (see our powering Notion guide for this rational).
filter(() => currentStatus.connected && currentStatus.charging === false),
averageScoreBuffer(),
share()
);
calmAverage$.subscribe((average: number) => {
runningAverageCalmScore = average;
updateMindState(runningAverageCalmScore);
});
Comments
0 comments
Please sign in to leave a comment.