Re:Grid Garden – A game for learning CSS grid
by torrent-of-ions on Wednesday April 05, 2017 @11:05AM
(#14042595)
What is your concern? Code beauty? What kind of programmer can't deal with converting between 0 and 1 based arrays?
[ Parent
| on HN ]
Re:Grid Garden – A game for learning CSS grid
by ajross on Wednesday April 05, 2017 @11:27AM
(#14042807)
What kind of programmer can't remember to check return values of system calls?
What kind of programmer can't deal with properly escaping input under the control of the user?
What kind of programmer can't deal with keeping array indexes in bounds?
(tl;dr: you. And me.)
Re:Grid Garden – A game for learning CSS grid
by torrent-of-ions on Thursday April 06, 2017 @08:09AM
(#14049808)
None of that is like dealing with 0/1 arrays. Almost everything you encounter in real life starts with 1, not 0. If anything it's the 0 based array that should be consider "wrong" and the cause of so many errors. But we use 0 based arrays because of the C/assembly legacy where the 0 means the location of the array with a 0 offset.
Re:Grid Garden – A game for learning CSS grid
by garaetjjte on Thursday April 06, 2017 @02:13PM
(#14053026)