Alex Rivera | Logout

What are major incentives to upgrade to D2009 (Unicode excluded)?

Asked 2008-11-20T11:33:12.370
9

I'm a hesitant upgrader when it comes to development tools. For roughly half of my product I still use D7, and for others D2006.

The truth is, although Unicode support is more than welcomed and very useful, it could cause me more troubles than gains with my current projects (they are more-or-less Unicode ready already). It's especially case with one of them who's performance would suffer a lot if each string takes twice as much memory as before.

So, Unicode aside, what are other major incentives to upgrade?

Edit
Report

3 Answers

2

Nick Hodges posted:

Top Ten Reasons to Upgrade From Delphi 7

They include:

  1. Live Templates
  2. History Tab
  3. Dockable/Customizable IDE
  4. VCL Designer Guidelines
  5. New Tool Palette
  6. Refactoring
  7. Generics
  8. Anonymous Methods (Closures)
  9. Unicode Support
  10. Ribbon Controls

In his Conclusion he said: "the hardest part about writing this article was limiting it to only ten"

and then he lists 24 other things (not counting Intellimouse twice).

answered 2008-12-17T07:23:29.107
2

I just gave the Generic Collections and the enhanced For-loop a spin (don't mind the visual ugliness of the code (e.g. if-then-else on one line)):

program genericTList;

{$APPTYPE CONSOLE}

uses
  SysUtils,
  Generics.Collections;

var
  myList : TList<string>;
  s: string;

begin
  myList := TList<string>.create;
  try
    myList.Add('Peter');
    writeln('Inviting Peter');
    myList.Add('Barbie');
    writeln('Inviting Barbie');
    if myList.Contains('Bob') then writeln('Bob has managed to sneak in...') else writeln('Bob is not invited!');
    writeln('List of invited people:');
    for s in myList do writeln(s); //feels sooo goood X-)
    readln;
  finally
    FreeAndNil(myList);
  end;
end.

After three years of staying away from Delphi, which seemed dying back then, I think I might return to this lovely world.

My greatest Delphi project seems to suffer from not being Unicode-ready, but Unicode is great stuff too, so I'll just have to fix the code in few places. Yesterday I also managed to get it to build and execute without errors (seems there was some sort of D2007->D2009 transition trickery involved) and I noticed that D2009 is just EXCELLENTLY FAST! It's better than the older versions in (almost*) every aspect.

*I have not found regressions YET.

answered 2009-05-04T11:07:36.940
1

Refactoring - extracting methods, moving classes around, extracting interfaces, operations which can improve code and design quality, are a very nice feature in newer versions of the IDE.

answered 2009-05-04T16:55:04.873

Your Answer