Oren Eini

CEO of RavenDB

a NoSQL Open Source Document Database

Get in touch with me:

oren@ravendb.net +972 52-548-6969

Posts: 7,565
|
Comments: 51,184
Privacy Policy · Terms
filter by tags archive
time to read 2 min | 395 words

Just had one looking at the tests*; one minute I couldn't get what they were trying to do, and the second I got it and it was like: "This is so smart!"

Me and ReSharper and going through the code with an pickaxe and venegence in our eyes. I'm devoted user of ReSharper for a long time, and I can't believe how easy it is to do refactorying. It's like having an army of little coders that runs and do what I want, mostly without concious thought. This tool is smart. I'm making countless changes to the code, the code compiles, the tests pass, and I don't have to do anything more than will it.

One strange thing, I keep bumping into code like this:

public override int GetHashCode()

{

      throw new NotImplementedException("GetHashCode() is not implemented");

}

Anyone can think of a reason to do that?

* This is the first time I'd to read other people's tests, I'm starting to get why XP is so keen of them.

time to read 2 min | 311 words

As I said, EasyMock.Net looks pretty impressive, but it still has a very strong Java background, meaning javadoc comments, all caps enumerations, etc. First things first, I needed to .Net it. I am constantly surprised by how wrong a feeling a different coding style can give me.

  • Renamed ArgumentsMatcher => IArgumentsMatcher
  • Converted Javadoc comments to C#'s XML Comments - highly tedious process.
  • Replaced Boolean => bool
  • Replaced String => string
  • Replaced Object => object
  • Removed /*sealed*/ comment
  • Removed useless cataches
  • Replaced Throwable with Exception
  • Replaced ALL_CAPS with CamelCasing for variables & enumerations
  • Replaced MockControl's ONE with Once, ONE_OR_MORE with MoreThanOnce and ZERO_OR_MORE with Any

This is enough for now to give it far more dotNetty feeling than an imported Java library. Things that I want to do with it:

  • Adding an easy way to add constraints.
  • Allow to chain expectation.

More will follow, probably :-)

Interesting tidbit, a developer that asked whatever the project was still alive got the project assigned to him. :-)

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. Production Postmortem (52):
    07 Apr 2025 - The race condition in the interlock
  2. RavenDB (13):
    02 Apr 2025 - .NET Aspire integration
  3. RavenDB 7.1 (6):
    18 Mar 2025 - One IO Ring to rule them all
  4. RavenDB 7.0 Released (4):
    07 Mar 2025 - Moving to NLog
  5. Challenge (77):
    03 Feb 2025 - Giving file system developer ulcer
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats
}