Where's the code?

"I like to code." - mo khan

I am a super passionate developer. It's a hobby for me before a career. I like to code. I like sharing the things that I have learned in hopes that someone out there will benefit and appreciate it. In an effort to help you out, I have published some of the code I have written on my own time.

Code Kata: Mars Rover (C#)

Crusin' down Mars in my '64

A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which is curiously rectangular, must be navigated by the rovers so that their on-board cameras can get a complete view of the surrounding terrain to send back to Earth.

A rover's position and location is represented by a combination of x and y co-ordinates and a letter representing one of the four cardinal compass points. The plateau is divided up into a grid to simplify navigation. An example position might be 0, 0, N, which means the rover is in the bottom left corner and facing North.

In order to control a rover, NASA sends a simple string of letters. The possible letters are 'L', 'R' and 'M'. 'L' and 'R' makes the rover spin 90 degrees left or right respectively, without moving from its current spot. 'M' means move forward one grid point, and maintain the same heading.

Assume that the square directly North from (x, y) is (x, y+1).

Source code: http://github.com/mokhan/mars.rover/tree/master

Where my money at?

A sample winforms app

If you are interested in Windows Forms, you might want to check out my "Mo Money" application. It is a thick client built on Windows Forms, in a tiered architecture. You will find exmples of Application Controller, Unit of Work, Command, Intercepting Filter and several other design patterns. It was build test first using developwithpassion.bdd and has several Nant build scripts to run, test and deploy the application via clickonce.

The source code is hosted on Github and can be found here If you are not familiar with git I highly recommend it.

If you are not interested in the source code and just want to try out a live running instance you can download the installer from here.

You will need the following items installed to run the software

Don't worry if you're not sure if you have the following components, because the installer will install it if you don't.

Download My Money

Source code: http://github.com/mokhan/mo.money/tree/master

Gorilla Commons

A piece of framework

I know, I know... just about every developer has built their own framework at one time or another. Gorilla Commons is mine. It is packed full of cross cutting functionality like logging, dependency inversion containers etc.

Source code: http://github.com/mokhan/gorilla.commons/tree/master

Did you write the Specifications Document?

Naaaw man, I automated it

Spec dox is a quick command line executable to generate an html document from executable (tests) specifications. It scans an assembly that contains your unit tests, and creates a report using the names of your executable tests.

Source code: http://svn.xp-dev.com/svn/mokhan-spec.dox/trunk/

Riding on MVC

Not quite dubs, but it will do

I started re-writing my site on ASP .NET MVC, then got bored. Hopefully, this serves a place to learn some new concepts like how to use Fluent NHibernate.

Source code: http://svn.xp-dev.com/svn/mokhan_mokhan.ca/trunk/

Ay ay, captain!

"That's all I can stands and I can't stands no more!" - Popeye

Slips was the first ASP .NET application that I have ever written. It was my final project for night class I was taking at SAIT back in December of 2007.

Source code: http://svn.xp-dev.com/svn/mokhan-sait/slips/

Notepad .NET

A work in progress

This is an application I started building to start learning more about Windows Forms. It has not progressed much since I started working on it.

Source code: http://svn.xp-dev.com/svn/mokhan-notepad.net/

Experiments

A collection of goodies...

I started piling some experiments in to this repository. This is a home for projects that I started but never finished.

Source code: http://svn.xp-dev.com/svn/mokhan-experiments/

Google Code

Bag of code

This is an old repository that I used to dump all sorts of code in. There are examples of different design patterns as I interpreted it when I was first learning about Design Patterns. It has my code submission to ThoughtWorks when I was going through the hiring process. It has two tools that I wrote to move my posts from MSN Live Spaces to Blogger, and a tool that I wrote to move my blogger posts to Das Blog. It has a short spike of Google Desktop search, and most of my assignments from night classes at SAIT.

Source code: http://code.google.com/p/mokhan/

Copy Files

This was an app that I wrote a loooooong time ago. I do not remember what it does!

Download Copy Files

RSS 2.0 Generator

This is an app that I wrote when I was first trying to learn C#. It scans a directory and creates an rss feed based on the files in the directory. It shells out to a command line app written in C.

Download RSS 2.0 Generator