Been doing quite a bit of reading for the testing istqb foundation, where I can get some exams going and see how I do.
Started using a new plugin to test API's, which is another thing I need to learn and read about, http://www.getpostman.com/.
Completed a programming challenge of validating an ISBN10 which is challenge 197. Compact code so left as is
using System;
namespace Challenge197ISBN
{
class Program
{
static void Main(string[] args)
{
var ISBN10 = "0-7475-3269-9";
Console.WriteLine("Validating: {0}", ISBN10);
int total = 0;
int counter = 10;
foreach (var letter in ISBN10)
{
if (letter != '-' && counter > 0)
{
var current = int.Parse(letter.ToString());
total += current*counter;
counter--;
}
}
Console.WriteLine("ISBN is valid: {0}", total % 11 == 0);
Console.Read();
}
}
}
Ordered some noise cancelling headphones as the open plan office can get a little noisey. A good demo of them in action https://www.youtube.com/watch?v=1EwkaRvIduw
Came across a good video on hacker news about Erlang, quite interesting the idea of bike shedding and trolls.
https://www.youtube.com/watch?v=3MvKLOecT1I
No comments:
Post a Comment