How to test without mocking
Mocking creates false security by testing isolation, not real behavior. Separate business logic from IO, use in-memory DBs, write server-side E2E tests instead.
The latest blog posts to take off on Hacker News. 49,207 posts.
Mocking creates false security by testing isolation, not real behavior. Separate business logic from IO, use in-memory DBs, write server-side E2E tests instead.
by Felienne Hermans
〰️ it’s weird to look back; I sometimes get confused on how I got here 〰️ Most folks dream of being an entrepreneur; “a path that seemed inevitable“, they say. None of that shit applies to me. I’m only here cause I kept getting laid off and that nonsense infuriated me. I treated my first ... Read more
Image courtesy of UC Davis. Photographer: Don EdwardsJust in time for cucumber season, some news that surprises me. Did you know that you should store cucumbers at room temperature?Credit for my enlightenment goes to UC Davis.
A cartel of superstars has conquered culture. How did it happen, and what should we do about it?
Giving a talk is a lot like selling a car. Take them for a test drive, don’t read them the owner’s manual.
Need to schedule tasks in PostgreSQL? Compare pg_cron for simple in-database scheduling with pg_timetable for complex workflows and multi-cluster orchestration.
A few weeks ago I was roasting some pumpkin for a delicious soup and towards the end of the cooking time the fan on the oven started into overdrive, making a lot of noise then it started beeping and p…
In his book On War, Clausewitz defines friction as the difference between military theory and reality: Thus, then, in strategy everything is very simple, but not on that account very easy. Everything is very simple in war, but the simplest thing is difficult. These difficulties accumulate and produce a friction, which…
Between our ESP32 prokaryotic organisms and our 24/7 Internet-enabled megafauna servers, there exists a vast and loosely-defined ecosystem of things the B2B world likes to call computer appliances. Picture a bespoke Pi 4 packaged up neatly with some Python scripts, a little fancy plastic embossing, and maybe a…
Haskell is a programming language invented sometime in the 20th century by Scottish logicians as a prank. ¹ Fifteen years or so ago, for reasons I can no longer remotely recall, I started learning Haskell. Now, I have finally written a useful program in Haskell, and I am pretty sure I can do it again, if I ever need…
How to turn something as ordinary as an USB-C cable into something that a lot of nerds will want to buy.
Author: IdeogramAI Prompt: The image shows a typical Google Takeout interface with a large error message indicating that the service is unavailable. In the background, there are frustrated users trying to download their data with unsuccessful attempts, represented by repeated “Failed” and “Retry” notifications. My…
This all started from a conversation about the RP2040 MCU, and building a simple desktop/GUI for it. I’d made a comment along the lines of “or, just run some old OS”, and it got me thinking about the original Macintosh .
I've owned Starlink Mini for about 6 months, using it for camping, backup internet, and in motion inside my car. Here is my honest review.
Learn how to spot the difference between and expert and an imitator with 5 key tells.
A blog by Professor Farooq Kperogi about Nigeria, America, politics, education, culture, identity, media, language, English grammar, and much more.
In 2011, to celebrate the 150th anniversary of MIT, the Boston Globe made a list of the most important innovations developed there. They asked me to explain the importance of SICP, and this is what I sent them:
While trying to build my Age Apple Secure Enclave plugin , a small Swift CLI app, on Alpine Linux , I realized that the Swift toolchain doesn’t run on Alpine Linux. The upcoming Swift 6 will support (cross-)compilation to a static (musl-based) Linux target, but I suspect an Alpine Linux version of Swift itself isn’t…
I've always been fond of the idea of the Raspberry Pi. An energy efficient, small, cheap but capable computer. An ideal home server. Until the Pi 4, the Pi was not that capable, and only with the relatively recent Pi 5 (fall 2023) do I feel the Pi is OK performance wise, although still hampered by SD card performance…
An interview with AMD CEO Lisa Su about her path to AMD, turning around the chip maker, the AI opportunity, and competing with Nvidia.
Kindness beats brilliance in meetings. My Kind Framework for leaders: listen, be respectful, be empathetic and leave every meeting with a solution.
How to sabotage software productivity, in the style of CIA
The last of Digital Research
End-to-end documentation of a journey from no PCB experience to fabricating my own Linux-ready system that can boot the latest mainline kernel. This article is the recommended reading for someone building their first embedded Linux board. F1C100s SoC is used for this sample board.
A C program that writes "hello, world!" to the console using inline assembly instead of standard library functions, demonstrating direct system call invocation.
Final exam from Dr. Stuart Daggett's Harvard economics course on Railroad Practice taught in 1906-07.
Discover what 11,599 SSH login attempts reveal after running a honeypot for 30 days. Learn key cybersecurity insights—read now to protect your systems!
Laurent Le Brun's blog