Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… ·...

15
Americas Headquarters EMEA Headquarters Asia-Pacific Headquarters 100 California Street, 12th Floor San Francisco, California 94111 York House 18 York Road Maidenhead, Berkshire SL6 1SF, United Kingdom L7. 313 La Trobe Street Melbourne VIC 3000 Australia Delphi Prism XE Product Reviewer’s Guide September 2010

Transcript of Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… ·...

Page 1: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Americas Headquarters

EMEA Headquarters

Asia-Pacific Headquarters

100 California Street, 12th Floor San Francisco, California 94111

York House 18 York Road Maidenhead, Berkshire SL6 1SF, United Kingdom

L7. 313 La Trobe Street Melbourne VIC 3000 Australia

 

 

 

 

 

 

 

 

Delphi Prism™ XE Product Reviewer’s Guide

 September 2010

Page 2: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

CONTENTS Contents ............................................................................................................................................... - 1 - 

Overview ................................................................................................................................................... - 2 - Introduction ........................................................................................................................................... - 2 - Product Description .............................................................................................................................. - 2 - Contact Information .............................................................................................................................. - 2 - 

Quick Links to Product Information ........................................................................................................... - 2 - Delphi Prism XE Highlights ....................................................................................................................... - 2 - 

New and Interesting Features of Delphi Prism XE ............................................................................... - 2 - Key Benefits for .NET Developers ............................................................................................................ - 3 - Delphi Prism XE statement of authenticity! ............................................................................................... - 3 - Experience cross-platform .NET development with Delphi Prism XE....................................................... - 4 - Target the OS of your choice .................................................................................................................... - 5 - Project Development ................................................................................................................................. - 6 - .NET application types you build with Delphi Prism XE ............................................................................ - 6 - 

Silverlight support ................................................................................................................................. - 7 - Creating WPF Applications ................................................................................................................... - 7 - Creating Windows Forms Applications ................................................................................................. - 8 - Other .NET features supported ............................................................................................................. - 8 - 

Develop cross-platform applications with Mono and MonoDevelop ......................................................... - 8 - How does Mono development differ from Microsoft’s .NET development?.......................................... - 8 - Can MonoDevelop create Graphical User Interfaces (GUI)? ............................................................... - 8 - Can MonoDevelop create ASP.NET applications? .............................................................................. - 9 - Can MonoDevelop create Silverlight applications? .............................................................................. - 9 - 

Building iPhone apps with MonoTouch ..................................................................................................... - 9 - Integrated Source Code Management .................................................................................................... - 10 - Working with Databases and DataSources ............................................................................................ - 10 - 

InterBase Developer Edition ............................................................................................................... - 10 - Other Databases and Datasources .................................................................................................... - 10 - 

New language features ........................................................................................................................... - 11 - New Productivity features ....................................................................................................................... - 11 - Increase Code Understanding and Security ........................................................................................... - 12 - 

Page 3: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

OVERVIEW INTRODUCTION Thank you for your interest in reviewing Delphi Prism XE, Embarcadero’s cross-platform heterogeneous .NET development tool. This reviewer’s guide will give you an overview of some of the key benefits that .NET developers will enjoy with Delphi Prism XE.

PRODUCT DESCRIPTION Embarcadero® Delphi Prism™ XE provides a cross-platform development solution and robust programming language for rapidly developing .NET, Mono, ASP.NET, and data-driven applications for Windows®, Linux®, and Mac OS® X. It can also be used with Novell MonoTouch to build iPhone and iPad applications. Delphi Prism combines easy-to-learn syntax based on the Delphi language and enhances the .NET developer experience with key language features like parallel computing and aspect-oriented programming for quickly building high-performance, secure, and reliable applications. Delphi Prism XE includes true cross-platform flexibility to develop on both Windows and Mac systems.

CONTACT INFORMATION We are here to support you throughout your evaluation period — and beyond. Please do not hesitate to contact us anytime at the numbers and emails below. AR/PR Contact: Michelle Chase Chase Communications [email protected] 303-284-8440

Product Marketing Manager: Tim Del Chiaro [email protected] 831-431-5289

Product Manager: Michael Rozlog [email protected] 614-408-8080

QUICK LINKS TO PRODUCT INFORMATION • Delphi Prism XE Product Page • Delphi Prism XE Datasheet

Page 4: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 2 -

DELPHI PRISM XE HIGHLIGHTS NEW AND INTERESTING FEATURES OF DELPHI PRISM XE • Cross Platform Development on Windows and Mac OS X - Previously Delphi

Prism included a Visual Studio based IDE for development on Windows. Now it also includes the MonoDevelop IDE for development on both Windows and Mac OS.

