I recall being a novice and learning Java, and trying to solve http://projecteuler.net/problem=5 - I had nested if statements like "if(x % 20 == 0) { if (x % 19 == 0) {..." and I was thrilled that it worked. I have since learned far better ways to accomplish things like that; but I probably wouldn't have if I had just given up in frustration and never become a professional developer. Cool job by the author in posting the original code. I'm too embarrassed to post my nested-if business :)
Comments
I recall being a novice and learning Java, and trying to solve http://projecteuler.net/problem=5 - I had nested if statements like "if(x % 20 == 0) { if (x % 19 == 0) {..." and I was thrilled that it worked. I have since learned far better ways to accomplish things like that; but I probably wouldn't have if I had just given up in frustration and never become a professional developer. Cool job by the author in posting the original code. I'm too embarrassed to post my nested-if business :)