On the other hand, I've had situations where a unit test found a glaring error I made during refactoring. I guess the art in TDD comes from knowing when to nail the structure down and when to leave it loose
12.04.2023 12:01 — 👍 0 🔁 0 💬 0 📌 0@raphjaph.bsky.social
apprentice programmer and ordinal theorist
On the other hand, I've had situations where a unit test found a glaring error I made during refactoring. I guess the art in TDD comes from knowing when to nail the structure down and when to leave it loose
12.04.2023 12:01 — 👍 0 🔁 0 💬 0 📌 0I prefer working from the outside in. Integration tests first, then iterating on the internals and only in the last step writing a lot of unit tests
12.04.2023 12:01 — 👍 0 🔁 0 💬 1 📌 0In the context of test-driven development (TDD), I'm often frustrated by having to write a unit test before I'm even sure that this is what the internal interface should look like. Having a lot of low-level/unit tests early on impedes iterating on the internal structure
12.04.2023 12:00 — 👍 0 🔁 0 💬 1 📌 0Rewriting code involves finding the isomorphism that conveys the most meaning to fellow programmers, i.e. rotating and pulling the structure until it intuitively makes sense
12.04.2023 12:00 — 👍 0 🔁 0 💬 1 📌 0Time to buy an iPhone. I have to use Bluesky on my Mac in an emulated iPhone. Max pain
12.04.2023 12:00 — 👍 0 🔁 0 💬 0 📌 0