Delphi MVC Web Framework - “Hello World”

Delphi XE, Delphi XE2, Design Patterns, Embarcadero, MVC, RTTI, dorm 4 Comments »

This is the first “Hello World” for my Delphi MVC Web Framework.

  1.  
  2. program DelphiMVCWebFramework;
  3.  
  4. {$APPTYPE CONSOLE}
  5.  
  6. uses
  7.   System.SysUtils,
  8.   MVCEngine in 'MVCEngine.pas',
  9.   BaseController in 'BaseController.pas';
  10.  
  11. var
  12.   mvc: TWebMVCEngine;
  13. begin
  14.   mvc := TWebMVCEngine.Create;
  15.   mvc.AddRoute('/', procedure(Context: TWebContext)
  16.     begin
  17.       Context.Write('Hello World');
  18.     end).Start(8080);
  19.   ReadLn;
  20.   mvc.Free;
  21. end.

Features list (some of them are in the internal roadmap)

  • Completely MVC
  • Addressable with servername/controllername/actionname?par1&par2
  • Addressable with servername/controllername/actionname/par1/par2
  • Can also use anonymous methods as actions for very simple app (in the sample)
  • Really RESTful (Level 3 of the Richardson Maturity Model)
  • Fully integrable into WebBroker and DataSnap
  • Supports multiple resource rapresentations
  • Completely customizable routing using internal formatting or regex
  • Inspired to ASP.NET, Sinatra, Java Spring MVC, Java Restlet
  • Scriptable views support (Pascal, Razor, Lua)
  • Component based
  • Session support
  • ORM support using dorm
  • Classic TDataSet support
  • State server to support real loadbalancing using reverse proxy
  • Can be deployed as standalone (in the example), ISAPI dll and Windows Service
  • Fully support https
  • More to come…
  • This framework is still under development.

    Are you interested in? :-)

“DataSnap and Android (Part I)” on BlaisePascal

Android, Delphi XE, Magazines 43 Comments »

BLAISE PASCAL MAGAZINE
Issue no.17 is just published.

In this issue there is the first part of my articles about “DataSnap and Android”.

During this series I’ll show how to write a complete TODO application using Delphi DataSnap Server and an Android thin client.

Have a good reading.

Back from Brazil (all slides and code from the Brasilian Delphi Conference)

Android, Delphi XE, Embarcadero, Events, bit Time Software 54 Comments »

Last week I returned from Brazil where I had been to speak to the Delphi Conference.
The conference was held in St. Paul who, like many Brazilians will be able to confirm, is not a typical Brazilian city.

The warmth of local people has been exemplary. Andreano Lanusse has organized all in a really valuable way.

Besides the excellent food, I was surprised by the number of Delphi developers found: 550! In addition, over 150 people
have not had time to register and were placed on a waiting list. Fantastic.

After the inevitable David and his keynote, there were four simultaneous tracks during the day.

My talk was translated from English to Portuguese.

As imagined, the argument Android and seem to raise much interest in the Delphi community.

It was very nice to have confirmation in the first person to what is present and the large Brazilian community Delphi.

Here you can find all the slides and in my GoogleCode svn repository you can find all the DEMO code.

If you live in italy or can speak in italian language, you might be interested in the “ITDEVCON MOBILE BOOST” (http://www.itdevcon.it/).

Stay tuned.

RADSTUDIO XE LAUNCH in Rome and Milan

Delphi XE, Embarcadero, ITDevCon, ITDevCon2010, Programming, RAD STUDIO XE, bit Time Software 44 Comments »

This year, the launch of the new RADSTUDIO XE has been really nice. We have met some friends and customers exciting to see the new Delphi features and capabilities.
In the event of Rome there was DavidI too.

The agenda has been the following:

Embarcadero Update + XE and All-Access (DavidI)
+ New Products, Ideas, Projects
+ Delphi64 bit compiler preview
+ MACOSX FishFacts DEMO

What’s New in the IDE (Marco Cantù)
+ SubVersion
+ BeyondCompare
+ AQTime

New features in the RTL, RTTI (Daniele Teti)
+ Threading
+ JSON
+ Virtual Methods Interceptor
+ RegEx
+ CodeSite Express

Agile Development (Daniele Teti)
+ UML modeling
+ audits, metrics
+ repository
+ unit testing
+ Final Builder

Web, Cloud e Database Support (Marco Cantù)
+ Microsoft Azure Components
+ Deploy in the Amazon EC2 Cloud

What’s new in Datasnap (Daniele Teti and MArco Cantù)
+ Developing DataSnap server (Daniele)
+ DS Authentication/Authorization (Daniele)
+ DS Filters (Daniele)
+ DS RequestFilters (Marco)
+ Using DS from Delphi Client (Daniele)
+ Using DS from PHP Client (Daniele)
+ Using DS from Javascript Client (Marco)
+ Using DS from Android Client (Daniele)

Summary and Q&A

The last DEMO has been an Android APP wich use a REST DataSnap Server built with Delphi. Audience has been very excited about it.

Many attendedees have been very interested in the upcoming ITDevCon (www.itdevcon.it) and for the new courses in the bit Time offers.

Some of the photos are uploaded on Google Picasa. You can see them here.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in