4 ms·
So I'm not going to belittle you, I'd actually like to get to the bottom of what's going on here. You say you're a developer, but then ... I'm wondering why you
by Kim_Bruning 4y ago
So I'm not going to belittle you, I'd actually like to get to the bottom of what's going on here. You say you're a developer, but then ... I'm wondering why you think you can't solve fizzbuzz? Do you have trouble with loops? With conditionals? Do you have trouble knowing where to start? What kind of programming do you normally do (what languages or tools or frameworks do you use)? How did you learn to program?
Sometimes I've taught kids to program and they could solve it in a single lesson. Sometimes I've tried to teach people and they just couldn't learn at all. I'll probably end up teaching some more people in my time, so the better I understand, the better I can maybe help people in future. I hope you have a minute to help me out here!
- dijonman2 4y agoI wrote network software in late 90s, including a cfengine replacement. Probably wrote a few hundred apps. I’m old school. All in C.
- Kim_Bruning 4y agoHi! Just wondering if you're still around? If you have a lot of C experience, haven't you written a lot of for and if statements? I'm still most confused.
- Kim_Bruning 4y agoOk, that confuses me even more! I was thinking maybe you relied heavily on javascript frameworks that do iteration for you. That might explain it. If you've written a lot of C code, did you somehow manage to do so without using 'for' or 'if' on a regular basis? (You can tell I'm very confused, because I thought 'if' and 'for' happen a lot in C). Just to be sure: maybe you're confusing 'fizzbuzz' with something else? Fizzbuzz was: print the numbers 1 to 100, but instead print "fizz" on every 3rd, "5" on every fifth, and "fizzbuzz" if both. (That's it, there's no trick question, and we don't care about things like typos or off by ones, because everyone makes those if you just ask out of the blue) Are you sure you've never written anything similar before in some function or other? (the original cfengine itself seems to have quite a number of functions that loop over something and filter it. )