Entertainment

Why your mock breaks later

✨ Explore this insightful post from Hacker News 📖 📂 Category: ✅ Key idea: Sunday 16 November 2025An overly aggressive mock can work fine, but then break much later. Why?In Why your mock doesn’t work I explained this rule of mocking:Mock where the object is used, not where it’s defined.That blog post explained why that rule was important: often a mock doesn’t work at all if you do it wrong. But in some cases, the mock will work even if you don’t follow this rule, and then it can break much later. Why?Let’s say you have code like this:# user.pydef get_user_settings() -> str:    with open(Path("~/settings.json").expanduser()) as f:        return json.load(f)def add_two_settings() -> int:    settings = get_user_settings()    return settings["opt1"] + settings["opt2"]You write…
Read More
A new chapter begins for EV batteries with the expiry of key LFP patents

A new chapter begins for EV batteries with the expiry of key LFP patents

🔥 Read this insightful post from Hacker News 📖 📂 Category: ✅ Key idea: The expiry of key patents for LFP battery chemistry in 2022 transformed the EV industry. With technology now freely accessible, global battery strategies are shifting as former IP barriers fall. An LFP battery is a type of lithium-ion battery that uses lithium iron phosphate (LiFePO4) as the cathode material. LFP’s appeal in the EV sector is clear: lower cost compared to batteries based on nickel and cobalt chemistries, low toxicity and good safety due to their superior thermal stability. Tesla’s use of LFP in some of…
Read More
an open IDE/ATAPI drive emulator

an open IDE/ATAPI drive emulator

💥 Explore this awesome post from Hacker News 📖 📂 Category: 📌 Key idea: An open IDE/ATAPI drive emulator PicoIDE is a device that emulates IDE/ATAPI devices developed by Ian Scott, creator of PicoGUS. Fully open source firmware and hardware Emulates ATAPI CD-ROM and IDE fixed hard drives .bin/.cue or .iso image support for CD-ROM .img/.hda/.vhd/.hdf for HDD Built-in CD audio output on 3.5" jack and MPC-2 header Supports PIO modes 0-4 and multi-word DMA modes 0-2 Optional front panel/3.5" drive bay enclosure with: 1.3" 128x64 OLED screen & 4-way navigation buttons WiFi for remote control and upload/management of disk…
Read More
‘Is curing patients a sustainable business model?’

‘Is curing patients a sustainable business model?’

✨ Read this awesome post from Hacker News 📖 📂 Category: ✅ Main takeaway: Yuri Arcurs | Getty ImagesGoldman Sachs analysts attempted to address a touchy subject for biotech companies, especially those involved in the pioneering "gene therapy" treatment: cures could be bad for business in the long run. "Is curing patients a sustainable business model?" analysts ask in an April 10 report entitled "The Genome Revolution.""The potential to deliver 'one shot cures' is one of the most attractive aspects of gene therapy, genetically-engineered cell therapy and gene editing. However, such treatments offer a very different outlook with regard to…
Read More

Coinbase Data Breach Timeline Doesn’t Add Up: I Have Recordings & Emails Proving Attacks Started Months Before Their ‘Discovery’

💥 Check out this must-read post from Hacker News 📖 📂 Category: 💡 Here’s what you’ll learn: The Call That Changed Everything On January 7, 2025, at 5:02 PM, I received an email with a subject line that immediately caught my attention: "Order N54HJG3V: Withdrawal of 2.93 ETH initiated. A representative will be in touch shortly before we mark the payment completed" Minutes later, my phone rang. The caller ID showed 1-805-885-0141. An American-sounding woman who identified herself as a Coinbase fraud prevention representative said someone had initiated a large transfer from my account and she was calling to confirm.…
Read More
The Pragmatic Programmer: 20th Anniversary Edition

The Pragmatic Programmer: 20th Anniversary Edition

🔥 Discover this insightful post from Hacker News 📖 📂 Category: ✅ Main takeaway: The Pragmatic Programmer: From Journeyman to Master by Dave Thomas and Andrew Hunt was given to me as a gift after an internship. The book gave me invaluable advice as I started out in my career as a professional software engineer. Re-reading it a decade later, I thought the general advice still held up well, but it made references to technologies such as CORBA that are no longer used and felt dated as a result. The authors agreed and wrote a 20th anniversary edition that was…
Read More
The fate of “small” open source

The fate of “small” open source

🚀 Discover this trending post from Hacker News 📖 📂 Category: 📌 Here’s what you’ll learn: By far the most popular npm package I’ve ever written is blob-util, which is ~10 years old and still gets 5+ million weekly downloads. It’s a small collection of utilities for working with Blobs in JavaScript. I wrote it because I found that PouchDB users were endlessly confused about how to work with Blobs and how to convert them to strings, ArrayBuffers, etc. Given that some 80% of developers are now using AI in their regular work, blob-util is almost certainly the kind of…
Read More
AI is killing privacy. We can’t let that happen

AI is killing privacy. We can’t let that happen

💥 Check out this insightful post from Hacker News 📖 📂 Category: 📌 Main takeaway: In a perfect world, my job wouldn’t exist. I’m a consumer privacy advocate, which means I spend my days fighting for something that should be automatic: your right to control and protect your own personal information. Unfortunately, we dropped the ball. In the era of social media and hyper-targeted ads, we didn’t build the right privacy infrastructure to protect ourselves. Instead, we let tech companies sell us the story that knowledge is power and data is the price.  Yes, knowledge is power. But data—a dry,…
Read More
Owning a Cat Could Double Your Risk of Schizophrenia, Research Suggests : ScienceAlert

Owning a Cat Could Double Your Risk of Schizophrenia, Research Suggests : ScienceAlert

🚀 Check out this awesome post from Hacker News 📖 📂 Category: 📌 Main takeaway: Having a cat as a pet could potentially double a person's risk of schizophrenia-related conditions, according to an analysis of 17 studies.Psychiatrist John McGrath and colleagues at the Queensland Centre for Mental Health Research in Australia looked at papers published over the last 44 years in 11 countries, including the US and the UK.Their 2023 study found "a significant positive association between broadly defined cat ownership and an increased risk of schizophrenia-related disorders.""There is a need for more high-quality studies in this field," the authors…
Read More
de Bruijn Numerals

de Bruijn Numerals

✨ Read this trending post from Hacker News 📖 📂 Category: ✅ Key idea: de Bruijn Numerals assumptions in this post understanding of pure lambda calculus zero-based de Bruijn indices instead of named variables nnn consecutive lambdas are written as λn\lambda^nλn ⟨n⟩e\langle n\rangle_e⟨n⟩e​ encodes n∈N0n\in\mathbb💬_0n∈N0​ as a lambda calculus term of encoding eee S(n)S(n)S(n) is the Peano successor function There are many ways to encode numbers and do arithmetic in the pure lambda calculus, for example using unary Church numerals, various nnn-ary representations, and the Scott encoding. A method that I have not seen yet is an encoding by reference…
Read More