
Use Lazy Initialization to Conserve Resources
Say you have an object with a property that uses a relatively large amount of resources?and you know the property may never be accessed. Consider waiting to create the property

Say you have an object with a property that uses a relatively large amount of resources?and you know the property may never be accessed. Consider waiting to create the property

To remove an element at a given position in a sorted array, shift all the elements above it down one position. void erase(int a[], int& n, int index) { //

urphy’s Law states that if something can go wrong, it will. It is comforting to know that you can guard against at least some calamities. In the case of IBM®

irect manipulation of bits that aren’t stored as bit-fields is an arduous and error-prone task. Fortunately, C++ has a set of bitwise operators for this purpose. These operators are widely

The Evans Wireless Development Survey is a detailed report of extensive, in-depth interviews with almost 500 developers active in wireless application or infrastructure development. It was conducted in March 2003.

‘ Convert from cubic inches to cubic decimeters, and vice versaFunction CubicInchesToCubicCentimeters(ByVal cuInches As Double) As Double Return cuInches * 16.387End FunctionFunction CubicCentimetersToCubicInches(ByVal cuCent As Double) As Double Return cuCent

‘ Convert from square inches to square centimeters, and vice versaFunction SquareInchesToSquareCentimeters(ByVal squareInches As Double) As Double Return squareInches * 6.4516End FunctionFunction SquareCentimetersToSquareInches(ByVal squareCentimeters As Double) As _ Double Return

‘ Convert from cubic yards to cubic meters, and vice versaFunction CubicYardsToCubicMeters(ByVal cuYards As Double) As Double Return cuYards * 0.7646End FunctionFunction CubicMetersToCubicYards(ByVal cuMeters As Double) As Double Return cuMeters

‘ Convert from US gallons to liters, and vice versaFunction USGallonsToLiters(ByVal gallons As Double) As Double Return gallons * 3.785End FunctionFunction LitersToUSGallons(ByVal liters As Double) As Double Return liters /

‘ Convert from square yards to square meters, and vice versaFunction SquareYardsToSquareMeters(ByVal squareYards As Double) As Double Return squareYards * 0.8361End FunctionFunction SquareMetersToSquareYards(ByVal squareMeters As Double) As Double Return squareMeters

‘ Convert from inches to centimeters, and vice versaFunction InchesToCentimeters(ByVal inches As Double) As Double Return inches * 2.54End FunctionFunction CentimetersToInches(ByVal centimeters As Double) As Double Return centimeters / 2.54End

‘ Convert from yards to meters, and vice versaFunction YardsToMeters(ByVal yards As Double) As Double Return yards * 0.9144End FunctionFunction MetersToYards(ByVal meters As Double) As Double Return meters / 0.9144End

‘ Convert from feet to meters, and vice versaFunction FeetToMeters(ByVal feet As Double) As Double Return feet * 0.3048End FunctionFunction MetersToFeet(ByVal meters As Double) As Double Return meters / 0.3048End

‘ Convert from grains to grams, and vice versaFunction GrainsToGrams(ByVal grains As Double) As Double Return grains * 0.0648End FunctionFunction GramsToGrains(ByVal grams As Double) As Double Return grams / 0.0648End

‘ Convert from pounds to kilograms, and vice versaFunction PoundsToKilograms(ByVal pounds As Double) As Double Return pounds * 0.4536End FunctionFunction KilogramsToPounds(ByVal kilograms As Double) As Double Return kilograms / 0.4536End

‘ Convert from ounces to grams, and vice versaFunction OuncesToGrams(ByVal ounces As Double) As Double Return ounces * 28.349End FunctionFunction GramsToOunces(ByVal grams As Double) As Double Return grams / 28.349End

‘ Convert from pints to cubic decimeters, and vice versaFunction PintsToCubicDecimeters(ByVal pints As Double) As Double Return pints * 0.568End FunctionFunction CubicDecimetersToPints(ByVal cuDec As Double) As Double Return cuDec /

‘ Convert from imperial gallons to liters, and vice versaFunction UKGallonsToLiters(ByVal gallons As Double) As Double Return gallons * 4.546End FunctionFunction LitersToUKGallons(ByVal liters As Double) As Double Return liters /

‘ Convert from square feet to square meters, and vice versaFunction SquareFeetToSquareMeters(ByVal squareFeet As Double) As Double Return squareFeet * 0.0929End FunctionFunction SquareMetersToSquareFeet(ByVal squareMeters As Double) As Double Return squareMeters

‘ Convert from cubic feet to cubic meters, and vice versaFunction CubicFeetToCubicMeters(ByVal cuFeet As Double) As Double Return cuFeet * 0.0283End FunctionFunction CubicMetersToCubicFeet(ByVal cuMeters As Double) As Double Return cuMeters

‘ Convert from miles to kilometers, and vice versaFunction MilesToKilometers(ByVal miles As Double) As Double Return miles * 1.6093End FunctionFunction KilometersToMiles(ByVal kilometers As Double) As Double Return kilometers / 1.6093End

istribution and decentralization?with XML as their foundation?are at the core of Digimax Multimedia’s collaborative decentralized services (CDS) technology. CDS is a development framework that is both a consumer and a

uild a Java Web Application Using HttpUnit and Test-driven Methodology, Part I showed how HttpUnit complements the JUnit functionality to provide testing capability for Web applications, which ordinarily are difficult

martPhones are the new devices that are said to be the death knell of the PDA and its clones. You can leverage your existing .NET skills and be among the

ometimes Java classes seem like close relatives who unfortunately don’t have the same parent. Their structures and looks are similar, but not so similar that you can derive one from

bad response time on your Web site can drive away visitors and prospective customers. Unfortunately, you may not realize that your Web site is having problems until people start complaining.

In Part I we mapped out the plan: We will build, test, and try to sell a small commercial BREW-based application. In Part II, we created our .MIF file and

have been a Microsoft SQL Server developer for a number of years. One the things I like about SQL Server is that it is easy to install and once installed

sing Oracle as your database in the .NET environment is relatively simple, except when returning JDBC ResultSets from Java stored procedures. The Microsoft and Oracle .NET data provider drivers allow

SP.NET has considerably raised the bar for Web development with very rich developer functionality built into a flexible and highly extensible object model. If you have a background of hand-coding