Tip Bank

DevX - Software Development Resource

Use BreakIterator to Parse Text

Parsing text is a common, complex operation. For example, your application might need to allow users to enter text and then break the text into separate words or sentences for

DevX - Software Development Resource

Initializing const static Data Members

The C++ Standard now allows initialization of const static data members of an integral type inside their class. #include class Buff{private: static const int MAX = 512; //definition static const

DevX - Software Development Resource

A Simple Way to Detect Client Browser Type

There are so many tools and techniques to detect the client’s browser type. However, if you want a quick two-minute solution or you just want something simple, use this code

DevX - Software Development Resource

Understanding the One Definition Rule

The One Definition Rule (ODR) says that an inline function has to be identically defined in every translation unit in which it is used. Two definitions contained in different translation

DevX - Software Development Resource

Regular Expressions in JavaScript 1.2

One of the most powerful new features of JavaScript 1.2 is a set of objects and methods to provide regular expression functionality. Perl programmers have relied on regular expressions for

DevX - Software Development Resource

Propagate User Exceptions

In Java, you can propagate checked exceptions up a class hierarchy in two ways. First, you can declare the exception in the “throws” clause of the enclosing method. Second, you