There is no point or advantage it is just because.
I did solve this kata quite a long time ago so I can't exactly tell you why I did for this one but there are probably others too.
And what was the point of putting all the logic in the constructor? I don't see an advantage. Just because? I mean you could do that with just about any function. Why this one?
it's not designed as readable code.
the idea wasn't to make my code clever the goal was to place all the logic within the constructor of the function.
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
There is no point or advantage it is just because.
I did solve this kata quite a long time ago so I can't exactly tell you why I did for this one but there are probably others too.
And what was the point of putting all the logic in the constructor? I don't see an advantage. Just because? I mean you could do that with just about any function. Why this one?
it's not designed as readable code.
the idea wasn't to make my code clever the goal was to place all the logic within the constructor of the function.
This comment is hidden because it contains spoiler information about the solution