Archive

Archive for December, 2008

30-Day Exercise Challenge – Day 28

December 28th, 2008 joelhainley No comments

Slowly closing in on the final days of this challenge. I have to laugh because when I started this I dreaded the weight training days. Now I look forward to them. I’m not sure what it is about weights that I find so fun, but for the most part I really have a good time when I’m working out with them.

Weight training day:

  • crunches (25×4)
  • bench press (15×3)
  • dumbbell rows (15×3)
  • military press (15×3)
  • curls (15×3, 10×1)
  • leglifts (10×2, 15×2)
Categories: 30-Day-Challenge, Exercise Tags:

30-Day Exercise Challenge – Day 27

December 27th, 2008 joelhainley No comments

Just a simple bike workout today. The ab workout yesterday had me sore today, so apparently I found some new muscles. Looking forward to seeing how the ab workout tomorrow will go.

Cardio day:

  • Bike ride – (30m23s/428kcal)
Categories: 30-Day-Challenge, Exercise Tags:

30-Day Exercise Challenge – Day 26

December 26th, 2008 joelhainley No comments

For most of this challenge I have been doing my leg lifts just lying on the ground and lifting my legs up from the ground and then up to vertical and then back down to just above the ground. Until today. Today I started going my leg lifts while hanging off of my pullup bar, and became drastically more difficult. I was only able to pump out 10 at a time, and they definitely used different muscles than the other method, or they used previously used muscles in a new way. So at the end of today I’m in a bit of pain due to the new leg lifts even though they are drastically reduced number of repetitions from the previous method.

Weight Training Day:

  • leg lifts (10 x 4) – ouch..
  • crunches (25 x 4)
  • bench press – (15×3)
  • curls – (15×3)
  • military press (15×3)
Categories: 30-Day-Challenge, Exercise Tags:

Adventures in ORM on .NET 3.5

December 26th, 2008 joelhainley No comments

I’ve been working on a project in .NET 3.5  and  Adobe Flex 3 and have been having a good time getting the base architecture in place. I’ve spent the last couple of weeks looking at two ORM technologies available in .NET. NHibernate and LINQ for Entities. 

I started started out working with NHibernate because I was familiar with Hibernate in the java world. Well actually, I was familiar with the Repository from ATG which is pretty similar to Hibernate. (My general impression is that ATG’s Repository is a bit more polished than Hibernate) NHibernate worked out great and very quickly I was able to get the database access up and running and had a working prototype. Once this was done, I did some more digging to see what other ORM implementations were available for .NET.  There are quite a few projects out there but I came across LINQ, and specifically LINQ for Entities.

LINQ could probably best be described as a generalized approach at data access from various datasources that is intended to replace all of the customized query languages/approaches ( SQL, XPath, iteration through various collection classes, etc ) with a single language. Ostensibly this will reduce the amount of stuff a developer needs to know to be effective. According to the available documentation LINQ for Entities is the most customizable implementation of ORM functionality available in LINQ. There are some other ways to do similar things with a little less control using LINQ to SQL but I decided to just dig deep as the sort of control I was used to with Hibernate was most similar to LINQ for Entities.

I had to upgrade Visual Studio 2008 to sp1 to use LINQ for Entities, but this was trivial and I soon had things up and running. In short order I had everything working with LINQ and the application was moving forward again. At this point I’m mostly impressed with LINQ and I think I’ll end up using it for this project. There are a bunch of tools available in the IDE to support the mapping operations, and it will autogenerate initial classes by simply pointing the IDE at the database you are using.

I’m not sure if LINQ is the be all end all that microsoft is hoping it will be. I’m not convinced that a generalized query language is needed. It has been said, by several philosophers and more than a couple of programmers, that the language that you have available to express yourself has an impact on your thinking. In this case specialized languages such as XPath and SQL give your mind a set number of ways to express yourself that are consistent with the underlying implementation. Yet a generalized approach abstracts that away and removes you another step farther away from the realities of the toolset you are using. Is this a good thing? Time will tell and at the very least it will be interesting to see how far people can take this approach to querying various datasets. 

The thing I am convinced about is that ORM technology is making it much easier on developers to quickly and easily get database code up and running. The increases in productivity are real. It is nice to interact with the data as objects instead of as sql queries, stored procedures, etc. Somehow I suspect that the Smalltalk crowd is sitting in the wings chuckling at all of the other technology platforms touting their ORM solutions.

Categories: .NET Tags: , , , ,

30-Day Exercise Challenge – Days 21-25

December 26th, 2008 joelhainley No comments

Boy oh boy the holidays played havoc on my challenge. I didn’t do anything of any consequence the 21st through the 24th. Yesterday after Christmas dinner I went for a short walk but it was pretty cold and I forgot my hat, so I turned back after a mile for a total of two miles. 

Hopefully I can finish up the month with consistent exercise. Here’s to hoping!

Categories: 30-Day-Challenge, Exercise Tags: