{"blyg":"0.4","id":"5wwg58jnntt0e4bcm9tcnpdn5t","kind":"thread","origin":"https://blyg.bricolage.io/","page":"t/5wwg58jnntt0e4bcm9tcnpdn5t/","author":{"name":"Kyle Mathews","url":"https://blyg.bricolage.io/"},"created":"2026-10-06T18:50:19Z","updated":"2026-10-06T18:51:26Z","version":1,"content_md":"![[3z50r8q76cs8s1zbb164v6zj49]]\n\nProbably because the physical world have far more variation than the digital world. Many digital things are pretty simple & deterministic so easy to mock. Mocks can still bite you so people still advise to avoid them when possible but they're often just fine.\n\n","content_html":"<blockquote class=\"blyg-transclusion\" data-blyg-id=\"3z50r8q76cs8s1zbb164v6zj49\" data-blyg-version=\"1\" data-blyg-origin=\"https://blyg.aneeshsathe.com/\">\n<blockquote class=\"blyg-transclusion\" data-blyg-id=\"6p7pfh7s1c9yhjb0hcdm5m6tv6\" data-blyg-version=\"1\" data-blyg-origin=\"https://blyg.bricolage.io/\">\n<blockquote class=\"blyg-transclusion\" data-blyg-id=\"7ymahdtnz8btg47m452x3td894\" data-blyg-version=\"1\" data-blyg-origin=\"https://blyg.aneeshsathe.com/\">\n<blockquote class=\"blyg-transclusion blyg-partial\" data-blyg-id=\"2qj9qq98tq6ahvvcpr1nagyee5\" data-blyg-version=\"1\" data-blyg-origin=\"https://venkateshrao.com/blyg/\">\n<p>green tests prove the code agrees with its mocks</p>\n</blockquote>\n<p>As a non-software dev software person, i have never understood the purpose of mocks.</p>\n\n</blockquote>\n<p>They suck unless you really need them — generally you really need them if the thing you're mocking is too expensive or slow to run or impossible to run e.g. a 3rd party API that doesn't have a test environment.</p>\n\n</blockquote>\n<p>That’s interesting, years ago I had asked a cousin of mine who was into automobile engineering why they had to run the whole car to test a new chip. He said that they needed to get the actual signals and they mock signals just aren’t good enough.</p>\n<p>Didn’t go deeper into it, but it’s funny that a car should be easier to not build mocks for than code.</p>\n\n</blockquote>\n<p>Probably because the physical world have far more variation than the digital world. Many digital things are pretty simple &amp; deterministic so easy to mock. Mocks can still bite you so people still advise to avoid them when possible but they're often just fine.</p>\n","content_hash":"sha256:d0598805640da7830f4d97d307591444f0f231341493f56a19eba098de838dce","media":[],"transclusions":[{"id":"3z50r8q76cs8s1zbb164v6zj49","version":1,"origin":"https://blyg.aneeshsathe.com/","cited":{"source":"Aneesh's Blyg","author":"Aneesh Sathe","excerpt":"green tests prove the code agrees with its mocks As a non-software dev software…","url":"https://blyg.aneeshsathe.com/t/3z50r8q76cs8s1zbb164v6zj49/","retrieved":"2026-10-06T18:51:26Z"}}],"stub_of":{"origin":"https://blyg.aneeshsathe.com/","id":"3z50r8q76cs8s1zbb164v6zj49","version":1,"cited":{"source":"Aneesh's Blyg","author":"Aneesh Sathe","excerpt":"green tests prove the code agrees with its mocks As a non-software dev software…","url":"https://blyg.aneeshsathe.com/t/3z50r8q76cs8s1zbb164v6zj49/","retrieved":"2026-10-06T18:51:26Z"}},"changelog":[{"version":1,"at":"2026-10-06T18:51:26Z","note":null}]}