Recently a study on theories of interest has been all over internet. The study by Yale-NUS and Stanford examined implicit theories of interest, fixed theory and growth theory. Here is what the paper says and my take on them. Continue reading
Dinner Delivery Cleanup Problem – Problem Setup
A company offers dinner for its employees who are working late. The dinner is ordered via delivery.
One day, the admin noticed that the plastic bag for packing and extra condiments were not thrown away after people have taken their food. Continue reading
Update on 12 Sept 2018:
React Apollo introduced official documentation on testing in June 2018:
You can still read my original post below, which includes Enzyme specific techniques that is not covered in official docs.
The only documentation that I found online for testing React Apollo component is a comment from React Apollo team on GitHub, and it is not using Enzyme.
So how do you test React Apollo components with Enzyme? And perhaps more importantly how do you get access to the inner component wrapped by React Apollo as a higher-order component (HOC) to mock its functions and verify its behaviours? Continue reading
The most interesting aspect of bilingualism is numbers. Counting numbers is such a fundamental skill that it is often used a tool to determine one’s native language. However, there is much more happening when a bilingual person counts. They can even count in bilingual numbers.
I had plenty of learning lessons in my first two months as a full-time software engineer, but one thing that stood out to me is the lesson on priorities. Continue reading