samdnp

Stories submitted by samdnp

Exception Categories - YALE(yale.edu)

submitted by samdnpsamdnp(975) 2 years, 9 months ago

This is an awesome article that tells you the state of the art with regards to exception handling in C# and similar languages. Print this out and read it! read more...

add a comment |category: |Views: 19

tags: another

string.Empty versus ""(dotnetperls.com)

submitted by samdnpsamdnp(975) 2 years, 9 months ago

The author shows ways that "" is better than string.Empty and results in clearer and possibly faster code. read more...

15 comments |category: |Views: 937

tags: another

DateTime formatting in C#(dotnetperls.com)

submitted by samdnpsamdnp(975) 2 years, 10 months ago

You know the basics of DateTime formatting in C#, but did you know you can specify the era (BC, AD)? This article shows how you can format your dates in C# using character strings. It has thorough examples of all the strings such as three-letter month and day strings. It also shows how you can specify the era, which has very limited use, but is part of the .NET framework. read more...

add a comment |category: |Views: 86

tags: another

Whitehouse.gov: an ASP.NET site(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years ago

This article looks into the JavaScript libraries, HTTP headers, platform and more of the new Whitehouse website. It includes statistics and some suggestions. read more...

5 comments |category: |Views: 676

tags: another

C# SortedDictionary(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 1 month ago

If you have ever considered using SortedDictionary, be careful. It has worse algorithmic performance than Dictionary. Here we see examples and how bad it really is. read more...

add a comment |category: |Views: 137

tags: another

C# Tutorial for DataGridView(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 1 month ago

This is a 15 page tutorial with lots of info and tips about DataGridView in C#. It shows how you can make alternating row colors, hook the DataGridView directly up to your database, and use lots of database tools in Visual Studio 2008. You can use the Columns collection to create custom templates for your DataGridView. read more...

add a comment |category: |Views: 2542

tags: another

C# Structs(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 3 months ago

What are the benefit of structs in C#? When can they improve performance and memory use? See examples and benchmarks as well as screens from CLRProfiler and the Visual Studio debugger. Is this is the best struct article in the world? Maybe! read more...

11 comments |category: |Views: 951

tags: another

C# -- IndexOf String Examples(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 3 months ago

I look at how IndexOf and friends can be used. Also provide benchmarks against regular string character testing. I found some interesting stuff re: performance. Also it has a nice purple chart. read more...

add a comment |category: |Views: 80

tags: another

Capacity Property on Collections(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 5 months ago

I really wanted to know if it is worth the bother to set the Capacity of Dictionary or List in C#. This page provides some benchmarks and analysis. read more...

add a comment |category: |Views: 9

tags: another

C# Cheat Sheet(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 5 months ago

Contains lots of samples, examples, and templates for your C# code. Includes arrays, strings, classes, singleton, sorting, 2d arrays, etc. Useful for people new to the language. read more...

add a comment |category: |Views: 165

tags: another

Rewrite URLs in ASP.NET programmatically(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 6 months ago

Here's how we can hook up 'friendly' URLs to a query string on an internal file for easier back-end development with a database or other data store. Friendly URLs will boost your site's traffic and provide better search results. read more...

add a comment |category: |Views: 14

tags: another

StringBuilder Secrets(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 7 months ago

Article goes beyond the basics and looks at some more detail of StringBuilder in C#, and a benchmark that can help you improve your code that already uses StringBuilder. With graph read more...

3 comments |category: |Views: 669

tags: another

Singletons vs. Static Classes - The loneliest number(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 7 months ago

Shows some advantages of singleton design pattern and static classes in C#. One is the loneliest number, but having only one instance of an object in memory is a very useful pattern. read more...

add a comment |category: |Views: 42

tags: another

C# Anagrams Fast w/ Source and GUI, uses 1985 data structure DAWG(code.msdn.microsoft.com)

submitted by samdnpsamdnp(975) 3 years, 8 months ago

This open-source project uses a directed acyclic word graph and Windows Forms C# to find anagrams in words fast and with little memory. In my experience there are no faster algorithms (implementations, yes). Useful for word games and only about 400 lines of code. Uses a tree in C#. read more...

add a comment |category: |Views: 79

tags: another

Sorting C# String Arrays w/ Benchmarks(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 8 months ago

An article I wrote to compare performance of sorting on different datasets, with LINQ and List generics. Has a chart and an illustration read more...

add a comment |category: |Views: 9

tags: another

A-Star Pathfinding in C#(dotnetperls.com)

submitted by samdnpsamdnp(975) 3 years, 9 months ago

Article with code explanations and walkthroughs. Has screenshots of a program you can download and compile that displays the shortest paths between two points. Could be the beginning of a new game! read more...

add a comment |category: |Views: 442

tags: another