Given most programming problems there is an almost endless number of ways to implement a solution for even the most simple task. One of those tasks that many take for granted is string manipulation. When talking to a friend recently about this it brought up the question of which method is faster and better performing. So I decided I needed to look at execution speeds and memory usage of three of the main string manipulation implementations; String.Format, StringBuilder and String Concatenation. To do this this testing I developed several test cases within the same project and monitored execution speed and memory usage at the end of each case. All tests were done in C# .NET 4.0. My end result is a sample e-mail body that [Read More...]

Share
 

With the addition of a new player, Google Plus, into the social media space you may be wondering what sets it apart from Facebook behemoth.  After spending several months using Google Plus I can say that there is a strong list of features that set it apart from Facebook.  Everyone looks for something different so I’ve tried to focus on features from a more technical standpoint.One of the things that sets Google+ apart from Facebook is something that most articles don’t really focus on and that’s photos.  With Picasa running the back-end for photos in Google Plus it gives you greater control and flexibility than that of what Facebook offers.  You may not think much about it while using Facebook or Google, but there is [Read More...]

Share
 

Recently I came across the need to insert the same unique identifier into two separate columns in the same insert statement. It turns out that it is a relatively easy solution but something that took a little bit of ingenuity. So it’s not often, in fact I can’t think of many instances where you would need to insert the same unique identifier into two different columns in a single table in a single insert statement. As you may or may not know the easiest way to get a new unique identifier in T-SQL is using the command NEWID(). However, the problem is that if you make this call twice in a single statement you’ll get two unique identifiers. Now if you are doing a single [Read More...]

Share
 

Recently I switched to Arvixe web hosting on a suggestion from a random stranger and I have to say that so far the decision has been very rewarding. With this post I’m going to go into detail the advantages that Arvixe web hosting has provided me and why if you are looking for a new web host for ASP.NET 4.0 or WordPress hosting you should consider Arvixe. I initially found Arvixe because I was in search of a web host that could not only support ASP.NET 4.0 but provide me with the flexibility and freedom to use whatever mail server that I wanted in order to send emails from my applications. My selected web host also needed to be able to support multiple websites under [Read More...]

Share
 

While writing a large series of in-line if / else statements I came across a very fundamental question.  Which one is faster, in-line if / else statements or your standard if / else statement block?  No matter who I asked no one seemed to have a good answer, so I took it upon myself to find one.  We can all probably agree that in-line if statements certainly take up less space and some may argue that the are much cleaner code.  And to be fair the more I’ve used in-line statements the more I’ve come to like them.  But the question still remained, in the realm of performance which one was faster. So I decided to test it myself and to do my test I [Read More...]

Share
© 2010 Michael Merrell Part of the AFK ATM Network Suffusion theme by Sayontan Sinha