Delaying database decisions

In our current project we had to create a menu which was in a multiple level parent child relation. Main menu contains sub menus which contains item menus. On click of item menus a whole new menu gets loaded internally on the right hand side. Another user requirement was that there must be an admin module to update the menus. A pretty common an straight forward requirement.

Catch: The Only catch was user were not sure what will be the structure of the menu number of level, kind of action on each level menu click, menu layout etc.

We were absolutely sure to create a table structure for Menus which handle multilevel menus and relationship with right hand menu. But My Manger asked since our first release is in 2 weeks can we simply keep the menu data in XML and load it.

Reason for delay in database:

  1. In first release user just wanted to do user side of displaying only few menus.
  2. The first release was in 2 weeks.
  3. The links and its functionality was not clear.
  4. To get access to the development database will take more than a week.
  5. This will give us more clarity on columns in the Menu table

It worked for us:

  1. We focused on the GUI functionality which was top priority to client.
  2. We were not rushing with to many things.
  3. After 1 release there were other problem areas which came up thus changing the client’s priority.
  4. The code worked in production for 4 months with XML as the data source for the menu.
  5. Changes in the menu item was easy for Support guys.

I am not advocating that we must always go with XML instead of Database. But my point is we have to take bold decision which will satisfy the customer needs and some times move away from conventional thinking.

Jeans at work makes a difference!

On 15th August 2013, Cognizant came up challenging the “status quo”. It allowed associate wearing smart casuals at work. I immediately felt the freedom of choice, as the campaign was based on freedom.

  1. I felt cool.
  2. It was a happy feeling to come to office in casuals every day.
  3. I felt much productive while working.
  4. It was a very daring move to bring this change in such a large organization.
  5. It made me feel proud & increased sense of belonging with Cognizant.

All above comments are my personal views.

CSS sprites repeatable

CSS sprites Wiki says:

To reduce the number of requests the browser makes to the server, some web designerscombine numerous small images or icons into a larger image called a sprite sheet

You can read advantage of CSS sprites here. Example of CSS sprites can be found here.

Background: Now the catch we had was while using CSS sprite to create repeatable image effect. When we increased width using css we saw the adjacent image repeating.

Solution: We used a single image vertical css sprite: image source.

Complete solution in here.

Happy Programming!