Skip to main content

Posts

Software Quality

Lately I have been following a lot of discussions on software code quality. There seems to be a lack of consensus on what quality means. This is not very surprising, since quality is a very subjective term, it means different things to different people. Here's what it means to me: I believe every software is created for a specific purpose. The purpose usually defines the forces that act on the software. Most common forces that usually act on any software from a bsiness perspective are: 1. Adaptability - How well will the software adapt to changes 2. Reliability - How often will the software crash 3. Timeliness - How fast can we ship the software 4. Economy - How much will the software cost 5. Performance - Does the software have quick turnaround times 6. Scalability - Will the software continue to be performant if the user base were to increase substantially 7. Usability - How intuitive is it to use the software These business factors are usually achieved by the following technical...

ROI on Architecture

Bill Venners has started an interesting thread on software architecture and ROI at Artima . Here is my response to the posting: There are two forces that a software usually has to reckon with. Changes in business requirements and changes in technology. Let's say we build an ERP system. Some business rules in the accounting module might have to be modified due to changes in tax laws. Parhaps the client might want to produce more reports or change some existing ones. The client might want to change the UI. Brainstorming with domain experts and clients will most likely help us make a comprehensive (though not all-encompassing) list of requirements that can change in the next let's say three years. With some further thought we may also be able to attach a probablity of change. If we incorporate enough flexibility for high probablity changes then we will get a good return on investment on the architecture. I think this is the middle ground between an overly simplified architecture a...

Open Space Technology

A few days back I was reading Bruce Eckels blog on Open Spaces. Open Spaces seems to a very broad (open) ended concept, but it can be a very interesting and powerful concept if the participants are mature enough to make proper use of it. Here is the broad outline of my understanding of Open Spaces: Open Spaces are conferences propelled by a concept or question. The driving concept could be anything from "How do we make our neighborhood cleaner" to "What is the best way to utilize web services". These are not preplanned conferences. The person or organization who wishes to explore a concept/problem will send out invitations in the community. People/companies who have similar interests will accept the invitation to attend. An invitation fee is usually charged to compensate for food, equipment, and conference room costs. The conference is a self organizing conference, which means there isn’t any pre-planned agenda. However the duration of the conference and time slot...

Naming Convention for Classes

The standard naming convention for classes in Java is to write the class name in InitCaps. So a class which denotes the customer sales record should be named CustomerSalesRecord This format makes the name easily readable. We should be careful to chose a name which clearly describes the purpose of the class. Try to avoid short forms or acronyms unless they are clear enough, or if using the full name makes the class name way too long. What exactly constitutes way too long is an individual choice. I would say over 50 characters is long.

Why do we need Standards

Yesterday I said that it is a very good practice for a software developement team to follow coding standadrds. I have often been asked, "why is it important?". The primary reason is that following standards makes the program more readable, and hence more maintainable. More often than not, software is maintained by a different set of people than the ones who created it. If all programs adhere to standard coding conventions then the maintainers will be able to find what they need quicker and understand the program better. Eventually it translates into lesser hours spent for bug fixes and enhancements.

Software Coding Standards

A few days back I was reading an article on Coding Standards. There are a few articles and even books available on this topic. Following coding standards consistently, I believe is very important for a software development team. Coding standards are not written in stone. They are guidelines for making software code more readable. Like most guidelines they can be, and usually are customized for individual teams. Most teams have well defined ways in which they structure their code and name variables, methods, classes, etc. The specific standard a team adopts is not as important as the practice of ensuring that the entire team adheres to the same standard.

Engineering Software Systems For Change

As system architects we have to foresee things that can change in the software specification over time. We have learned that a good system design is one that seperates the things that change from the things that do not. However in trying to foresee potential changes we often try to design for changes that may not happen. This leads to an over-engineered design which is more time consuming to implement and difficult to understand. Such a design becomes counter productive. While designing a software it is important to view the changes we anticipate along with their probablity of occurence. It is often a good idea not to design for a low probability change, if it significantly increases the design complexity.