Posts Tagged ‘ design ’

Unit Testing Spring-Hibernate Code with HSQLDB

Aug 6th, 2013 | By | Category: code snippets, design, j2ee, java

Recently, we used hibernate extensively in a Spring based  Java application to connect to an Oracle DB. For unit testing, we decided that we should connect to HSQLDB so we can test out the usage of hibernate in a more portable manner. I scoured the web for snippets of code to achieve this. Finally, I […]



Perf Analysis – Web Layer & Browser

Apr 28th, 2010 | By | Category: architecture, design, j2ee, optimization
This entry is part 6 of 9 in the series optimization

This entry is part 6 of 9 in the series optimizationThis article delves more into the performance analysis exercise that I alluded to in a previous article. We begin our analysis with the web layer which serves as the entry and egress to our core application. Does your web layer buckle under load as the […]



SaaS and Dynamic Database Columns

Jul 26th, 2009 | By | Category: design

It has become anathema to write Data Manipulation Language (DML) statements in application programs. For instance, it is frowned upon if we write programs that alter a table to add a new column or create an index dynamically. The only exceptions to this dictum would be programs that actually are supposed to create or alter […]



Class Dichotomy

Apr 14th, 2009 | By | Category: design

In the beginning was the Class. The class had fields (or instance variables or members ) and methods (or messages or member functions) . The programmer created the class and said “I created thy from nothing. Thou shalt exist and breedeth instances of thyself which would be objects”. And the class was happy and the […]



Solar Heating and Patterns..

Jan 28th, 2009 | By | Category: architecture

I recently stayed at a hotel and suffered from what has become the ubiquitous problem of  “no hot water”.  This time, the explanation was all about the solar water heater not functioning properly. This got me thinking about the impact of a bad design on a particular feature (in this case heating the water).  I […]



Class & Module Dependencies – Minimizing them

Jan 15th, 2009 | By | Category: architecture

This post is going to talk about dependency management, interface based design, IoC , modularization and the like. I had hinted about the need for dependency management elsewhere in this blog but haven’t thus far taken a lot of time to expound on it in depth. This post would cover this important topic. First and […]



Infrastructure vs. Application – Layered Architecture

Jan 15th, 2009 | By | Category: architecture

One of the first approaches to writing software, was to make the software application do everything that is required by the application specification. Thus the earliest machine code applications did everything from handling the I/O (with individual devices) to accomplishing  complex processing.  



A more detailed look at modularization

Jan 14th, 2009 | By | Category: architecture

Any big application typically has a lot of functionality. It is logical that such a large amount of functionality be distributed across modules with each module becoming a specialist in implementing a given set of functionalities. This thought process has of course been crystalized as the single responsibility principle (SRP) that I have alluded to […]



The evil Static Method

Dec 17th, 2008 | By | Category: design

The keyword static possibly started as the first attempt at encapsulation. C Programs consisted of functions that spanned across multiple files. However, the programmers wanted some of these functions to be “private” within the file that they were contained in. The static keyword provided that small veneer of privacy. When java and other derived languages […]



The Router Pattern

Nov 20th, 2008 | By | Category: design

Browse through all the non integration pattern books and you would not find a Router mentioned. The Router pattern has been recognized as an excellent way to accomplish Enterprise Application Integration (EAI). But it is my contention that their role in application programming has not been sufficiently emphasized. This post seeks to introduce the reader to this exotic beast […]