Contents tagged with C#

  • We call them software factories

    When I first started designing and architecting online applications, we decided to move custom settings from a database to an XML file for more versatile settings for our customers. With hundreds of agencies using our system, we needed to have the ability to easily and quickly change settings on a customers website without making core-code changes, XML allowed this. However, a year after we released we found issues with this setup. 

  • Application logging – yes it is important

    I’ve spent most of my professional career working on Enterprise Applications (mostly web based). Sometimes you release your code and everything goes smoothly (this is where praise is warranted by rarely given). However, there are times when code has been in place for many days, weeks, months without any issues and all of a sudden – all hell breaks loose and it stops (this is where harsh comments are never wanted but always received).

  • Updated BicNet Projects

    I have updated my projects site. This section of my bicnet website is a place where I can throw working examples of blog posts, and other things I like to show.  Sometimes at home I'll find something cool, and I'll throw it up there for my manager to see.

  • A Quick refresher on List<T>

    I'm a big fan of .NET Generics. In fact, I can't believe I lived without them in .NET 1.1.  Generics are pretty much the most powerful feature for C# 2.0. They allow you to define type safe data structures. They give a huge boost in performance, and they allow us to move away from DataTables and DataSets when it comes to collections of standard data.

    Microsoft's MSDN has a great article that explains more about generics. You can find it here.

    What I intend to give you in this short blog is a quick refresher on the List<T>. I've always loved this strongly typed list, and I cannot work without it.

    Let's take the class Ninja (Now remember there's a whole lot more to Ninjas than just their age and name):
    *Note this isn't the best made class, so please don't quote me on this one :P

  • Why redirect? Why not use a Modal Login?

    Since the conception of secure pages on the internet, there has been the <pause><chimes> "Login Page" </chimes>. When a user authenticates on this "Login Page" they usually get some sort of a Session set for them, and they're forwarded to a new page. When the authentication times out, or the user logs out, they get redirected to the "Login Page" (yea yea some of us might have a logout page).

  • My new blog has arrived...

    For the past year I've been writing blogs on my website using an old outdated version of Community Server.  A few weeks ago I was about ready to just write my own for the heck of it.. but we all know how that turns out when you:

  • Web Services, Sessions and the Windows Service

    For those that didn’t know, my beautiful wife is pregnant with our first child. The due date is the first week of November.  Because of this news I had to change jobs to make more money for my family. It was one of the hardest decisions I had to make as I loved working where I was. However, I’m having a blast working at my new job. I have always been a web developer. It was very rare when I needed to do any Windows Forms development.

  • Quickies vs. Performance - Part 1

    One thing I've noticed of the past few years is the amount of developers/programmers/ninjas that do take the easy and quick way to do certain tasks.

    With each release of .NET things get easier for us. Things are bundled together, we have to do fewer checks, and it's all nice. But, as much as we're being spoiled by all these cool encapsulated functions, we're forgetting some very basic coding practices.

    C# has garbage collection, so why should we have to destroy objects? There are timeouts on SQL Connections, so why should we close DataReaders? Servers these days are so powerful it's ok if I make every ASP.NET object global... it makes my code easier...

    What's happened to us? Now some of you might think: "That can't be so Ryan. No one would do that." Unfortunately it's true.  With many new developers hitting the main stage this is becoming more and more of an epidemic.