r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

3

u/[deleted] May 09 '15

Off topic, but personally I think challenges like these are dumb. You will more than likely never need to program such a method and it doesn't teach you anything worthwhile for the Enterprise

1

u/robertDouglass May 09 '15

I disagree. It instantly reveals the ability to reduce problems to elemental components, create fitting algorithms, and most importantly, it reveals how much of the programming toolkit you are actually in command of. To that last point, note the discussions on whether using strings or mathematical operators is best for the numbers problems. A weak programmer may think about this in terms of strings simply because they haven't mastered the maths operators in their language of choice. I see stuff like that all the time. As a person who has interviewed hundreds of programmers, I like these types of exercises because they strip you naked.

5

u/chasevasic May 09 '15

except it doesn't require you to:

  • document your code,

  • write tests,

  • practice good architecture techniques & code style,

  • use revision control,

  • use (possibly complex) build systems

  • communicate with a team

  • follow a schedule

  • probably other things not in the front of my mind

2

u/NakedNick_ballin May 09 '15

Yea, it's only testing one facet. The problem is you cannot easily evaluate all those other important attributes you outlined, in the space of a traditional interview atleast