You are viewing a single comment's thread. Return to all comments →
A programmer's responsibility is to consider the system for which s/he is coding. https://www.hackerrank.com/environment is all to be concerned about here; and the code handles that pretty well. It will be nightmare to write even small codes if you have to think about all the possible combination of systems.
Anyways this is a place to learn and improve skills. You are free to give new & better ideas. So, why not help each other by showing better alternatives; instead of cribbing & complaining about those who are already doing.
haha, calm down mate! I am neither cribbing nor complaining. Being a discussuion forum, I would like to discuss my views and get feedback. I am trying to learn more than simple programs that anyone can do after a while. Discussions help you in learning something new from someone. And I wasn't rude either! Please make sure to not make such comments, this forum is just for discussing and that's what I too believe in.
All these apart, from what you have said "A programmer's responsibility is to consider the system for which s/he is coding." It seems that you have no or very less practical experience in developing applications for various platforms. I remember days I struggled because of someone else's such coding approach. Nothing is easy in initial phases, and at least for me it is not a nightmare to write a code that works for multiple systems. Moreover, currently and for quite a long while smartphones rule the world in terms of business. This demands you to develop applications for popular platforms, you shouldn't be wasting time in re-writing code for every system you have out there.
It seems you took my comment in wrong sense. Don't take it otherwise, I expected you'll give some suggestions for improvement in code, which you feel, would remove the problem faced by @Andyuriarte. Since, you only said that "solution is incomplete", I felt it would have been better if you gave some suggestions that might correct the problem, instead of just that. That will actually help all of us to learn. Otherwise, I agree to you mate. Cheers !