React Best Practices

React Best Practices Container and View components a.k.a. Smart and Dumb components Higher Order Components Controlled Components A component should be an self contained module Create a wrapper 3rd party components Use propTypes and defaultProps When updating state, always use prevState Container and View components a.k.a. Smart and Dumb components This by far my favorite … Continue reading React Best Practices

React Core

React Core Dissecting the building block of React: A Component Defining a component Using a component Types of component Functional Component Component Lifecycle Dissecting the building block of React: A Component The whole idea behind React is modularization and reusability. React components are the building blocks of this modularization. The idea is simple: you encapsulate … Continue reading React Core

Why do you remember some movie quotes and not others?

Why are some movie quotes indefinitely etched in your brain and not others? What makes them more memorable? Are there any intrinsic semantic patterns that makes them memorable? These are the questions that Danescu-Niculescu-Mizil et al.  posits in their paper "You had me at hello: How phrasing affects memorability". The premise of the paper is … Continue reading Why do you remember some movie quotes and not others?

Netflix Million Dollar Challenge: Understanding the algorithm that won a million dollar.

Providing recommendations is ubiquitous for a variety of products and services. One prime example is Netflix. In 2006, Netflix made an open challenge to data scientists world wide: improve their existing recommender system by 10%, win a million dollar. They opened a huge training and test data set for data scientists to use. Koren et … Continue reading Netflix Million Dollar Challenge: Understanding the algorithm that won a million dollar.