3 ms·
one may snicker at the redundancy of the "is less than 0" pair and so son, but I'm grateful for "if the element will fit at the x position." It puts into words
by diydsp 7y ago
one may snicker at the redundancy of the "is less than 0" pair and so son, but I'm grateful for "if the element will fit at the x position." It puts into words what isn't obvious from the code.
- dhimes 7y agoFair enough. But if they are going to do that, wouldn't a comment about what the positions are in each case (especially the case where it doesn't fit) be helpful? // If it fits, put it there. If not, align to the right side or whatever.