• Support for the latest .NET 4.0 and Silverlight Technologies - .NET 4.0 and Silverlight 4 are fully supported along with new improvements in supporting better native/managed interoperability, threading improvements, enhanced garbage collection, and many others.

• Visual Studio 2010 Shell Based IDE - The new Visual Studio 2010 Shell IDE provides a more streamlined and efficient IDE experience, support for multiple monitors, an improved code editor, enhanced debugging, and easy access to the latest .NET functionality. You can also install into Visual Studio 2010 or 2008.

• Integrated Subversion – Integrated source code control inside the Delphi Prism development environment.

• Work with all your data sources - Delphi Prism XE leverages ADO.NET for database connectivity in .NET applications. In addition, Delphi Prism provides developers with a database access framework called dbExpress for fast, easy access to Embarcadero’s InterBase® database. ASP.NET developers can provide support for membership, roles, profiles, and the other features of the ASP.NET provider interface for multiple backend databases.

• Language and Compiler Features - Delphi Prism XE includes enhanced support for parallel programming, functional programming with new “if”, “case” and “for” expressions; integrated support for .NET 4.0 BigInteger constants, and new syntax for defining extension methods.

• Import or Copy and Paste C# Code as Delphi Prism Code - Do you have, or come across, C# code snippets or files and wish you could use them in Delphi Prism? Now you can import or copy and paste C# code and .cs files into Delphi Prism and automatically convert them to Delphi Prism code.

• Build Apps for iPhone OS - Delphi Prism XE can be used with Novell MonoTouch (sold separately) to create applications for the Apple iPhone OS to run on the iPhone, iPod Touch and iPad.

• Code Obfuscation - Obfuscate your code to increase security and deter reverse engineering of your applications. Use the Oxfuscator Project template to add obfuscation to your solution and include it in the build process or run it standalone.

• CodeSite logging system - The Raize CodeSite Logging System gives developers deeper insight into how their code is executing, which enables them to locate problems more quickly and ensure their application is running correctly. CodeSite's logging classes let developers capture all kinds of information while their code executes and then send that information to a live display or to a log file.

Page 5: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 3 -

KEY BENEFITS FOR .NET DEVELOPERS • Work in the latest .NET development environments available today. Delphi Prism XE

developers can use either Visual Studio 2010 or the MonoDevelop IDE.

• Build cutting-edge .NET applications with the latest framework support for .NET and ASP.NET 4.0 from Microsoft.

• Subversion version control integration in the IDE.

• Take advantage of the advanced tooling available to get the job done faster than ever before, including unique productivity tools like copy C# code to Delphi Prism code and many others.

• Create astonishing Silverlight enabled applications from the Microsoft Visual Studio environment or create Mono Moonlight (open source version of Silverlight) applications with the MonoDevelop IDE.

• Find bugs and increase code security with the new integrated tools like Raize CodeSite advanced logging features and the new Oxfuscator tool for obfuscating any .NET application.

• Create Apple iPhone applications with Novell’s MonoTouch product (sold separately) using the same .NET language you know and love.

DELPHI PRISM XE STATEMENT OF AUTHENTICITY! One of the most frequent questions asked about Delphi Prism; “Is it a real .NET language?” The answer is a definite “YES!” Delphi Prism is based on RemObjects Oxygene, a powerful CLR compiler engine that can support a variety of CLR based platforms such as Microsoft’s .NET and the Open Source Mono runtime.

• Complete solution for .NET Windows development: With fully CLS compliant assemblies, developers have total access to all language and runtime features of .NET 4.x. including ASP.NET 4.x, Silverlight 3&4, WPF, Windows Forms, and LINQ.

• Powerful full-featured Delphi Prism development language: Allows developers to

write managed applications using a modern and powerful, yet easy to use, object-oriented language with roots in Delphi and Object Pascal, and features such as generics, sequences, queries and parallel computing.

Page 6: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 4 -

EXPERIENCE CROSS-PLATFORM .NET

DEVELOPMENT WITH DELPHI PRISM XE Delphi Prism XE morphs to your style of development and does not leave you hanging like other .NET environments. That is because Delphi Prism XE comes with both the latest Visual Studio 2010 integration and the cross-platform open source MonoDevelop IDE.

The included MonoDevelop IDE can be used on the Windows and Apple Mac OS X operating systems.

Page 7: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 5 -

Or, it can be used on the Windows operating system, just like the Visual Studio IDE for Delphi Prism. We allow the developer to make the call on the environment they need, and when they need it.

TARGET THE OS OF YOUR CHOICE Delphi Prism XE allows the developer to build standard Microsoft based .NET applications or they can use the Mono framework. The Mono framework is an open-source .NET platform and framework that adheres to the EMCA standard for .NET. This means users of Delphi Prism XE can target multiple platforms for deployment. These platforms include Windows, Linux, and Mac OS X operating systems. Note: Mono may have to be loaded onto the target machines before the applications will work. This is the same dependency that any Microsoft .NET application has, that the .NET Framework and libraries must be loaded on the target Windows machine before a .NET application will run.

