LA.NET [EN]

November, 2012Archive

Nov 15

Quick tip: measuring the performance of your JS code? Don’t hit F5 from VS!

Posted in Javascript       Comments Off on Quick tip: measuring the performance of your JS code? Don’t hit F5 from VS!

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

Overflow and checked contexts

Posted in C#       Comments Off on Overflow and checked contexts

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

Fixing the blog: my winning combination

Posted in Trivia       Comments Off on Fixing the blog: my winning combination

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

C#: more details on numeric conversions

Posted in C#, Uncategorized       Comments Off on C#: more details on numeric conversions

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 »