The Forgotten History of OOP

https://medium.com/javascript-scene/the-forgotten-history-of-oop-88d71b9b2d9f

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

https://marginalrevolution.com/marginalrevolution/2019/06/civic-honesty-around-the-globe.html

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

https://www.zerohedge.com/news/2019-06-18/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辣椒油

https://www.quora.com/q/jlgybnwtgpduqria/An-attempt-to-make-Sichuan-red-chilli-oil%E8%BE%A3%E6%A4%92%E6%B2%B9?filter=&nsrc=2&snid3=4671540215

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”