October 18, 2006

A Practical Guide to Seven Agile Methodologies, Part 2

his is the second in a two-part series that surveys Agile methods and helps readers decide which combination is the most appropriate for their projects. The first part introduced Agile and summarized Extreme Programming (XP), Scrum, Lean, and Feature Driven Development (FDD). This part will look at the Agile Unified

Determine Whether a Value is Numeric

JavaScript has a built-in function called isNAN that can be used to check if a value is numeric or not. The isNan function returns true if the value is not numeric, and false if it is numeric: function chkDigits(obj){ if (isNaN(document.getElementById(obj).value)==true) { alert(“Please enter digits”); document.getElementById(obj).focus(); document.getElementById(obj).select(); return false; }}

Range Checking Vectors

This standard library vector can be used like an array. For example: std::vector v(2); // vector of size 2v[0] = 5;v[1] = v[0]; If you’re using an out-of-range index, the behavior is undefined. The program might crash without an appropriate error message. The statement: v[2] = 0; gives undefined behavior.

Rename a File Using Java

Java allows you to rename a file by using the renameTo(File file) method, in the java.io.File class. First, obtain a reference to the file that you want to rename. Second, invoke the renameTo() method on that reference using a File argument. Suppose you have a file named Results.dat and you

Date Formats for the DATE Data Type

SQL Server offers two date formats for the DATE data type that are considered safe in situations where computer settings differ or when SET DATEFORMAT or SET LANGUAGE are used. These are the ISO and ISO8601 formats. ISO Dateformat (yyyymmdd) is safe because it works, no matter what the computer