Wednesday, September 13, 2006 - Posts

Protect your inbox, very cool idea

Email addresses to me are like shoes.  When I buy a pair of shoes I buy them to be my running shoes.  Running shoes are the top of the pyramid for me.  After the shoes have hit their life expectancy as running shoes they get replaced by a new pair of running shoes.  The original pair is then demoted down to my everyday shoes.  Shoes that I wear to work, to the grocery store, ect.  After that they get demoted to the shoes I do yard work in.  The last and final stage of a pair of shoes, what's left of them, is to be my disc golfing shoes, where they're likely to get wet in rivers and ponds.

I use email addresses are much the same.  I get a new email address and I protect it from the hoards of spam out there.  I don't just give out the new email address willy-nilly.  I try to protect it using an older email address as a buffer.  When required to give an email, I provide my spam email address (some old hotmail account) which I can access to answer confirmation emails if need be.  Over time though I enter my email into what I think is a trusted site where I will be receiving email notifications regularly, so I give them my primary email address.  Eventually I get overloaded with spam and give up on that email address and create a new account somewhere on some great new mail service.  The once pristine email address I used to own gets demoted, just like my shoes, to the role of spam collector.

To help combat this, I've been pointed to this new service at SpamBox.us where a temporary email is set up.  All emails to that account are forwarded to your real account which is hidden.  I just signed up for del.icio.us using this technique.  I got the confirmation email in my gmail account, but if any email is stored in a database, it'll be the cryptic cWP3rzqxIlLB8A3c@spambox.info that I signed up with.  The spambox email is temporary, anywhere from 30 minutes to one year.  After that, it's gone, along with any record to my real email address.

Do I trust SpamBox not to sell my email?  Not entirely. They say they won't you never know.  The way I see it though, is that if they do in fact sell it, it'll only becoming from one source rather than 35-50 accounts I have opened around the internet.

I hope this helps you keep your inboxes free of spam.

with 1 Comments

Custom Collections, what responsibilities should they have?

I just got sent a bug that I need to fix.  It was my fault.  While fixing the bug though I had the chance to look at some old code I had written.  I know learning is an continuing thing, but I was suprised to see some of the decisions I made way back when.  One thing in particular caught my eye were some custom collection classes I wrote.

The particular code dealt with a blog module in our product.  Having two domain objects, blog and post, I had create a postcollection class which would store a collection of posts (go figure eh?).  I'd like to think I'm becoming better with separating concerns in my classes in that I've become more aware of places where I should impart some separation.  Looking at my old code though, I found that I had built some static methods inside the postcollection class.  For example if you wanted to get back the list of posts for a blog you could say postcollection.Load(int weblogId) and you would be returned a postcollection.

If I were building the class today I would put that static method into the post class which would do the same thing but leave the implementation details out of the postcollection class.  The thinking is, "Post" is the domain object, "PostCollection" is simply a "bucket" that holds multiple posts, it shouldn't do anything more than hold posts (separation of concerns).

If it were you, which way would you do it?  Would you put the logic to get all the posts for a blog into the post class, the collection class, or elsewhere?  Just curious what others think.

with 2 Comments