Thanks! That's actually a good point, although there are valid cases for starting at 0.
0
Thinking about it, defaulting to 0 in the example case above is probably actually a valid thing to do.
Nevertheless, thanks for the link and tip! I'll have a read through what Uber does and try to learn from them too.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! That's actually a good point, although there are valid cases for starting at
0
.Thinking about it, defaulting to
0
in the example case above is probably actually a valid thing to do.Nevertheless, thanks for the link and tip! I'll have a read through what Uber does and try to learn from them too.