Geeks With Blogs
Works on my machine March 2014 Entries
Get rid of deep null checks
Have you ever had to write a code like this one? var store = GetStore(); string postCode = null; if (store != null && store.Address != null && store.Address.PostCode != null) postCode = store.Address.PostCode.ToSt... I’m sure you have. We’ve all been there. The goal is to retrieve (or compute) a value, but in order to do that, we have to get through many intermediate objects, which could be in a default state. The aforementioned example is pretty easy. Sometimes, along the way, ......

Posted On Wednesday, March 26, 2014 7:45 PM

Proxy Swarm
From time to time people ask me to vote. They send me a link and say: "vote for my school", "vote for my recipe in a cooking contest", "vote on my child's drawing" etc. I'm sure it happens to you too. Personally, I don’t care, but it led me to an interesting thought – since it is possible to bypass IP restrictions through proxy gates, it should be also possible to make votes automatically. I only need to get a list of proxy servers. Luckily, I found a pretty big one under this link. The goal The ......

Posted On Saturday, March 8, 2014 5:30 PM

Copyright © Jakub Niemyjski | Powered by: GeeksWithBlogs.net