Tag Archives: test

Test for a valid e-mail address and MX records in PHP

Tests for a valid email address and optionally tests for valid MX records, too.

Posted in PHP | Also tagged , , , , , , , , | Leave a comment

(Haskell) FizzBuzz

The dread FizzBuzz question — really, a test if your average programmer knows his or her FOR loops. The spec is that you’re counting from 1 to 100. Your program should print out “fizz” if the index is divisible by three, and “buzz” if it’s divisible by five, and “fizzbuzz” if it’s divisible by both. [...]

Posted in Haskell | Also tagged , , , , | Leave a comment