Michael Justin’s Weblog

Fun with Software Development

Archive for July 13th, 2008

Fun with Infinite Loops in Delphi and Java

without comments

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
  Exit;
 finally
  Continue;
 end;
end;

Read the rest of this entry »

Written by Michael Justin

July 13, 2008 at 9:13 am

Posted in Delphi, Java

Delphi Popularity up by 33%

without comments

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 :)

Read the rest of this entry »

Written by Michael Justin

July 13, 2008 at 7:58 am

Posted in Delphi, Java

Build Complete Notifier

without comments

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.

Read the rest of this entry »

Written by Michael Justin

July 13, 2008 at 7:38 am