Create Node.js CLI's that Intelligently Adapt to Usage with Frecency

Shawn Wang
InstructorShawn Wang

Share this video with your friends

Send Tweet

In stateful interfaces, there's a tradeoff between recency and frequency, two seemingly similarly aligned goals for guessing user intent. Recency biases towards newer entries being more likely to be what you are looking to do. Frequency biases towards betting on you doing the same thing you've always done. Fortunately there is an established algorithm that trades off frequency and recency, and chances are you've already used it in Slack or other similar interfaces!