Posted by: Michael Justin on: July 23, 2008
Tests
First things first: unit tests. Before you start to write a program, think about testing. Download DUnit if it is not already included in your version of Delphi. DUnit is Open Source. New versions of DUnit include automatic memory leak detection for all test cases, using FastMM4.
There are also add ons available for DUnit, for [...]
Posted by: Michael Justin on: July 22, 2008
Here are some pointers to blogs about the next Delphi version:
Chris Bensen: Tiburón Sneak Peek
http://chrisbensen.blogspot.com/search/label/peek
Allen Bauer: Tiburón – String Theory
http://blogs.codegear.com/abauer/2008/07/16/38864/
Allen Bauer: DPL & Unicode – a toss up
http://blogs.codegear.com/abauer/2008/01/09/38845
Chris Hesik: Tiburon Preview: Vista Wait Chain Traversal
http://blogs.codegear.com/chrishesik/2008/07/21/34833
Steve Shaugnessy: Tiburón DataSnap Enhancements
http://blogs.codegear.com/steveshaughnessy/2008/07/20/38912/
David Intersimone: Unicode database support in Tiburón for Delphi and C++
http://blogs.codegear.com/davidi/2008/07/15/38895
David Intersimone: Tiburon – new language features [...]
Posted by: Michael Justin on: July 19, 2008
Posted by: Michael Justin on: July 16, 2008
“In order to understand recursion, one must first understand recursion.”
Read more: http://en.wikipedia.org/wiki/Recursion
And here is a C# program which prints its own source code as output:
class Quine {
static void Main() {
string f = “class Quine {{{2} static void Main() {{{2} string f = {0}{1}{0};{2} System.Console.WriteLine(f, (char)0×22, f, (char)10);{2} [...]
Posted by: Michael Justin on: July 13, 2008
Look at the Java and Delphi source codes below. Which one will compile, and which one will run in an infinite loop? (click on ‘more…’ to see the answer)
Java:
void loop() {
while (true) {
try {
return;
} finally {
continue;
}
}
}
Delphi:
procedure Loop;
begin
while True do
try
[...]
Posted by: Michael Justin on: July 13, 2008
In the TIOBE index, Delphi climbed from position 13 to 11. Rating climbed by 0.51% (July 2007) to 2.011% (July 2008).
Java is on top of the list with 21.345%, so Delphi could beat Java in about 36 years if the annual growth rate stays constant
Posted by: Michael Justin on: July 13, 2008
A simple utility which shows a status message in the right bottom border of your desktop and may be used free in your software development build scripts. If you frequently run long build scripts, you can now minimize the build script window and use this utility to notifiy you as soon as the script terminated.