3 ms·
multiple ways of doing something isn't inherently bad. For example, if you want to set a variable to the number of seconds in seven hours, you could just set t
by unsnap_biceps 1y ago
multiple ways of doing something isn't inherently bad.
For example, if you want to set a variable to the number of seconds in seven hours, you could just set the variable to 25200, or you could set it to 60 * 60 * 7. The expanded version might be clearer in the code context, but in the end they do exactly the same thing.
- pests 1y agoYour math equation turned the asterisks into italics.
- unsnap_biceps 1y agoWhoops, fixed. Thanks for the note
- nikolayasdf123 1y agohold on, why would you have 7 hours? dont you mean a week? 60 x 60 x 24 x 7 ? or at lest 8 hours? 7 hours is just odd
- unsnap_biceps 1y agoThe goal was to pick an arbitrary number that wasn't well known. There was no intention behind the specific value chosen.