Archive for April, 2007

Page 1 of 212




Ajax Exposed – Myth and Reality

Posted on April 29th, 2007 in Ajax, JavaScript, Web 2.0 | 3 Comments »

Ajax, from its onset, has seen many debates and discussions which not only have helped it flourish even more in its overall popularity but also have made it gain world wide acceptance and more standardized approach. However, there are still a lot of myths associated with Ajax and many of them have come out through discussions in forums and through the blogosphere. This article tries to relate all of them and recall their origin and the realities attached behind the scenes.

Read the rest of this entry »

Getting started with IoC – A simplified tutorial

Posted on April 26th, 2007 in Java, Tutorials | 5 Comments »

I had mentioned about Inversion of Control (IoC) in my earlier post Inversion of Control – for easy integration. In this post I will show you how you can actually make your integration easy with implementation of a mini application sample based on IoC.

Objective
The main objective of this mini tutorial is to highlight the implementation of an interface based Inversion of Control (IoC) architecture and to state how it could help in the integration and maintenance of the application.

For this mini application I will use the following set of classes

  1. Dependency – This is the interface which is implementation as per my application versions progress and which will be used by the View components in my application. In other words this is my Model component in a MVC architecture
  2. Dependent – This is my View component which uses the Model component to produce the results for displaying. As the name suggests the class is dependent on the Dependency implementation.
  3. Injector – This is most important class in the application and which introduces the aspect of Inversion Of Control into the applications. This class can also be referred as the configurator class.
  4. Finally there can a number of implementations of the Dependency interface according to the needs of the application.

Note: This mini tutorial is based on the concept of Interface based IOC. It also assumes that you import the required classed in your Classes when compiling them.

Lets start with our tutorial. Read the rest of this entry »

Reverting the theme to Bosco

Posted on April 25th, 2007 in News | No Comments »

Recently I had applied my own designed theme BlueWhirl to TechTracer but I am reverting it back to the earlier theme Bosco due a lot of bugs in the underlying theme layout Andreas 04-10. The problems faced in using the Andreas theme are:

  1. No RSS link in the header (resolved)
  2. No favicon plugin support (not resolved)
  3. No submit it plugin support (not resolved)
  4. Search and archives displays only a single page of posts (not resolved)
  5. Search shows entire length of posts rather than excerpts (not resolved)
  6. No formatting done for displaying the pages in the page header (not resolved)
  7. The URL mapping goes haywire and therefore script files in the root directory are not linked to the function calls. (not resolved)

Due to the large number of unresolved problems I am reverting the theme to the earlier stabilized theme Bosco. I will be performing a thorough testing of the underlying layout and till the time I am able to stabilize the theme Bosco will rule :)

Inversion of Control – for easy integration

Posted on April 23rd, 2007 in Concepts, Java, Java EE | 3 Comments »

You may have witnessed some of the J2EE frameworks provide a technique to get dynamically bound plain objects by making them bind to some features of the framework outside of the plain objects. This technique is called as the IoC or Inversion of Control. If we have to know about the meaning of this term let us emphasize on what inversion depicts in aspect of implementing some features in plain objects.

Overview
Suppose I have some functionality of my J2EE application in my model which is nothing but a simple POJO. Now I want this POJO to be incorporated into a web tier which is an MVC (Model View Controller) Architecture. The last thing I would want to do is modify the source of the model, view or controller and put in some additional code which would do this integration. But suppose I choose a framework in such a way that I put what exactly is to be done by the POJO in the MVC architecture in a simple XML config file and then put the config file in the framework and the framework does the rest of the integration work. Read the rest of this entry »

BlueWhirl – new wordpress theme for TechTracer

Posted on April 22nd, 2007 in News, Wordpress | 4 Comments »

I designed this theme yesterday and have named it BlueWhirl since every thing in this theme has a shade of blue. Why blue? Because it’s one of my favorite colors. The design has the layout of the theme Andreas which is a fluid 4 column widget ready theme. I had loved the Garland theme which was ported to the free wordpress blog by the Drupal Team. I had used it for a long time in my old blog and had loved it. But surprisingly it hasn’t been made available as a free download. BlueWhirl has the shades of Garland theme especially if you notice the background and the sidebars.

BlueWhirl - new wordpress theme for TechTracer

This theme is not a fancy theme nor purposefully made to look attractive. It is entirely made using CSS and does not utilize images for the sake of loading the site faster. I also have made the theme SEO and adsense friendly. I am not sure if BlueWhirl would be realeased as a free theme in the near future. But for the time being I am requesting readers to please report any bugs if found. It will be helpful to make sure that it works properly before a stable release. All kinds of suggestions are gladly appreciated. :)

The Great Ant Tutorial – a great jump start

Posted on April 16th, 2007 in Java, Java EE, Tutorials, XML | 80 Comments »

Apache Ant is a powerful way to convert your developmental structures to deployment structures. It is declarative and all the command line tasks used for deploying an application are represented by simple XML elements. Without much details, this tutorial would breeze you through the steps on how to build a web application using a single XML build file and nothing else. If you have not yet understood what is the use of Ant, read my article on Development and Deployment Structures – the perfect way to build web applications.

I would use the same analogy of my development structure as mentioned in the above linked article i.e. my development structure consists of the following directories:
Read the rest of this entry »

Optimal use of Ajax – use Ajax the smart way

Posted on April 10th, 2007 in Ajax, Concepts, JavaScript | 3 Comments »

Web 2.0 is the thing that can make your site stand out from the hoard of web sites springing up day by day. But are they efficient enough to make a big impression? You need to analyze on some common principles to make the best impression. These principles make you use it in the smart way! Web 2.0 today dominates mostly in the usage of Ajax today. I had written on how to go about choosing the right framework and the different types of frameworks which are available to you to join the web 2.0 league. Today let’s see how can you can use Web 2.0 features in the smart manner because the smartness will inspire others to work efficiently as well.

Looking at the features of Ajax that hundreds of frameworks today provide, you might get sometimes tempted to use them all. Its pleasing when the user interface is more interactive and more user friendly at the same time attractive. To make these you have to use the framework which provides such eye candy. But before you decide on a particular you must have these things in mind.

  1. Size of the total number of JavaScript pages
  2. Check for frameworks or API for memory leaks
  3. Don’t bloat your code
  4. Use interactivity only where required
  5. Don’t try to use Ajax where bookmarking is heavily used
  6. Test your Ajax code properly

Let’s see each one in detail. Read the rest of this entry »

Page 1 of 212