February 1, 2009
"Convention over configuration is scary but fun, its great when you can guess the convention, but hard when you are trying to trace through how something works."

— Karl Prosser (ME)

HOUR 2: 2:00PM to 3:00PM - events occur in real time.

Hour2: 2:00 to 3:00

2:05 Got installed, template there, created first application, for hello world got “System.BadImageFormatException: Bad IL range.” ODD error - but probably to be expected with no controller, or model

2:12 Got myself a nice cup of “English Breakfast Tea”

2:13 - YUCK I accidentally had made a VB.NET rather than C# project. I feel Dirty

2:16 made a NEW C# one, without tests and I didn’t get that strange error. Going to try C# with tests.

2:18 YAY, C# ASP.NET MVC project, with tests, compiled and run with no errors. Though I don’t intend of doing custom tests in the alpha. I’ll keep it this way.

2:20 changed app name, and it looks like I’m using master pages some anyway at least since that’s what the template uses.

2:25 poking through each file in the template generated project, and making sure I understand everything I see. Decided to not bother with other templates for now, but use this project to get a full round trip with different URLs, presenting data from the DB

2:29 I see the accountcontroller. I won’t have any login stuff in this Alpha. But I’ll leave this in here for now.

2:35 Decided on buying the domain name, but having a hard time locating my registrar login info :)

2:44 purchased tweetloss.com , there we go. You now know the name of the application.

2:45 BATHROOM break.

2:48 Decided on a restful URL pattern, and working on first Controller and View.

3:00 Making progress with the view and controller

HOUR 1: 1:00PM to 2:00PM - events occur in real time.

1:00 to 2:00 - events occur in real time.

1:10 - Blogged about the project.

1:15 - researched if there were any similar apps. Only one mentioned that doesn’t exist yet. Might have missed something, but since this is mostly a learning experience that’s a fine risk.

1:20 applied .net 3.5 SP1 to dev machine.

1:26 looked for an ASP.NET blog entry I remember but can’t find. I really need to go back to bookmarking and use something cool like DIIGo

1:30 ARG, dotnet update is 304 MB and going to take 1 hour :(

1:31 contemplating whether I should throw $10 at a domain name for this thing.

1:36 found the blog item I was looking for http://bit.ly/IedX

1:36 - had some issue installing .net framework 3.5 SP1 - hope a reboot will fix it

1:37 realized that I didn’t put “WILL NOT USE TDD” in the list of things not in scope in the Alpha.

1:40 found this blog entry from Scott WU  http://bit.ly/IedXhttp://bit.ly/129PF that has a link to the download. Wow the MSI is less than 2MB/ (downloaded)

1:55 - windows updates completed, finished reading the blog entry I found earlier, and ASP.NET MVC RC about to be installed.

1:56 ASP.NET MVC RC setup installer had an ERROR - ARRG - think when it was trying to add the templates to visual studio.

1:59 maybe it completed. But there was still an error. This hour wasn’t as productive as I’d have hoped.

Building an ASP.NET MVC Twitter app over 24 hours.

I want to make a asp.net MVC twittercentric web app in 24 hours. I had initially thought that I’d do 24 hours in a stretch, but as an aging (31) family man I don’t think I will be able to pull that off, so its going to be stints.

So my starting point:

WHAT HAVE I GOT SO FAR?

    -I’ve decided on the platform

    -the idea and name of the app

    -written a few thoughts, notes down,

    -registered the twitter account that its going to be based around.

    -I am a proficient DOTNET developer, but a fair bit of asp.net experience, but I wouldn’t say an ASP.NET expert, and I haven’t touched ASP.NET MVC. I have however been reading about it during its development, and grok the concepts.

   - I’ve brainstormed many aspects of the features, design and architecture probably for more than a couple of hours in the background whilst doing real life.

WHAT HAVEN’T I DONE YET?

   -I don’t even have it installed in my development environment (which will be my first task).

WHAT I DON’T THINK WILL BE IN THE SCOPE OF THIS ALPHA?

   -Allowing the user to pass in their twitter credentials. I’m going to force any account related stuff to be sent via tweets from their account. I don’t want to even temporarily have twitter credentials pass through my server, until an app is fleshed out, tested, and secured.

   -Won’t be on the public internet - it will be running on localhost on my dev box.

   -Making it look pretty - I’ll just choose some basic ASP.NET MVP template to start with, and even “borrow” images from image.google.com while I flesh out the app. Of course once the first round of code is done, I’ll work on themeing it myself.

   -Won’t have any web based jobs updating my database with twitter responses. I’ll probably just have a build that part of it out in a powershell script on a recurring job for the first alpha.

   - Won’t have any ajaxy behavior. Jquery will be there, and may be used for a few visual things if it takes a short period of time, but this is pretty much just simple page requests showing data. However of course the 2nd alpha should be in more depth.

  - Will keep basic views, won’t use master pages or anything else.

WHAT I PLAY TO BE IN THE SCOPE OF THIS ALPHA.

-Allowing the user to issue commands through twitter ( with replies or direct message).

-Allowing the user to issue and record a few different types of information.

-Have a web page that displays the data related to this app, that includes graphs and charts

-Data will be retrieved by LINQ2SQL, but that LINQ2SQL will probably be simple, and for complicated queries will just call stored procedures.

-

FIRST STEPS. (some of these can be done concurrently )
-Download ASP.NET MVC and get a build in test project running.

-Choose an ASP.NET MVC template to start with

-Start the first ASP.NET MVC proof of concept. Basically get full round trip. From request->routing->controller->model (which will get data from DB) and back to view sort of thing.
-Start database and model design

-Start building powershell scripts to query twitter, and update the database.

-Fleshing out command syntax and scope limiting features.

I know I haven’t even said what this application will do, but that will come in time. I don’t plan on spamming by blog with lots of updates on this so I’ll be running a tubmlr blog for that. http://geekkarl.tumblr.com/ and will also be doing small summaries on twitter http://twitter.com/karlprosser

I’ll also be hanging out as usual in the #powershell IRC room on freenode.com and hopefully not getting too distracted there

-Karl

January 29, 2009
me and my honey

me and my honey