Page 8: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 6 -

PROJECT DEVELOPMENT After installing Delphi Prism XE, you must set up a project to get started. In Delphi Prism XE, this can be accomplished in either IDE by simply clicking the New Solution from the File menu.

Once the desired project type is selected and named, the IDE will walk the developer through any additional steps that may be needed to create the project. Once the project is created through the wizard, it is ready to start building the actual application or library the developer is creating. Notice in the Delphi Prism Visual Studio New Project, that it is also possible to create an Apple Mac OS X application. After a Mac application is created in the Windows-based IDE, it would have to be transferred to the target operating system (in this case, the Mac).

.NET APPLICATION TYPES YOU BUILD WITH

DELPHI PRISM XE If you can build it in .NET, you can build it with Delphi Prism XE. What is unique about Delphi Prism XE is that it is focused beyond simple .NET applications and really focuses on the cross-platform aspects of .NET. Of course, inside the Microsoft Visual Studio Shell or plug-in environments, you can build all the classic .NET applications from the solutions manager.

Page 9: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 7 -

SILVERLIGHT SUPPORT In order to use Delphi Prism XE Silverlight tooling libraries, the developer should download the latest Silverlight integration from the Microsoft. The primary reason for this is because the plug-ins and libraries were not official at the time of our build.

Seamlessly work in either the Silverlight GUI designer or work in the lower-level XAML language. Either way allows developers to work in the way they are most comfortable.

CREATING WPF APPLICATIONS Users of Delphi Prism XE can take advantage of the latest WPF (Windows Presentation Foundation) approach to building applications. Delphi Prism XE fully supports both WPF Applications and the creation of WPF User Control Libraries.

Page 10: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 8 -

CREATING WINDOWS FORMS APPLICATIONS Delphi Prism XE is focused on the latest and greatest offered from the .NET framework and platform but also has support for older technologies like Window Forms. Developers can use the New Project creator to build Console, WinForms applications, or WinForms User Controls from the IDE and share those with any other .NET application.

OTHER .NET FEATURES SUPPORTED The Delphi Prism XE environment fully supports new .NET 4.0 and ASP.NET 4.0 versions, including design-time and runtime support for Windows Forms, ASP.NET, Windows Presentation Foundation (WPF), Parallel FX and LINQ.

DEVELOP CROSS-PLATFORM APPLICATIONS WITH

MONO AND MONODEVELOP HOW DOES MONO DEVELOPMENT DIFFER FROM MICROSOFT’S .NET DEVELOPMENT? This answer is two-fold, the main differences depends on how the developer approaches a solution. If the developer uses the Visual Studio 2010 integration, the experience is going to be very similar, or almost exact to how they develop regular .NET applications. If the developer decides to use the MonoDevelop IDE, then there will be slight differences in menu items, advanced tools, and such, but the underlying code should be the same or very close to identical. There can be platform nuances that can change the code slightly.

CAN MONODEVELOP CREATE GRAPHICAL USER INTERFACES (GUI)? Mono and MonoDevelop sure can, however, in the areas of GUI development, different approaches will be used. Instead of Windows Forms or WPF as would be used with Microsoft .NET, developers in the Mono world would create a Gtk# Project, which is the main cross-platform approach to Graphical User Interface (GUI) development. Keep in mind that this is true for GUIs being built that target the Windows, Linux, and Apple Mac OS X operating systems.

Page 11: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 9 -

The overall development experience inside MonoDevelop is still very rich and allows developers to get a lot of work done in a very short amount of time. Besides the slightly different approach to building GUI applications, MonoDevelop has many of the same features that Visual Studio has, but it is running on other platforms.

CAN MONODEVELOP CREATE ASP.NET APPLICATIONS? Yes, MonoDevelop can create ASP.NET applications out of the box. All a developer needs to do is create an ASP.NET solution from the File|Solutions wizard.

CAN MONODEVELOP CREATE SILVERLIGHT APPLICATIONS? Moonlight is the open-source equivalent to Silverlight. It is supposed to be compatible with the Silverlight code. The current implementation is basically a library and runtime. In the future, MonoDevelop will support Moonlight designers. As of this writing most all Moonlight applications are code only based. Also, keep in mind that Moonlight is a separate download from the Mono website.

BUILDING IPHONE APPS WITH MONOTOUCH Delphi Prism XE can be used with Novell MonoTouch to create applications for the Apple iPhone OS to run on the iPhone, iPod Touch and iPad. Novell’s MonoTouch is a separate download from the MonoTouch website.

