panteravb.com

Enum Versus Boolean

I've been in discussions in the past about this one.  Let's say you have a method signature, and one of the parameters to the ... s on what you're building, but I like the more readable look rather than the other, at least if I'm publishing the interface.

Death Row

I first learned about the concept of sentencing software to Death Row in Gina Trapani's book lifehacker: 88 tech tips to turb ... i checkout crap from every place that lets me.  Now i'm in the habit of Death Row, so I can keep that folder nice and clean.

Active Record From Scratch

According to Martin Fowler, the Active Record pattern is described like this: An object that wraps a row in a database table ... c class Post : ActiveRecord { public string Title { get; set; } public DateTime CreateDate { get; set; } } 1 2 3 4

»Make everything as simple as possible, but not simpler.»

Try Catch blocks are tricky bitches. I've ranted about them before. Do not abuse them.  How do you abuse them you ask? You us ... at that level to make sure the user entered that information appropriately.  It's VERY easy to do. You just have to do it...

How Expensive Is Reflection?

I've seen many blog posts recently that give guidance on late binding with reflection versus early binding with casting.  Wha ... see a difference, but over the 10,000 mark there is a major difference. Here's my wicked cool test code in all it's glory.

RE:Technical Interviews

My response to Hussain's post on Technical Interviews.(read it first and come back here). Crazy Questions I never liked that ... the next time I'm finding it difficult to fall asleep, I don't how to do that, and I don't plan on learning.  UML == BORING.

Chris Carter's Web Log

I'm playing around with some different techniques of generating javascript with C#.  No, I'm not creating my own Script#; whi ... dom.  ScriptWriter doesn't feel super comfortable right now either, but this is a first stab. Click here to view the source.

How to Make Things Complicated

I have some classes that work together to make writing html easier.  One class is Element and one Attribute that represent th ... ution and jump right into a pile of crap.  Regular Expressions I thought about using regex. That's as far as I got though :)

Why I Require Email When Posting Comments On My Blog

2 reasons, one of them is not necessary, and is merely for commenter bling, the other helps me by eliminating 99.999 percent ... et, if it gets a thumbs down from akismet as being legitimate, the comment is ignored and not passed on to me for moderation.

Slayer Lives

OK.  Slayer is up.  It's running 64 bit Ubuntu 8.04, Hardy Heron.  I'm using my old machine, a dual core AMD 4200. I am a li ... ow what I'm doing on Linux), using Samba, and vmware player had no issues about loading up the image from across the network.

Ugh…I Hate Cleaning

Lasagna My brother Tim went to college and at some point worked at an Italian restaurant.  While there, not only was he taugh ... going to make that pile of shit that needs to be fixed a little bit bigger and you as the developer a little more depressed.

Faster Forms

How do you build forms?  We are tasked with building a toolkit that's pretty framework agnostic, meaning it should work in as ... t of code you can write to get no less than 100% of the desired form functionality.  This includes any field validation, etc.

More WPF Fun Finding Out What's Running On Your Machine

Tobin had a good idea in his comment on my last post on my little scratch app What is That? DataMining: Losing the WebBrowse ... place, that kind of code exists here, here, and here.  This code is just me playing around with WPF.  Download the code here.

C# Future…Is There One?

After watching the C# Futures presentation by Anders at the 2008 PDC I got REALLY excited about what's in the future for C#.  ... e framework do more, hurting our industry because it's harder to maintain by the "regular joe" or is it helping our industry?

My MacBook Pro — If I Were to Buy One

I configured the best lappie I could buy on Apple's site and here's what I got: Here's why I don't have a mac(yet). Macs do ... Ps. If it was a supported option, I would consider putting the Mac OS X on that thinkpad...until Windows 7 comes out anyway.

C# Var

I've been seeing a lot of people posting code examples that have the C# var keyword sprinkled liberally through their code. ... q query that returns an anonymous type. Using it in situations where you know what the type is makes your code hard to read.

Cannabis Sativa, or How I Spent My Sunday

Although I don't smoke the stuff, my clothes reek of it; even my camera has that smell.  Music Last night was Cruefest, and M ... nuine Draft.  Those guys must rake in cash hand over fist. Mullets Mullets Everywhere Here's what was in front of us: Dorks

ASP.NET MVC: Remember The Config

.aspx.cs and .aspx.designer.cs These files are not needed in asp.net mvc views, but when you add the default mvc pages suppli ... onfig, to display completely different layouts. Here's the source code for the example(based on Mvc Preview 5) for this post.

ASP.NET MVC(Preview 4): Initial Thoughts

Overall I've spent the last few days exploring the MVC offering from Microsoft.  I like it.  Alot. Remove everything that suc ... source code for MVC, you'll see a HUGE difference in the amount of code needed to produce simple html. More to come on MVC...

Sketchy Food Tracker

Via Tobin, i decided to check out Balsamiq Mockups.  Wow.  This tool is frickin awesome. Food Tracker As part of starting a c ... ff look good. Anyway, if you have drawn diagrams of screen layouts before on paper, it's worth takin a look at.