7 ms·
So you wrote your app twice?
by t0astbread 6y ago
So you wrote your app twice?
- forgotmypw17 6y agoYep, pretty much. Once you've written something once, it's easier to write it again. I try to use languages with similar syntax and only use a common subset of their syntax, so it's often almost entirely a copy-paste job. There are many advantages to doing it this way. One is that I thoroughly review each side of the codebase while writing the other. Another is that I get a complete coverage test suite for free out of the deal. Another is that if something goes sideways, it's easier to figure out where that is. It's also easier to discover any faults, because the outputs don't match up.
- leesalminen 6y agoHonestly, this sounds so crazy to me that I must be missing something. I might try it out one day! Would it be a fair assumption that these were fairly simple apps in terms of business logic? There are like 2-3 subsystems of mine that the thought of having 2 of each makes me quiver in fear.
- forgotmypw17 6y agoYes, fairly simple.
- forgotmypw17 6y agoIn part I was inspired by what I learned about mainframes. I don't know that much about them, but I do know that every single component is hot-swappable and redundant, so that's how I tried to design my application. As a bonus, I have to design it simply, and the process of rewriting it several times helps that end.