The Forgotten History of OOP

Note: This is part of the “Composing Software” series (now a book!) on learning functional programming and compositional software techniques in JavaScript ES6+ from the ground up. Stay tuned. There’s a lot more of this to come!
Buy the Book | Index | < Previous | Next >

The functional and imperative programming paradigms we use today were first explored mathematically in the 1930s with lambda calculus and the Turing machine, which are alternative formulations of universal computation (formalized systems which can perform general computation). The Church Turing Thesis showed that lambda calculus and Turing machines are functionally equivalent — that anything that can be computed using a Turing machine can be computed using lambda calculus, and vice versa.

Continue reading “The Forgotten History of OOP”

Civic honesty around the globe

I am a bit late to this party, having been traveling, but I will serve this one up anyway:

Civic honesty is essential to social capital and economic development, but is often in conflict with material self-interest. We examine the trade-off between honesty and self-interest using field experiments in 355 cities spanning 40 countries around the globe. We turned in over 17,000 lost wallets with varying amounts of money at public and private institutions, and measured whether recipients contacted the owner to return the wallets. In virtually all countries citizens were more likely to return wallets that contained more money. Both non-experts and professional economists were unable to predict this result. Additional data suggest our main findings can be explained by a combination of altruistic concerns and an aversion to viewing oneself as a thief, which increase with the material benefits of dishonesty.

Continue reading “Civic honesty around the globe”

Being Fat Could Make You Stupid, Study Says

A new study published in the journal Frontiers in Endocrinology is warning that people consuming an additional 650 calories per day could develop impaired brain and cognitive functions.

Australian National University professor Nicolas Cherbuin, the lead author of the study titled Sugar in mind: Untangling a sweet and sour relationship beyond type 2 diabetes, analyzed 200 international studies including another that monitored the cognitive health of more than 7,000 people. Researchers concluded that lifestyle choices could lead to deteriorating brain functions.

Continue reading “Being Fat Could Make You Stupid, Study Says”

An attempt to make Sichuan red chilli oil辣椒油

Each Sichuan family has their own version of chilli oil.

My mom’s was rather simple: use the stone mortar to crush the dried chillies and pour hot oil to it afterwards.

So, I tried to make my own according to certain online recipes.

sesame, Sichuan peppercorn powder, chilli powder, salt

Continue reading “An attempt to make Sichuan red chilli oil辣椒油”

Why you should never tell the boss you have food poisoning

by Sarah Todd via Quartz

Whenever I have to stay home sick from work, I’m always uncertain about how much detail to give. Do I let my boss know that I have the stomach flu, specifically? Or would she prefer the simple elegance of “feeling under the weather?”

I mentioned this conundrum at a recent dinner with three friends, all of whom are managers. For the most part, they agreed they would not want to know the particulars of an employee’s reasons for missing work. They trust the people they manage and are troubled by the idea that workers would feel pressured to disclose the minutiae of their bodily ailments. The exception, they said, is when an employee has a chronic illness or condition, in which case it’s helpful to have a bit of context for regular absences.

Continue reading “Why you should never tell the boss you have food poisoning”

I Love Rabbit

Last year, we Sichuanese consumed 300 million rabbits, (70% of the total in China)

I still prefer this hot and spicy rabbit heads I had in Zigong, chopped in halves

Those in Chengdu are cold

The meat on the cheeks, the brain in the skull, the chewy tongues are my favorite

eyeballs, hmmm…okay…

The price is crazy

It used to be 2.5 yuan per head in the 90s, now soars to 12 yuan, same speed of the housing price in Chengdu, reflecting our inflation.

This one is also from Zigong. Still rabbit

Zigong dishes rank the first in Chengdu because they make you uncomfortable after dinner, but more addicted to it after you take the pills.

When picking meat to lose weight, beef is superb, but much more expensive than rabbit.

So, rabbit wins.