News for hackers. Stuff that matters.
Re:Show HN: I Design with Code by stephengillie on Tuesday July 05, 2016 @10:52AM (#12036819)
How about code that's closer to NLP?

Using my Powershell module, this creates a Powershell module that loads a Powershell Filter that does FizzBuzz:

New-Module FizzBuzz.ps1 (New-Function Filter-FizzBuzz (New-FunctionStatement If -not _ Modulus 15 'return "FizzBuzz"' (New-FunctionStatement ElseIf -not _ Modulus 5 'return "Fizz"' (New-FunctionStatement ElseIf -not _ Modulus 3 'return "Buzz"' 'return $_' ) ) ) -Filter)

And that command's output: https://github.com/Gilgamech/Main/blob/master/FizzBuzz.ps1

There are no comments on this comment yet.