SShortSingh.
Back to feed

Your control arm is a probe too

0
·1 views

A few days ago I wrote up a test that passed on Windows and failed on Linux, and one of its three lessons was: give every negative probe a control arm. A probe that asserts "nothing is listening on this port" cannot, on its own, tell "the listener is gone" from "I built the probe wrong" — so you stand up a second listener you know is running, and check the probe reports it. That advice is right. It is also not enough, and I know because my control arm lied to me. This is the follow-up: the control is a probe too, and it is subject to every rule you wrote for the thing it is controlling.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Your NPM_TOKEN stops publishing in January 2027. Here's the one-command migration

If your GitHub Actions release publishes to npm with a NPM_TOKEN secret, it has an expiry date. From January 2027, a granular token that bypasses 2FA can no longer publish on its own (npm docs). Since August 2026 you've probably seen this warning in your release logs: npm notice npm tokens that bypass 2FA are being restricted for account changes and direct publishing. The replacement is trusted publishing. GitHub signs a short-lived OIDC token for your workflow run, npm exchanges it for a publish token, and nothing long-lived is stored anywhere.

0
ProgrammingDEV Community ·

Pandas, Matplotlib and Seaborn: A Beginner's Guide with Clinic Data

Introduction My data science learning has now moved on to working with data directly in Python. Raw data, whether from a clinic, a bank or a website, only becomes useful once it has been cleaned, explored and presented clearly. Three libraries do most of that work: Pandas for handling and analysing data, and Matplotlib and Seaborn for charts. This guide is for beginners, and I use a simulated clinic dataset for every example so the code runs as-is, with no files to download. Setting Up What Is Pandas, and Why Does It Matter?

0
ProgrammingDEV Community ·

Advanced LINQ in C# (GroupBy, Join, Aggregate)

Originally published at https://allcoderthings.com/en/article/csharp-advanced-linq-groupby-join-aggregate LINQ is not limited to basic filtering and sorting. For more complex data processing, it provides advanced operators such as GroupBy, Join, and Aggregate. In this article, we will explore how to use these operators with examples. GroupBy groups collection elements by a specified property. You can then run queries on groups to extract statistical insights.