Jobs in Hydra

Continuing in Hydra land, one of the pinnacle objects is the Job. These jobs represent the construction of information from a source. Think of it as the worker, milling away to create the DataTree. IJob The IJob interface lays the foundation. It has many properties defining the characteristics of a job, such as start time, […]

Secondary Events in a Character’s Story

As I’m working out the story of my second novel, I’m facing the challenge of describing too many of events in the life of my protagonist. Relationships take time to develop, and the overall story requires these relationships. Relationships, especially between men, are forged through experience. But the main plot doesn’t need the events, just […]

More Domain Entities

Domain entities, the counter to transfer objects, embrace the idea that objects can be smarter than a post-it. Through domain-driven design, these objects understand that they have properties, and can ease the burden on the rest of an application by performing some of the behavior itself. This also reduces feature envy (see more on code […]

Events for EXT-JS

There are many events in EXT-JS to which you can ascribe listeners to do some neat things. But to which event should you attach functionality? Well, some are pretty clear, such as the select event on the selection model of a grid, allowing you to do things with a row selection. Or using mouseover to […]

Creating Displayable Text

Working on cycling through the fields of an object, and programmatically building a user friendly display text for each. To simplify my life, I’m using reflection, and the following method to capitalize the field name, and insert spaces appropriately (for camel-case field names):

Getting Started with Hydra

AddThis recently released Hydra on the open source community, and with my proximity to this technology, I thought it would be a wonderful winter adventure to peruse the code base. After cloning the project from GitHub, I required updating/adding Java 7 to my Eclipse environment. It was a bit more tedious than I expected. I […]

Formatted Number Column in EXT-JS Grid

The standard display of a number in a grid panel contains no delimiters or decimals. If you want to add one, you can apply a renderer to the column. [code language=”javascript”] { header : ‘Total Population’, dataIndex : ‘population’, width:70, renderer : function() { return Ext.util.Format.numberRenderer(‘0,000’); } } [/code] I prefer to externalize this to […]