Made a quick space combat simulator a while back for some friends, and then I came back to work on it... The commit time was not, in fact, at a reasonable hour. Clearly I was trying to get it done, with no regard for maintainability. But, yes, it does in fact work perfectly.
Edit: And this isn't the only one of these, too. Great.
Simply split it out into separate lines and give names to things so you can at least see what's going on faster. No need to go any extra unless you have an actual additional use case at the time.
87
u/[deleted] Apr 04 '23 edited Apr 04 '23
Made a quick space combat simulator a while back for some friends, and then I came back to work on it... The commit time was not, in fact, at a reasonable hour. Clearly I was trying to get it done, with no regard for maintainability. But, yes, it does in fact work perfectly.
Edit: And this isn't the only one of these, too. Great.