Ben Hughes’ Stream -

Proj365 Day 69

Loading mentions Retweet
Filed under  //   proj365  
Posted from Belconnen, Australia

Comments [0]

Proj365 Day 68

Loading mentions Retweet
Filed under  //   proj365  
Posted from Belconnen, Australia

Comments [0]

Proj365 Day 67

Loading mentions Retweet
Filed under  //   proj365  
Posted from Belconnen, Australia

Comments [0]

Rough back of the envelope calculation: 6 months paid mat leave would cost ~$4.3billion/year

According to the ABS: 1 birth every 1m 45s, which is ~822 births per day, or ~300343 births per year
According to the ABS: female participation in the workforce is 55.5%
According to the Herald Sun, average female salary is $51,558


300343 x 51558/2 x 0.555 = $4,297,110,919

Cheap at half the price......

Loading mentions Retweet

Comments [0]

Proj365 Day 66: Puddle fun

Loading mentions Retweet
Filed under  //   proj365  

Comments [0]

Proj365 Day 65

Loading mentions Retweet
Filed under  //   proj365  
Posted from Parkes, Australia

Comments [0]

Proj365 Day 64

Loading mentions Retweet
Filed under  //   proj365  
Posted from Belconnen, Australia

Comments [0]

Programming Snobs

New blog post: Programming Snobs: http://www.benrhughes.com/blog/2010/03/programming-snobs/

Loading mentions Retweet

Comments [0]

My FizzBuzz (@kriegaffe @chris_bc)

            for (int i = 1; i <= 100; i++)
            {
                String s = "";
                if (i % 3 == 0)
                    s = "Fizz";
                if (i % 5 == 0)
                    s += "Buzz";
                if (s.Length == 0)
                    s = i.ToString();

                Console.WriteLine(s);
            }

You can argue about whether using a string is more or less efficient than doing a second i%3 and i%5, but it's certainly more elegant.

Loading mentions Retweet

Comments [0]

Reading time...

Loading mentions Retweet
Posted from Belconnen, Australia

Comments [0]