Live data from Hacker News

Pure CSS FizzBuzz

joseph.mx

1–10 of 62 posts

Re: Pure CSS FizzBuzz

#4
This is kind of brilliant. I think if I were interviewing you, and asked you to do a FizzBuzz (which is unlikely, but let's ignore that), and you said "Oh, cool, can I do it in CSS," I'd have probably laughed at you.

This is clearly an academic exercise, but one that I would never have even thought to attempt, as I probably would have chalked it up to probably waaaay more trouble than it's worth.

Re: Pure CSS FizzBuzz

#5
post #4

This is kind of brilliant. I think if I were interviewing you, and asked you to do a FizzBuzz (which is unlikely, but let's ignore that), and you said "Oh, cool, can I do it in CSS," I'd have probably laughed at you. This is clearly an academic exercise, but one that I would never have even thought to attempt, as I probably would have chalked it up to probably waaaay more trouble than it's worth.

I'm grinning more than socially okay at work right now, thanks a lot! It's really appreciated

Re: Pure CSS FizzBuzz

#10
post #8

I feel like it must be possible to do the numbers using CSS's counters: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Count... If I didn't have a whole bunch of work to do this afternoon, I'd have a go myself.

And, seconds earlier, someone else had already done the hard work!
Post reply on HN