Archive for October, 2006

Programming Tip 12 - Write code that is maintainable

While coding developers get easily carried away that they don’t bother about the readability and maintainability of it. Of course the readability or maintainability of a code is not going to show up when the code runs. But be cautious that the amount of effort required to troubleshoot, maintain and enhance the code when something new comes up will become tedious as one keeps adding code that is cryptic and untidy. Everything may look OK but when something breaks it is going to take more time to fix like the risk that these people take in this site “Lords of the Logistics“.

Blink this Programming Tip 12 - Write code that is maintainable at blinklist.com    Bookmark Programming Tip 12 - Write code that is maintainable at blogmarks    Bookmark Programming Tip 12 - Write code that is maintainable at del.icio.us    Digg Programming Tip 12 - Write code that is maintainable at Digg.com    Fark Programming Tip 12 - Write code that is maintainable at Fark.com    Bookmark Programming Tip 12 - Write code that is maintainable at Furl.net    Bookmark Programming Tip 12 - Write code that is maintainable at NewsVine    Bookmark Programming Tip 12 - Write code that is maintainable at reddit.com    Bookmark Programming Tip 12 - Write code that is maintainable at Simpy.com    Bookmark Programming Tip 12 - Write code that is maintainable at Spurl.net    Bookmark Programming Tip 12 - Write code that is maintainable with wists    Bookmark Programming Tip 12 - Write code that is maintainable at YahooMyWeb

Comments      Cosmos

There is something to learn in everything

I was watching a debate on television which was a special program telecast for Diwali*. The judge of the debate session was telling a story in context with the topic.  I was intrigued by the story he told.  Here it is.

A saint was giving a talk on a great Indian epic in a village.  An illiterate farmer passing by was carried away by the talk of the saint and started listening to him.  After the talk was over the farmer went home and his wife asked him where he was. He told that he was listening to a talk by a saint. His wife asked him what he understood.  He told his wife that he didn’t understand what the saint told but somehow he liked the way the saint explained the epic story.  This went on every day as the saint was explaining the story in parts for ten days.  On the tenth day the farmer’s wife asked him the same question and he told the same answer that he didn’t understand but was interested listening to the saint.

The farmer’s wife asked him to pick up a bamboo basket which is used by the farmers in the Indian villages to collect cow dung (dried cow dung is used as fuel for making food in villages).  The basket is woven with bamboo shoots which has small holes in the intersection of the shoots.  She asked the farmer to collect a basket full of water from the well.  As the farmer tried to collect water in the basket, it seeped away through the holes of the basket.  After seeing the futile attempt of the farmer, his wife told him “The epic story sessions by the saint you attended is like collecting water in this basket. Your brain could not hold what the saint told”.  The farmer replied back, “…but look at the basket, it is clean now.” :-)

Though the story seemed to project the farmer as a stupid person who cannot understand whatever the saint taught but the ending is a twister that really makes us think. The farmer may not have understood the epic but his regular visits to the session has really cleaned his mind in understanding that there is something beyond what he does regularly in his day to day life. There is something to learn in everything.

Wish you a happy and prosperous Diwali to everyone. Happy Weekend

*Diwali - Diwali is a major festival to Hindus as to how Christmas is to Christians or Ramadan is to Muslims.

Blink this There is something to learn in everything at blinklist.com    Bookmark There is something to learn in everything at blogmarks    Bookmark There is something to learn in everything at del.icio.us    Digg There is something to learn in everything at Digg.com    Fark There is something to learn in everything at Fark.com    Bookmark There is something to learn in everything at Furl.net    Bookmark There is something to learn in everything at NewsVine    Bookmark There is something to learn in everything at reddit.com    Bookmark There is something to learn in everything at Simpy.com    Bookmark There is something to learn in everything at Spurl.net    Bookmark There is something to learn in everything with wists    Bookmark There is something to learn in everything at YahooMyWeb

Comments      Cosmos

X in AJAX