Page 12: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 10 -

INTEGRATED SOURCE CODE MANAGEMENT With new support for Subversion in IDE, you can now manage source code with one of the most used source code management systems in the world.

This is complete integration into the Visual Studio 2010 Shell, and has all of the common tasks integrated in the solutions manager, menu systems and additional panels like shown about with the pending changes panel.

WORKING WITH DATABASES AND DATASOURCES INTERBASE DEVELOPER EDITION Delphi Prism ships with a Developer Edition of InterBase, Embarcadero’s native, cross platform Relational Database Management System (RDBMS). InterBase Developer Edition allows developers five connections to the server hosted on their local machine for the purpose of developing applications that use InterBase. Once the application is developed, developers can purchase deployment licensing from Embarcadero.

OTHER DATABASES AND DATASOURCES Since Delphi Prism is built on the .NET framework, it has the ability to connect to any .NET datasource. This means that if you need connection to any of the standard enterprise databases besides InterBase, you can do so without major issues.

Page 13: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 11 -

Connecting to Microsoft SQL Server, Oracle, SAP/Sybase and many others are possible through the standard .NET connection methods.

NEW LANGUAGE FEATURES In Delphi Prism XE, there are many new advanced language features and some general updates from the compiler. This means easier programming and faster development. The following list outlines these new features and upgrades:

• Expressions: o If o Case o For

• BigInteger Constants Allow large number constants

• Extension Methods • New support for Read-only local variables • Support for classic "begin/end" assembly entry point • Language support for the .NET 4.0 Tuple types • Support for .NET 4.0 PIA

NEW PRODUCTIVITY FEATURES One of the key new features is the ability to copy C# code and paste that code into a Delphi Prism application as Delphi Prism code called Oxygene. This is a real time saver as many developers used tested algorithms that have already been written and tested in C#. Normally, the Developer would have to convert the algorithm by hand, but this is as simple as copying one piece of code and pasting. For example, we have a normal open block of code in a method: Next, we have the following C# code that we want to use:

method Window1.MyButton1_Click(sender: System.Object; e: System.Windows.RoutedEventArgs);  end;  

// Compose a string that consists of three lines. string lines = "First line.\r\nSecond line.\r\nThird line."; // Write the string to a file. System.IO.StreamWriter file = new System.IO.StreamWriter("c:\\test.txt"); file.WriteLine(lines); file.Close();

Page 14: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 12 -

Using the Copy C# / Paste Oxygene item:

The following code is instantly put into the program:   This should be a huge productivity gain for most developers who know Object Pascal and want to re-use C# code in Delphi Prism.

INCREASE CODE UNDERSTANDING AND

SECURITY As we all know, time is a valuable commodity, especially when it comes to programming and getting complex solutions working as fast as possible. One of the most time tested ways to find issues is using logging. Delphi Prism XE includes Raize CodeSite Logging System, which gives developers deeper insight into how their code is executing, which enables them to locate problems more quickly and ensure their application is running correctly. CodeSite's logging classes let developers capture all kinds of information

method Window1.MyButton1_Click(sender: System.Object; e: System.Windows.RoutedEventArgs);     begin      // Compose a string that consists of three lines.     var lines: System.String := 'First line.'#13#10'Second line.'#13#10'Third line.';      // Write the string to a file.     var file: System.IO.StreamWriter := new System.IO.StreamWriter('c:\test.txt');     file.WriteLine(lines);      file.Close();  end; 

Page 15: Delphi Prism XE Reviewer's Guidecommunity.embarcadero.com/images/40827/Delphi_Prism_XE_Revie… · Delphi Prism ™ XE Product Reviewer’s Guide ... This reviewer’s guide will

Embarcadero Technologies - 13 -

while their code executes, and then send that information to a live display or to a log file, which again is a big productivity gain. It is also important in today’s world to protect your code from all kinds of things. It is always amazing how many programmers write awesome code and then don’t protect it. That is where Obfuscation comes in. Delphi Prism XE now includes an innovative .NET obfuscation tool called Oxfuscator. The new tool is used to increase the security and deter reverse engineering of your applications. Use the Oxfuscator Project template to add obfuscation to your solution and include it in the build process or run it as a standalone.

 Embarcadero Technologies, Inc. is the leading provider of software tools that empower application developers and data management professionals to design, build, and run applications and databases more efficiently in heterogeneous IT environments. Over 90 of the Fortune 100 and an active community of more than three million users worldwide rely on Embarcadero’s award-winning products to optimize costs, streamline compliance, and accelerate development and innovation. Founded in 1993, Embarcadero is headquartered in San Francisco with offices located around the world. Embarcadero is online at www.embarcadero.com.