About the author

Steven HarmanSteven Harman is a passionate developer who believes that writing great software isn't just a job, its a craft.

ASP.NET MVP

For recent posts and more about me, scroll to the bottom.

Subscribe

  • Subscribe to my feed. via RSS
  • Subscribe via email via email

Jobs

Badges

  • Subtext Project
  • Support Subtext
  • HiddenNetwork.com Banner

April 2006 Entries

[How-To] Override equals() and hashCode()... Part 2.

In Part 1 of this series we discussed how to override the equals method for any class the extends from java.lang.Object, why we would want to do so, and a few pitfalls of doing this. In this post we will look at how and why you must also override the hashCode method any time you override an object's equals' method. So why the hype about hashCode()? Good question. And I have an answer for you! If you take a look at the Java JDK documentation covering Object.equals you will see that one of the last things mentioned is the following: Note that it...

[How-To] Override equals() and hashCode()... Part 1.

Despite the enticing title of this two part series, I'm sure its content will prove to be quite obvious and mundane for many experienced Java and/or C# developers out there... but that doesn't make it any less important. This is a topic that I often find myself covering with our new entry level developers, and on occasion even with some more seasoned developers. Java & C#, huh? You probably noticed that I mentioned both Java and C# above... and I did so for good reason(s): this is applicable to both languages (and probably many other for that matter) We are a purely Java...

subText Reaches 1,000 Downloads - and Counting!

I was just checking out some of the stats for the subText project site over at SourceForge, and I noticed that we hit the 1,000 downloads mark this past weekend. Looks like it happened sometime on Saturday (April 8th, 2006) morning. A Hearty Thank YouWe [the subText Team] don't know who it was that made this historic download, and we don't have the funds to throw a huge party or give away something cool like an iPod... but on behalf of the entire subText Team I'd like to say Thank You. And also, a sincere Thanks goes out to everyone...

The New Buckeye State Brew...

According to this AP article, the fine folks at Anheuser-Busch will soon be brewing up a special beer just for the state of Ohio. Through the end of April, Buckeye State beer lovers can visit select Columbus-area pubs to taste each of the three candidates for the official Buckeye State Brew. Then, we head off to OriginalBeers.com to cast your vote for your favorite brew. The winning beer will be announced in June and should be available on tap at pubs and restaurants throughout Ohio just a few weeks later. About the Beers There are three possible candidates for Ohio's custom...