2,487 karma · joined May 18, 2018
I'm curious what you think this looks like in practice. I've had success with these kinds of tests, but only for very simple external services. For example, writing a fake elasticsearch backend for a few known inputs and outputs might be a good fit. But what about an RDBMS? You can't realistically write a mock backend that can talk to a real client.
This is also easier said than done. How do you measure programmer performance? LOC is obviously not a reasonable metric. Closed tickets isn't either. It takes an experienced manager who understands code to understand what work is actually being done, and managers like that are rare and valuable.
Unfortunately this doesn't solve the problem in general, because most people don't use password managers.
[0] https://en.wikipedia.org/wiki/General_Motors_streetcar_consp...
There are other options. Maybe unpopular options, but options nonetheless: Electron, and immediate mode GUIs.
They certainly have downsides. But there are "professional" GUI applications in widespread use that are written with both.
I'm still alive today because I can detect smoke very early. This ability has saved me from indoor electrical fires and wildfires. Hunter gatherers who lived in makeshift shelters probably depended even more frequently on this ability.
I've learned a few novel things from my unfinished side projects, but I've never really used them in my day job.
> “The telescope allocation committee would never have approved such a long, risky project,”
Other similar "high risk" experiments would be more likely to occur if time constraints were not such a concern.
[0]: https://www.nationalgeographic.com/science/phenomena/2015/04...
This is a hard one. A lot of tests require setup steps even if you're using a real database, so it's not even that different than a mock. And if you can't give each test its own database to work with, then you have to run your tests serially. I'm working on a codebase that spins up 4 separate database engines in docker, and each test has quite a few setup steps. The result is brittle tests that take hours to run, so they're not very useful as a release gate. I've been bitten by mocks before too though, so I don't have good answers.
But some people have been going to the gym for decades and take it very seriously as a hobby. Losing access to the gym will set them back years.