3 ms·
Specifically, it was building a filesystem abstraction. The language I was working in didn't have a suitable one I could use. I realized this morning I could h
by ancarda 6y ago
Specifically, it was building a filesystem abstraction. The language I was working in didn't have a suitable one I could use.
I realized this morning I could have used a mock/test double -- at the time I was thinking I'd need to have some in-memory filesystem so I could later run assertions. I guess I needed to sleep on it.
Anyhow, I'm sure I have run into similar issues where I've felt some pressure to pick between getting some code out and getting some good code out. That is more what this post is about. I was using that as a recent example.