LA.NET [EN]

September, 2011Archive

Sep 28

Book review: Parallel Programming with Microsoft VS 2010

Posted in Books       Comments Off on Book review: Parallel Programming with Microsoft VS 2010

[Disclaimer: I’ve received a free copy of this book for reviewing] A few days ago, I’ve received a copy of the Parallel Programming With MS VS 2010 book. Before delving into the parallel lib, the books starts by presenting several interesting concepts related with parallel/multithreaded programming. From chapter 2 onwards, it’s all about the Parallel […]

Read the rest of this entry »

Sep 15

More thoughts about the new UI user experience

Posted in Windows8       Comments Off on More thoughts about the new UI user experience

After playing a little bit more with the new Windows 8 preview, I’m a little more used to the new metro UI. I’ve already removed all the default crap (oops, applications…that’s what I meant) and I’ve added shortcuts for most of the apps I use daily. I’m still trying to figure out how to place […]

Read the rest of this entry »

Sep 14

Windows 8 first impressions

Posted in Windows8       Comments Off on Windows 8 first impressions

I’ve decided to use it in my home machine…couldn’t resist it, you know The first impressions are positive, though I’m not sure if this metro thingy is something I want to use in my day to day work. I would really be glad to end up with slick and fast UI + tools. After all, […]

Read the rest of this entry »

Sep 13

Exceptions in .NET– part VII

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET– part VII

Before going on, I need to confess one thing: I’m really frustrated! Why? simple: I was watching the damn build keynote and it stopped…right in the middle of the whole JS app for Windows 8…oh well, it’s probably a sign that it’s time to go back to my blog… As you probably recall, in the […]

Read the rest of this entry »

Sep 13

Exceptions in .NET– part VI

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET– part VI

As promised, today I’ll start presenting some interesting guidelines you should follow when working with exceptions. If there’s one guideline you should *always* follow, this is it: don’t catch every exception there is…especially if you’re developing libraries which will be used by other developers. It’s important to realize that whenever you catch an exception, you’re […]

Read the rest of this entry »

Sep 09

Exceptions in .NET–part V

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET–part V

When someone with lots of experience in Win32 programming starts using .NET, they tend to be shocked with the regular use of exceptions. In fact, they tend to ask why do we define APIs which don’t return error codes and rely heavily on exceptions. Well, it’s a matter of “culture”. Notice that .NET and OO […]

Read the rest of this entry »

Sep 09

Exceptions in .NET–part IV

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET–part IV

In one of the previous posts, I’ve mentioned that the CLR allows an instance of any type to be thrown for an exception (notice that this isn’t allowed by the CLS). In practice, this means that you should be able to throw ints or strings from CLR languages which allow you to write non-CLS compliant […]

Read the rest of this entry »

Sep 08

Exceptions in .NET– part III

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET– part III

As I’ve said before, you’re supposed to throw an exception when a method cannot complete its task in the way it’s supposed to do it. Before throwing an exception, you should consider two things: which type of exception should you throw? What’s the message that  you’re going to pass into the Exception constructor? The first […]

Read the rest of this entry »

Sep 08

Exceptions in .NET– part II

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET– part II

In the previous post, we’ve started looking at how to use exception in .NET. Even though the CLR allows an instance of any type to be thrown for an exception (more about this in a future post), the truth is that all CLS compliant languages can only catch and throw Exception derived exceptions. That’s why […]

Read the rest of this entry »

Sep 07

Exceptions in .NET–part I

Posted in .NET, Basics, C#       Comments Off on Exceptions in .NET–part I

After a great month of vacations, it’s time to go back to work. And this time, I’ll write a couple of posts about exceptions and exception handing in .NET. In .NET, we should generate an exception when a member (method or property) fails to complete its task correctly. Did you noticed the “fails to complete […]

Read the rest of this entry »