Thursday, March 22, 2007

Infinities Loop : TRULY Understanding ViewState

I recently stumbled across this article on ViewState. I wasn't expecting to learn much, but I was pleasantly surprised. Definitely worth the read if you are an ASP.NET developer.

Thursday, March 08, 2007

Using code Tag to Display Code in Your Blog or Website

If you post code to your blog or website, you might want to consider using the <code> element to help separate your content from the code. This can be achieved nicely by setting the style for the <code> element in your CSS. I use the following style in my blog to help format code snips that I post.

code
{
background-color: #f6ffff;
border: solid 2px #bbbbbb;
display: block;
font: courier;
margin-left: -10px;
overflow: auto;
white-space: pre;
width: 410px;
}


Sample:

<code>
#include &lt;stdio.h&gt;

int main(void)
{
printf("Hello world!\n");
return 0;
}
</code>

Friday, March 02, 2007

Advanced OOP Design Patterns

This is, without a doubt, one of the best online resources I have come across, which clearly demonstrates some fundamental design patterns used in OOP. After reading the excerpts from the book, I'm convinced I'll be purchasing a hard copy as soon as possible. Whether you program in C++, C#, Java, or any other OOP language, these fundamental design patterns should be applied to your programs.