NavMenu

Friday, September 10, 2010

Windows Live Writer & Code Snippet Plug-In

After writing such a long article (in my past post), I realized that I needed a better way to post, format, and show my code snippets.  I’ve decided on Windows Live Writer as my blogging tool and WLW Code Snippet plug-in for displaying my code.

WLW Code Snippet plug-in:  You can get the plug-in at Leo Vildosola's Blog or at CodePlex

kick it on DotNetKicks.com

Shout it

Thursday, September 9, 2010

PASSING PARAMETERS BY VALUE & BY REFERENCE

I misunderstood passing a reference type to a method by reference and wrote it as ref param.  I found this error in understanding when I asked a question about memory footprint of a reference type variable.  The forum folks pointed out that I did not need to pass my object via ref and gave me some great links to help me wrap my brain around my misunderstanding.

I spent time researching and then testing code to make sure I got it.  But what I realized after reading the articles referenced at the end of this article, although each is well-written, they were not targeted to the beginner.  So this blog post takes a crack at explaining this concept in more basic, beginner terms.

kick it on DotNetKicks.com

Shout it

Saturday, September 4, 2010

Sudoku Solver Progress Update

Today I finally completed the SolverEngine for handling Easy to Medium level boards.  It solves each within 54 msecs.  Of course that execution time could be improved, but I'm not concerned about that right now.

kick it on DotNetKicks.com

Shout it

Working With ArrayList: What is the best Iterator choice?

When you first look at which statement to use to iterate through an ArrayList collection, the foreach statement stands out.  It's syntax is concise and readable as well as no extra lines of code are needed to extract the element you want to work with.  But...[pause for effect]...if the collection is changed (e.g. adding, modifying, or deleting elements and even copying to it), you'll get a runtime error that the "Collection was modified."

kick it on DotNetKicks.com

Shout it

About

My photo
Welcome to my blog! This blog is about my journey to become a Master .NET coder and teacher.

Followers