Archive for the ‘Code’ Category

Entity Framework - is it going to work?

Monday, January 21st, 2008

I played with object spaces way back when and thought it was a great idea.  Then it died.  I started playing with Linq to SQL, and although it did not die it so missed the mark I think it will die.  I started playing with entity framework (EF) in beta 2 and now in beta 3.  So, is it going to work? not how it sits now. 

(more…)

Is object oriented progamming a sham?

Friday, August 24th, 2007

So I have been doing quite a bit of research lately on application architecture and keep wondering this.  I know that some would consider even mentioning this thought sacreligious.  When I look at highly scalable reference architectures none of them are fully object oriented and many of them dont even pretend to be object oriented. 

(more…)

RemotingConfiguration.Unconfigure() ???

Wednesday, June 6th, 2007

I was playing around with an old poker server that I had written and decided to make some changes. The way the client/server works is that client scrapes the screen and turns the current screen state into a message. This message is then dispatched to the server using MSMQ and the response to the message is the action to be taken by the client (do nothing, click a button, sit out, close the window etc…).

(more…)

C# vs C++ Performance Part II

Sunday, November 5th, 2006

In my previous post I discussed some of the timings of c# vs c++ and what I found. Well, it seemed so preposterous to me that the performance of c# was so much worse that I had to redo the timing.

(more…)

C# IRR Code

Thursday, October 19th, 2006

As I said earlier here is the code to calculate IRR in C#. This is a rather long entry so you will have to be prepared to spend some time. While it’s not critical that you read it, I think it is important for those who have never written an IRR formula to understand how it works and what goes into it. This way, if you decide to use it and something goes wrong, you should be able to fix it. But don’t fear, the code is in here. (more…)

C# performance vs C++ performance

Thursday, September 14th, 2006

Some of you know that I have been playing around with writing poker calculators and poker game simulations. These days, my preferred language is C# so I decided to undertake my project in C#. I happened to run across Cactus Kev’s Poker Hand Evaluator and it looked pretty slick. I have already written my own evaluator in C# and it was pretty fast but this looked like a screamer.

(more…)

C# dotnet MSMQ Remote Private Queues

Tuesday, September 12th, 2006

I am working on a project and needed to communicate between two XP pro machines that are not in a domain. Initially I wrote a named pipe wrapper because its quick and dirty. However, my server was getting bogged down and dropping messages. I decided to switch to MSMQ since it will give me some message reliability.This was very easy to do on my local computer.

(more…)