There’s a lot of stellar talent out there that won’t fit traditional boxes.
There’s a lot of stellar talent out there that won’t fit traditional boxes.
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!
Probably wrote a few hundred apps. I’m old school. All in C.
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. )