Hacker News new | ask | show | jobs
by petepete 1433 days ago
Why do I need to remember that Saturday is 5?
4 comments

    >>> import calendar
    >>> calendar.SATURDAY
    5
Yeah, I'll take `Date#saturday?` thanks.
¿Por qué necesito recordar que el sábado es "Saturday"?
Rest of the language doesn't bother you?
Porque en ese caso no usas un IDE moderno.
Tampoco "if", "for", "while"...
You are allowed to define your own constants.
S looks like 5 if you squint. not hard to remember
So Sunday?
No! Sunday is 6 because "Sunday" has 6 letters.
That's it, I'm switching to Python!