• ###### FArekkusucreated an issue for "Days in the year" kata

Python 3 should be enabled.

Not an issue

• ###### xanh18commented on "Days in the year" kata

This comment is hidden because it contains spoiler information about the solution

• ###### kurkovcommented on "Convert number to reversed array of digits" javascript solution

for best practice we must have most readable short solution. For that Number() is not straightforward,
but for example n => parseInt(n) is most readable. Or ('' + n) is only a trick of js, but readable is toString(n).
Its just my suggestion.

• ###### siebenschlaefercommented on "Days in the year" kata

Especially allowing year 0 makes this problem even worse. The Proleptic Gregorian Calendar (PGC) has no year 0. So what year does that value reference? The year before 1AD was 1BC and that was not a leap year. If you map each year `n` of your calendar to the year `n-1` of the PGC, the formula for leap years becomes tricky.
IMHO the best solution would be to assert that the input to `year_days` will never be `0`.

• ###### AcesOfGlorycommented on "Convert number to reversed array of digits" javascript solution

This comment is hidden because it contains spoiler information about the solution

• ###### MichalSepscommented on "Convert number to reversed array of digits" javascript solution

This comment is hidden because it contains spoiler information about the solution

• ###### AcesOfGlorycommented on "Convert number to reversed array of digits" javascript solution

Because the input is an integer and `"" + n` casts it to a string (since .split() only works on strings). It works due to JavaScript's weak typing so it automatically converts the type to a string.

• ###### Bowersc96commented on "Convert number to reversed array of digits" javascript solution

Can someone explain why.map(Number) has to have Number in its params to pass this coding challenge, thank you.

• ###### purincafecommented on "Convert number to reversed array of digits" javascript solution

Can someone explain why `''` has to be added to `n` before splitting?

• ###### ChrisMassoncreated an issue for "Days in the year" kata

This comment is hidden because it contains spoiler information about the solution

• ###### alwinsolcommented on "Days in the year" kata

True, that is a new kata and not this one as it is simple.

• ###### jungersteincommented on "Days in the year" kata

Actually there was no Gregorian Calendar before 1582 (see https://en.wikipedia.org/wiki/Gregorian_calendar).

How about adding another rule to throw exceptions when year < 1583?

• ###### the-code-less-traveledcommented on "Convert number to reversed array of digits" javascript solution

Hi! I'm really new to JavaScript still, but I think this might help
http://www.w3schools.com/jsref/jsref_number.asp

Although I couldn't tell you why we don't use Number() instead of Number.