Browse by Tags

Lost in the Thicket of Syntax
06 June 08 10:46 AM | jons | (Comments Off)   
Parsing SQL syntax is hard, especially if you do not know what you are doing.  A major part of creating my in-memory database to support unit testing (see here and here and here ) is parsing the SQL commands.  I have written code to parse text Read More...
In-Memory Database: Waypoint #2
13 May 08 10:33 AM | jons | (Comments Off)   
Previously, on In-Memory Database, I talked about building something new that is derived from the SharpHSQL and SQLite code bases.  I have made some progress. Architecture I have made a couple of architectural decisions: First , The database must Read More...
ORM with NHibernate
12 May 08 12:33 PM | jons | 1 Comments   
In this post I am going to refer to the code and Power Point slides that I used at the Code Camp.  You do not need to have these materials but it might help. Just to refresh our memories, an ORM maps data between the application domain model objects Read More...
Life
12 May 08 10:35 AM | jons | (Comments Off)   
Life is what happens as we are planning other things. If You Want to Make God Laugh, Tell Him Your Plans. Read More...
ORM: Prelude to Greatness: the Requirements for Mapping
02 May 08 04:51 PM | jons | 1 Comments   
All of these solution approaches involve mapping between the application view and the database view. The problem with each of these approaches is that the mapping is defined within the application or the database. What we want is a solution that is outside Read More...
In-Memory Database: Waypoint #1
01 May 08 11:09 AM | jons | 1 Comments   
I have narrowed my search for an  in-memory database to support unit testing down to SQLite ( here and here ) and SharpHSQL ( here and here ).  Both are open-source implementations of in-memory SQL databases.  SQLite is written in mostly Read More...
ORM: The Gray Zone Revisited
01 May 08 09:59 AM | jons | 2 Comments   
A key message in the previous ORM posts is that application point of view and the database point of view are both valid.  What we have to do is to create an environment in which the application domain modelers to do their work at the same time that Read More...
In Search of An In-Memory Database
30 April 08 04:14 PM | jons | (Comments Off)   
As part of the podcast I did a few weeks ago (and that was released to the wild this last Monday), I talked about doing unit tests with an in-memory database.  I have a few cycles available and I thought that I would poke around and see what was Read More...
ORM: The Database Point of View
30 April 08 10:32 AM | jons | 1 Comments   
In my experience, almost all non-demo databases contain data that is associated with multiple domain models. It may be the case that the database starts out in a one-to-one relationship to a domain model (that is, the database was created originally to Read More...
ORM: The Application Point of View
29 April 08 04:28 PM | jons | 1 Comments   
Ideally, the application point of view is the point of view of the users who will use the application to advance the interests of the organization. While the application must be computationally competent (more on that in a minute), the structure of the Read More...
Object Relational Mapping (ORM): Welcome to the Gray Zone
29 April 08 04:02 PM | jons | (Comments Off)   
This is the first of a series of blog posts about Object Relational Mapping (or ORM). It is an attempt to capture some of the notions in the presentation that I did at the latest Twins Cities Code Camp. The "Gray Zone" is a reference to approach Read More...
ORM Podcast
28 April 08 01:53 PM | jons | (Comments Off)   
As a result of my Spring 2008 Code Camp talk on ORM, I got a chance to sit down with Microsoft Evangelist, Jeff Brand, to chat about ORM.  You can listen at http://www.slickthought.net/post/New-Spaghetti-Code-Podcast-Available---Jon-Stonecash-on-ORM.aspx Read More...
The PowerPoint Deck for the ORM Talk
28 April 08 01:36 PM | jons | 1 Comments   
The attachment contains a zipped PowerPoint 2003 deck that I used for the talk. As I noted, I am working on a blog post to expand the contents. Coming soon. Read More...
Attachment(s): CodeCamp2008.zip
2008 Spring Code Camp
28 April 08 01:21 PM | jons | (Comments Off)   
Here is the code from the Spring, 2008 Code Camp. I am a little late on this. I fell into a "rabbit hole" while cleaning up the code to be posted here. At my age, I should know better: just ship it, you can "improve" it later. You Read More...
Filed under: , ,
In the Course of Machine Events
25 January 08 06:16 PM | jons | (Comments Off)   
The final technique for extending machine-generated code is to use events. Events are essentially a special form of delegates. When an event is raised, the event process invokes any delegates that have been attached to the event. Each of these delegates Read More...
More Posts Next page »