It is apparent that the X in AJAX stands for XML, but if you have used AJAX it is most likely that you may not have encountered XML as such anywhere in the request/response. Probably you might not have encountered use of XML because your server is not expecting an XML because as far as the server side is concerned it does not matter whether the request is synchronous or asynchronous. Its job is to serve the request and respond back. But there might be situations where the server might be expecting a XML based request. For example let’s say the server has to communicate with some web service for the response. Then if the request is in XML it saves some time and as a simple translation could be applied to frame the request to be sent to the service. Here is a part “Using XML in requests and responses” from the Mastering AJAX series from IBM developerworks that explains with example of how to use AJAX with real XML request and response.

Blink this X in AJAX at blinklist.com    Bookmark X in AJAX at blogmarks    Bookmark X in AJAX at del.icio.us    Digg X in AJAX at Digg.com    Fark X in AJAX at Fark.com    Bookmark X in AJAX at Furl.net    Bookmark X in AJAX at NewsVine    Bookmark X in AJAX at reddit.com    Bookmark X in AJAX at Simpy.com    Bookmark X in AJAX at Spurl.net    Bookmark X in AJAX with wists    Bookmark X in AJAX at YahooMyWeb

Comments      Cosmos

Foundation Stone #19 - Avoid pointing finger deadlock

It is very easy as a development team each developer just focuses on what he/she has been assigned and is not aware of what his peers in the project is working on. But from the application perspective it is not restricted by who is working on what feature rather every feature has to work cohesively together. So it is very important that a developer understands his/her module dependencies as well as understands the modules that are dependent on his/her module. Much important than this is to understand how the module that he/she is developing fits in the overall application and how critical it is and what value add it brings in from the business perspective.

Traffic DeadlockIn this process usually in a medium to bigger projects developers try to fail in understanding this. The effect is there will be unnecessary issues cropping up during integration. More than the issues I have realized a lot of times a lot of time is wasted on finding out who was the core cause of the problem rather than finding out the core of the problem. Usually this finger pointing exercise ends up like a traffic deadlock with no clue as to who caused it. As said even if the team ends up in such a situation there is no need to find out who caused it rather the team should try to release the deadlock. To release the deadlock at least one person has to say that he/she will fix everything from his/her side so that the problem is solved. Avoiding the finger point deadlock is the best but if that situation arises, see if you are that person who can release the deadlock.

Blink this Foundation Stone #19 - Avoid pointing finger deadlock at blinklist.com    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at blogmarks    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at del.icio.us    Digg Foundation Stone #19 - Avoid pointing finger deadlock at Digg.com    Fark Foundation Stone #19 - Avoid pointing finger deadlock at Fark.com    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at Furl.net    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at NewsVine    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at reddit.com    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at Simpy.com    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at Spurl.net    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock with wists    Bookmark Foundation Stone #19 - Avoid pointing finger deadlock at YahooMyWeb

Comments      Cosmos

Creating Use Case Diagrams

Few days back I had posted about use case. Use case diagrams are the starting point to a good UML design and the better it captures the actors, use cases, relationships it is easy to translate it further to other UML design artifacts that can be translated into a good object oriented code. I tailgated some links to get to this article on “Creating Use Case Diagrams” in Developer.com. It’s a good starting point for any business analyst who wants to start with use cases for a project.

Blink this Creating Use Case Diagrams at blinklist.com    Bookmark Creating Use Case Diagrams at blogmarks    Bookmark Creating Use Case Diagrams at del.icio.us    Digg Creating Use Case Diagrams at Digg.com    Fark Creating Use Case Diagrams at Fark.com    Bookmark Creating Use Case Diagrams at Furl.net    Bookmark Creating Use Case Diagrams at NewsVine    Bookmark Creating Use Case Diagrams at reddit.com    Bookmark Creating Use Case Diagrams at Simpy.com    Bookmark Creating Use Case Diagrams at Spurl.net    Bookmark Creating Use Case Diagrams with wists    Bookmark Creating Use Case Diagrams at YahooMyWeb

Comments (1)      Cosmos

Web 2.0 style - more of less complexity

