Nov 15
Today’s post presents a quick tip: if you’re interesting in measuring the performance of your web app (also applicable to Windows Store apps written in JS), then don’t start it by hitting F5 in VS. IF you start your app in debug mode, your JS code won’t be JITed and the results will be different […]
Read the rest of this entry »
Nov 13
I’ve ended the previous post on numeric conversions talking about overflow and how it might surprise you from time to time. For instance, here’s an example that might get you off guard: uint a = uint.MaxValue; int b = (int)a; Console.WriteLine("{0} – {1}", a,b);//-1 Running the previous snippet ends up printing the following: 4294967295 – […]
Read the rest of this entry »
Nov 12
If you’re a regular reader of this blog, you’ve probably noticed the problems I’ve been getting recently when I insert code snippets in my posts: When I write technical posts, I use Windows Live Writer because it’s free and it has lots of plugins. To be honest, it simply rocks! Now, I’ve used several formatting […]
Read the rest of this entry »
Nov 12
Conversions…such a boring topic and I’m positive that you already know everything there is to know about numeric conversions in C#. That’s all good, but I think there might be some small details that might bite you if you’re not careful. Ok, let’s start with the basics, shall we? Everyone knows that whenever you need […]
Read the rest of this entry »
Nov 05
Images are probably the most used media type in a page. Here are some simple suggestions for improving the performance of a page that uses images: include images in its native size. Do not resize the image by using the width and height attributes of the img tag (or its equivalent CSS properties). If needed, […]
Read the rest of this entry »