Saturday, May 12, 2012

My First cloud app is up and running .

                  I am very excited to announce this. My first cloud application is up and running .Click here  to navigate the site. A couple of days ago I have started developing a cloud app using Microsoft windows Azure platform. I named it as "SketchIt". It's really makes some fun.

What is SketchIt :     
               SketchIt is a Pencil sketch drawing Application. You can choose your photo and click on "Upload". That’s it . SketchIt automatically   draws your photo with pencil using a powerful pencil sketch engine .It also shows drawn image preview and URL to download your  pencil sketched image .

SketchIt
       
How it works :        
             SketchIt uses a powerful engine called “Vedhasi”. I have developed this engine and named it as "Vedhasi" . Sketchit is hosted  in Microsoft cloud platform with  two web roles so it is 100% reliable no down time.So start draw your photo with SketchIt..

Thursday, May 3, 2012

The 3+3+3 will not creates lot of strings

A couple of days ago during the code review i have observed lots of interesting things. One of the important thing is when to use String builder and when not to use String Builder.

                 There are so many difference between String and String Builder.  Any way i don't want to cover all the things here because it going to rewriting the same code again. But here i am going clear the confusion about  String or String Builder during the concatenation.
                

String Builder comes with its own overhead. If you have fewer than about seven concatenations, Use simple string concatenation even if you get intermediate strings on the heap.Secondly, when concatenating strings in one shot, only the final string is created. In that case, do not use String Builder


Ex: String s = “s1” +” s2” + “s3” + “s4”;

String Builder capacity

The String Builder  default capacity is 16. Each time the String Builder runs out of capacity, it allocates a new buffer of twice the size of the old buffer

StringVsStringBuilder