The problem: Recently, I had to write JUnit tests for a large date/calendar class CDate
in our project. This is quite a large piece of code, containing about
one hundred small methods. (We have written our own class because java.util.Date & java.util.Calendar are quite a mess and we also needed some specific, Polish hollidays and other stuff. (And our class is a mess, too.))
** Be part of the Best Java Blogger 2 Contest (May 2005) |
|
|
AJAX is everywhere. In a remarkably short time, AJAX has become the most talked about topic in Java circles. |
|
|
BookPool.com is featuring my list of favorite books at Harshad Oak's 10 Favorite Books. The link appears on the BookPool.com homepage, so I guess the list must
be pretty well read... |
|
A techie's guide to visiting, staying, and traveling in the United States
Its now been quite a while since I got back from the US. I was there in the months of June and July 2004.
I am based in India which is almost on the other side of the globe from the US.
The shortest route between the two nations might just be through the centre of
the earth. |
|
Being an Apress Author, a couple of days back I got a mail that talked about Apress' latest book promotion. Create a five-up/five-down crossword puzzle incorporating ten different Apress and friends of ED author last names and you could win a Sony Playstation. Cool! |
|
|
One of the main features of Java is "Write Once and Run Anywhere". The
Java Virtual Machine (JVM) is responsible for loading and executing the code. For this purpose, it uses the java class loader. The java class loaders are responsible for loading appropriate classes in the JVM at the runtime. In a JVM, each and every class is loaded by some instance of a
java.lang.ClassLoader. The main feature of the classloader is that JVM
doesn't need to have any knowledge about the classes that will be loaded at runtime. ClassLoaders support features like hot deployment and runtime platform extensibility. The next section explains how a class loader works. |
|
One question that keeps being asked about IndicThreads.com is that how
come you are running on PHP when you are supposed to be a Java J2EE
portal? |
|
|
|
|
|
|
Factory Pattern is another creational pattern. As the name implies, we create a kind of Factory class in it. In general terminology, factory is the place where some kind of products are manufactured. In software terminology, factory class is a class that manufactures objects. So the object creation task is the main responsibility of Factory class. |
|
Some suggest that Java is good for another 20-30 years. However one wonders in what form will Java survive. |
|
Sometimes need arises to allow only 1 instance of a class. For e.g. In MS Word we may click ctrl+F n times, but only one search box is opened. |
|
There has been a lot of buzz around Antenna, an Ant
add-on for J2ME applications. Why! Can't I use Ant for this? You very
well can, but Antenna elevates many Ant tasks that are peculiar to
J2ME, for instance: updating the JAD for the correct JAR size, a task
that doesn't matter as long as you are running your Midlets on the Wireless Toolkit (WTK) but is an absolute must for the Application Manager to be able to load your application on a real device. |
|
Ibm is joining hands with zend to accelerate open source momentum. |
|
|
|
No. This article is not about John Ritter's "8 Simple Rules for Dating
My Teenage Daughter." Rather this is about 8 concrete classes that
implement an interface called Rule. These classes use JDK 5 Generics
and couple of GOF patterns to provide a simple but flexible means to
build applications using functors. Some developers admire the
notion of functors but some think they are pure evil (may be because of
over engineered implementations such as JGA library that uses 10 patterns in 40 lines of code). |
|
|
Voting for the Java Developer Journal Reader Choice Awards is quite tedious as you have to vote in 27 categories and also provide your contact details as well as job profile. |
|
|
In the first two parts of this series of articles, we had a look at generics, enhanced for loop and auto boxing/ unboxing. In this final article in this series, we will look at metadata and annotations. What's new in J2SE 5.0? Part 3: MetaData / Annotations and Enumerated Types
Three part series: What's new in J2SE 5.0?:
|
|
|
Just read an article that said that the US stand on intellectual property is hypocritical because its own prosperity was based on rampant piracy. The article provides a completely new perspective on piracy. |
|
|
While reading a discussion on IndicThreads titled Making money with open source, I came across a comment that referred to a site openflows.org and their experience at getting businesses to adopt open source. |
|