3 ms·
Is there any advantage in using A, B, C etc. as variable names? W and H seemed to be potentially more readable for the with and height, X and Y for the ball pos
by dukoid 8y ago
Is there any advantage in using A, B, C etc. as variable names? W and H seemed to be potentially more readable for the with and height, X and Y for the ball position and in particular O and I for 0 and 1 etc.? Also, I think I have spotted a few remaining 0s in the saved file?
- david-given 8y agoThe practice version did, but name collisions got too confusing (W and H is fine for width and height, but then I wanted horizontal and vertical velocity...). I thought it was clearer to give up completely and use the notepad instead. And yes, some optimisations are left as an exercise for the reader.