iContract: Design by Contract in Java

This month, we take a look at a tool that allows Design by Contract with Java. The Design by Contract technique stresses the importance of explicitly specifying the constraints that hold before and after a software component executes....

02/16/01

Build your own languages with JavaCC

In this first edition of the new Cool Tools column, Oliver Enseling discusses JavaCC -- the Java Compiler Compiler. JavaCC facilitates designing and implementing your own programming language in Java. You can build handy little...

12/29/00

Logging on to Internet Relay Chat (IRC)

Logging on to IRC is a great way to monitor your application's debugging output in realtime and on a need-to-know basis. You can use any standards-supporting IRC client to connect to the IRC server and see what your application is...

10/20/99

Use constant types for safer and cleaner code

Using constant types makes your code safer and cleaner; it reduces the chance of typos that the compiler can't catch while preventing other programmers from passing you invalid values. Constant types also provide a nice...

09/20/99

Easier ways to handle arrays -- plus a little string manipulation

This month, Cool Tools will cover two completely separate tools; neither is complex enough to warrant its own article, but there is a certain thematic unity that will be evident at the end of the discussion. First, Thomas tackles a...

08/20/99

Use JNDI to share objects between different virtual machines

Imagine the following: Process A on machine B puts an object into a Hashtable. Now, a separate process C on a different machine D can access that object from its own local copy of the Hashtable -- even after process A terminates and...

07/24/99

Build your own caching mechanisms with volatile collections

Thomas dedicates this month's Cool Tools column to three tools at once. By combining a hashtable with a timer thread, you can create a collection that handles its own cleanup. Thomas explains the interaction of the timer thread and...

06/01/99

Clever Facade makes JDBC look easy

This month's tool saves you some work when dealing with common JDBC operations. You can use the Facade design pattern to encapsulate the most popular JDBC objects, thereby hiding all the tedium of initialization, exception handling,...

05/01/99

How to easily reconfigure your applications -- while they're running

In this first installment of JavaWorld's new Cool Tools column, author and certified Java programmer Thomas E. Davis introduces the concept of dynamic configuration. Using static final values for configuration requires a recompile for...

04/01/99

Load More