I have been referring links about web 2.0 style guide and I will keep doing so because web 2.0 sites are really cool and gives a pleasant feeling always. The guideline to creating a web 2.0 site is really to be simple. Here is a good article “Introduction to Web 2.0 and the latest styles” by Ben Hunt. The list of common features that Ben has picked up from the web 2.0 sites he has studied that really make a cool web 2.0 website is as follows.

  • Simple layout
  • 3D effects, used sparingly
  • Soft, neutral background colors
  • Strong color, used sparingly
  • Cute icons, used sparingly
  • Plenty of white space
  • Nice big text

Blink this Web 2.0 style - more of less complexity at blinklist.com    Bookmark Web 2.0 style - more of less complexity at blogmarks    Bookmark Web 2.0 style - more of less complexity at del.icio.us    Digg Web 2.0 style - more of less complexity at Digg.com    Fark Web 2.0 style - more of less complexity at Fark.com    Bookmark Web 2.0 style - more of less complexity at Furl.net    Bookmark Web 2.0 style - more of less complexity at NewsVine    Bookmark Web 2.0 style - more of less complexity at reddit.com    Bookmark Web 2.0 style - more of less complexity at Simpy.com    Bookmark Web 2.0 style - more of less complexity at Spurl.net    Bookmark Web 2.0 style - more of less complexity with wists    Bookmark Web 2.0 style - more of less complexity at YahooMyWeb

Comments      Cosmos

Troubleshooting Tip #9 - Watch for those silly typo mistakes

I have gone through nerve cracking troubleshooting situations and finally ended up identifying the problem to be a silly typo mistake.  It is something that every developer goes through at least once in his/her lifetime. In some programming languages and scripting languages the variables need not be declared and can be directly used. In such languages there is a high chance that somewhere a simple spelling mistake in the variable could cause everything to go wrong because the misspelled variable becomes another variable.  In effect the statement containing the misspelled variable name can cause unexpected outcome that may become very difficult to troubleshoot.  And if the program does not throw up any error and executes successfully but the outcome is not what is expected then it can become challenging. The best way to handle such a situation is to log the values of variables at key points of the code and isolate the statement that contains the misspelled variable.

Read my other Troubleshooting Tips.

Blink this Troubleshooting Tip #9 - Watch for those silly typo mistakes at blinklist.com    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at blogmarks    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at del.icio.us    Digg Troubleshooting Tip #9 - Watch for those silly typo mistakes at Digg.com    Fark Troubleshooting Tip #9 - Watch for those silly typo mistakes at Fark.com    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at Furl.net    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at NewsVine    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at reddit.com    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at Simpy.com    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at Spurl.net    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes with wists    Bookmark Troubleshooting Tip #9 - Watch for those silly typo mistakes at YahooMyWeb

Comments      Cosmos

Useful Resource #12 - Learning Ruby

Satish Talim has created a cool Ruby tutorial site “Learning Ruby“. Those of you who want to learn Ruby online this could be one of the sites that you may want to bookmark and learn Ruby in parallel to your work. You definitely want to get to Rails which is the framework built on Ruby to enable web application development but learning Ruby will help before you get into rails.

Blink this Useful Resource #12 - Learning Ruby at blinklist.com    Bookmark Useful Resource #12 - Learning Ruby at blogmarks    Bookmark Useful Resource #12 - Learning Ruby at del.icio.us    Digg Useful Resource #12 - Learning Ruby at Digg.com    Fark Useful Resource #12 - Learning Ruby at Fark.com    Bookmark Useful Resource #12 - Learning Ruby at Furl.net    Bookmark Useful Resource #12 - Learning Ruby at NewsVine    Bookmark Useful Resource #12 - Learning Ruby at reddit.com    Bookmark Useful Resource #12 - Learning Ruby at Simpy.com    Bookmark Useful Resource #12 - Learning Ruby at Spurl.net    Bookmark Useful Resource #12 - Learning Ruby with wists    Bookmark Useful Resource #12 - Learning Ruby at YahooMyWeb

Comments (3)      Cosmos

Next entries » · « Previous entries

Creative Commons License  This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.