News for hackers. Stuff that matters.
Re:Printing 1 to 1000 without loop or conditionals by mfukar on Monday January 03, 2011 @03:11PM (#2064496)
The way you phrased your original post gave me the impression you were dismissing the constructor solution for the same reason tptacek dismissed the rest. I certainly agree with your point, as you may have read elsewhere in the thread.

Other than that, I don't assume a patronizing attitude when I say that arbitrarily labeling solutions to such problems as "cheating" is an infuriatingly useless argument over semantics, and nothing more. Particularly so when such questions are used in the context of a job interview; how would you feel if an interviewer wrongly rejected your answer based on what he read on SO, and whose answer she trusted more?

PS. The situations I was referring to is the myriad of such questions on SO; a problem with absurd constraints imposed. They're fun, until 5 people come along and decide going around labeling answers as "cheating". The Stack Overflow meta site has quite a few comments on that phenomenon.

Re:Printing 1 to 1000 without loop or conditionals by Raphael_Amiard on Monday January 03, 2011 @03:20PM (#2064528)
Okay well, so i feel like we're in a case of violent agreement, and it's probably my fault because i didn't take the time to write a proper comment in the first time.

My apologies.

Re:Printing 1 to 1000 without loop or conditionals by mfukar on Monday January 03, 2011 @03:27PM (#2064546)
Mine as well, I guess my comment was over the line.