Posts
Published 12 September 2010
in archive
with tags
sql
So here I am, coding my own business, being a law abiding coder, when out of the blue comes a rather bothersome little problem which really did one on me. I had laid out an awesome plan for my awesome top secret project, a truly awesomely smart database design with relationships to link a rows in a table to rows in the exact same table, one way relationships from A->B. All I needed was a way to cascade them on delete, in other words, make sure when a row is deleted, every relationship (in the relationship table) is deleted along with it.
Continue reading …
Published 4 September 2010
in archive
with tags
csharp
,
hashtable
,
indexers
Indexers are great, I've only really started using them consciously today, but they're a great discovery I'll be sure to incorporate into more of my code from now on.
Continue reading …
Published 3 September 2010
in archive
with tags
xml
,
hashtable
,
csharp
XML is often used nowadays for many things, mainly due to it being so flexible, lightweight and easy to understand for humans. From configuration files to layouts, they all seem to be using it. With all the methods inside System.Xml you have everything you could ever need, unless of course you are, like me, addicted to generic lists and hashtables...
Continue reading …
Published 31 August 2010
in archive
with tags
csharp
,
winforms
And there you have it. Very easy, very simple and very very useful.
Continue reading …
Published 29 August 2010
in archive
with tags
csharp
In an effort to fill up this blog with code, I will over the next few weeks be looking back over my snippets, finding useful methods and posting them. Today's feature is a simple text formatter, which converts a long (representing bytes) into a string, giving you a nice readable file size.
Continue reading …