Centralize control flow : Keep switch or if statements in the main parent function, and move non-branching logic to helper functions. Let the parent function manage state, using helpers to calculate changes without directly applying them. Keep leaf functions pure and focused on specific computations. This divides responsibility: one function
Moreover, depending on something to function, in and of itself, is not pathological. Many people require a daily medication to keep a chronic condition in remission, for example insulin, blood thinners, anti-retroviral therapy, and anti-hypertensives. Dependence becomes a problem when people persist in using a substance despite its use causing harm... See more
At some point you will discover the Right Way to program, the thing which makes this all make sense , and you'll be convinced that the whole field would be so much better off if everybody else programmed the Right Way, too. For me the Right Way was test-driven development; for you it might be functional programming, lisp, formal methods or one of a
When I talk about taste in business, I mean the ability to consistently make decisions that demonstrate respect for your audience, show deep empathy for their needs, and deliver aesthetically-pleasing experiences that drive positive business outcomes.
So much of social media is, by design, condensed information — it’s made to be bite-size. So the internet feels faster paced. It’s been really soothing to go to a space where I’m still meeting my desire to connect with people and talk with people, but in a digital realm that’s slower, and that is allowing for a bit more vulnerability, a bit more... See more
The illusion persists because there’s so much money in it. Back in 2016, Ben Thompson wrote that Google’s AI efforts were at odds with its business model: “If a user doesn’t have to choose from search results, said user also doesn’t have the opportunity to click an ad, thus choosing the winner of the competition Google created between its... See more
I don’t talk about it much but I do work at Google and I just want to contribute, as a small addendum to the wider conversation about AI, and how much it sucks, and how stupid it is, and how if you make garlic oil like it tells you to you will give botulism to your entire family -
Many scientific theories assume constructs that are not directly observable (muons, genetic drift) but whose existence is inferred. In mental health research, psychiatric diagnoses play such a role. We assume that constructs, such as schizophrenia or alcohol use disorder, exist but we can only observe the signs, symptoms, and course of illness that... See more