Author: vijay

IBM To Contribute RUP Blueprints to OSS Community

By vijay on October 13, 2005 — 1 min read

Here is the link to the new article. IBM will contribute their "Rational Methodology" blue prints to Eclipse Foundation. "According to industry analysts, nearly half of internally developed software projects run over budget, 90 percent are completed late, and 30 percent are canceled. " "If widely adopted, this could improve software development practices within organizations and throughout the industry. It also could improve the ability to quickly respond to business and market changes that businesses are achieving through standardization in other areas, such as Web services and Service-Oriented Architecture standards that integrate previously siloed data and applications with customers, partners and suppliers." And increases IBMs Rational Tool's sales? Hmm .... so by using RUP, does IBM think that entire software industry's success average suddenly goes up ? No way. Software projects doesn't fail because of the methdologies, they fail because of people. And every one busy telling that "Use XP", "Use SCRUM", "Use RUP" etc. etc. No one says "Use Right People". Once you have the right people to build the product, or execute a project, they'll create their own process and they'll follow it and make sure that the project is a success. Software projects are diverse in nature, everything is as unique as the other. No single methodology can provide the perfect singular approach for every kind of projects. It's the people, not the process. More

Bean Shell Compiler

By vijay on October 13, 2005 — 1 min read

Bean Shell makes your Java programs scriptable. Recently I started working on it. BeanShell provides its own JavaScript-like syntax to access your Java Objects. You can even change the syntax to anything you like using JavaCC. I started playing with it. BeanShell uses a Parser and Abstract Syntax Tree (AST) to tokenize the code. Here's a small class for compiling the BSH script, before sending it to the interpreter.

import java.io.FileReader;
import bsh.ParseException;
import bsh.Parser;

/**
 * * BshCompiler Class is used to compile the scripts and verify for the syntax
 * errors, before interpreting. * The class constructor takes the Script file
 * name/path * as the argument, and checks for the syntax. Once the process is
 * complete, use * isSuccess to get the result, and also the getResponse * and
 * getErrors to get the respnses. Note that this class is not synchronized, it
 * has to be handled externally. * *
 *
 * @author Vijay Kiran Duvvuri *
 * @version 0.1
 */
public class BshCompiler {
 private StringBuffer response;

 private StringBuffer errors;

 private boolean success;

 private FileReader fileReader = null;

 private Parser parser;

 private String script;

 /**
  * * scriptFile - path of the scriptFile *
  *
  * @param scriptFile
  */
 public BshCompiler(String scriptFile) {
  this.script = scriptFile;
  compileScript();
 }

 private boolean compileScript() {
  response = new StringBuffer();
  errors = new StringBuffer();
  success = false;
  try {
   fileReader = new FileReader(script);
   parser = new Parser(fileReader);
   parser.setRetainComments(true);
   while (!parser.Line()/* eof */) {
    response.append(parser.popNode() + "n");
   }
   success = true;
  } catch (Error error) {
   errors.append(error + "n");
  } catch (ParseException parseException) {
   errors.append("PARSE EXCEPTION: " + parseException.toString()
     + "n");
   errors.append("ERROR MESSAGE: " + parseException.getMessage()
     + "n");
  } catch (Exception e) {
   System.out.println("Other Exception");
   errors.append(e + "n");
  } finally {
   try {
    if (fileReader != null) {
     fileReader.close();
    }
   } catch (Exception e) {
    e.printStackTrace();
   } catch (Error error) {
   }
  }
  return success;
 }

 public StringBuffer getResponse() {
  return response;
 }

 public StringBuffer getErrors() {
  return errors;
 }

 public boolean isSuccess() {
  return success;
 }
}

 

 More

Google Reader – RSS Reader for Web 2.0

By vijay on October 7, 2005 — 1 min read

Google unviels Google Reader - an online RSS reader. It currently integrated with the Google Account. Interface is very sleek just like you would expect from Google, simple, accessible and with keyboard short-cuts, with all the magic of AJAX. Check it out.

In other news Sergey Brin, google co-founder, says "No Office suite for now".

"Most of our success has nothing to do with what an executive said was a good idea," he said. With all the smart people at Google spending time on innovating, there won't be many areas that Google will leave untouched."
So, I still have a chance to create my webOffice! More