* https://en.wikipedia.org/wiki/Interval_(mathematics)#Includi...
start:1, end:4 = 1,2,3 (start-inclusive, end-exclusive)
start:5, end:2 = 2,3,4 (I guess this means right-exclusive, whether it's 'start' or 'end'?)
start:1, end:-2 = 1,2,3,4 (the puzzle text says -1 is the first grid-line from the right, i.e. 5, but that doesn't follow, because now it's right-inclusive)
start:-3 = 4 (so -1 is grid count+1, which explains the above?)
Usually you get a reasonable relationship between zero- and one-indexed views of the same thing. The relationship is normally that the zero-indexed points 0 and 1 form the start and end bounds of the 1st item.
CSS grid numbers columns 1, 2, 3 and also number the the lines around those columns 1,2,3,4. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_La...
Having grid line 1 come before column 1 makes it feel like the grid lines are substantial and the columns are merely the bounds between grid lines.
Correct. And IIRC the spec doesn't even have columns (they're just referenced to help understanding), just column bounds.
I feel like I'm spending my time doing the wrong things ... I should have been arguing for sensibility during the standards writing. These modern css things are only here to make things easier, not more wonky and strange - we already have that. If they're just dedicated to inventing new bizarreness to replace the older wackiness, where have we actually come?
The tradition of starting at 0 just got carried on to everything because having a standard is better than having to memorize what everything uses
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EW...
Specially when dealing with Algol derived languages, where the indexes can be specified in a flexible way.
The positions are, I believe, the positions of the grid lines, not the grid columns.
Between this and how weird the negative syntax operates, I suspect that I would end up using the start/span syntax the most, but my company requires code that supports IE9, so I will probably only touch this on a regular basis in like five years.
It's just a mild thing to get over, and visual tools like this make it very easy to realize the end is exclusive. However, it is not always so easy in video tools unless the next frame to your out is an obvious change.
Consider what the expected outcome would be for "isolate from second 1 to second 10". Then the expected outcome for "isolate from frame 1 to frame 10".
What happens with a video at 1fps?