Skip to main content

Timeline for Writing FizzBuzz

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Aug 31, 2012 at 1:22 comment added OJ. You're welcome. Glad to see you enjoyed it. I think that approaching problems like this with a more functional mindset (rather than imperative) leads you to more elegant solutions. They're often more concise too. Cheers!
Aug 30, 2012 at 18:40 vote accept Mare Infinitus
Aug 4, 2012 at 23:11 history edited OJ. CC BY-SA 3.0
deleted 112 characters in body
Aug 4, 2012 at 23:09 comment added OJ. The idea of using T4 for anything like this makes me nauseous. I can't see how typing those generates out is any worse than typing the data. The data alone doesn't define intent and is incapable of capturing the need to conditionally output the number if noting else was outputted. Instead, that logic has to live in the code that parses the data. Ultimately it doesn't matter too much. This is nothing but a mind exercise with a goal to learn. This is why I posted an alternative method in the first place.
Aug 3, 2012 at 16:33 comment added Leonid This is pretty cool, but if you had a lot of suffixes, then spelling var generators in code would take much more space than just typing out the data. Lisp has macros for that; perhaps one can utilize T4 transforms to generate the code for C#, though just about anything other than the most trivial code is an overkill for C#.
Aug 3, 2012 at 10:11 history answered OJ. CC BY-SA 3.0