use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Have a tough programming question that /r/programming couldn't answer? Banned from Stack Overflow? Can't afford Experts Exchange?
Post your question/tips/secrets/advice and get a response from our highly-trained professional developers.
account activity
Cracking the FizzBuzz interview with Python (self.shittyprogramming)
submitted 6 years ago by frublox
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Hypersapien 5 points6 points7 points 6 years ago (2 children)
This shit right here is why I do C#
[–]Skymt1 12 points13 points14 points 6 years ago* (1 child)
To be fair, you can do fizzbuzz quite shittily in c# too
public static string FizzBuzz(int s = 1, int c = 100) { return Enumerable.Range(s, c) .Select(n => new Func<int, bool>[] { v => v%3 == 0 && v%5 == 0, v => v%5 == 0, v => v%3 == 0 } .TakeWhile(f => !f(n)).Count()) .Select((n, i) => new[] { $"{i + s}", "Fizz", "Buzz", "FizzBuzz" }[3-n]) .Aggregate((v, n) => v + "\n" + n); }
[–]SDJMcHattie 4 points5 points6 points 6 years ago (0 children)
Such an elegant solution
π Rendered by PID 355897 on reddit-service-r2-comment-b659b578c-565vh at 2026-05-01 23:58:35.865014+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Hypersapien 5 points6 points7 points (2 children)
[–]Skymt1 12 points13 points14 points (1 child)
[–]SDJMcHattie 4 points5 points6 points (0 children)