#1 2018-11-12 10:21:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,649
Website

EKON 22 Presentations

This is the forum thread for commenting http://blog.synopse.info/post/2018/11/1 … s-and-Code

I've uploaded two set of slides from my presentations at EKON 22 :
- Object Pascal Clean Code Guidelines Proposal - https://www.slideshare.net/ArnaudBouche … at-ekon-22
- High Performance Object Pascal Code on Servers - https://www.slideshare.net/ArnaudBouche … at-ekon-22
  with the associated source code at https://synopse.info/files/slides/EKON2 … ervers.zip

The WorkShop about "Getting REST with mORMot" has a corresponding new Samples folder in our repository.
See https://github.com/synopse/mORMot/tree/ … %20Service

Offline

#2 2018-11-12 11:46:39

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: EKON 22 Presentations

Thanks! I was just waiting for this after seeing the commit of the new FishShop sample, because I'm interested in learning how to make my program running as a system service under both Windows and Linux smile


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2018-12-06 02:28:19

moctes
Member
From: Mexico
Registered: 2013-05-11
Posts: 129

Re: EKON 22 Presentations

I'm looking at the samples ( 35 - Practical DDD ) I can see in DomConferenceServices.pas a function with the following declaration

function TConferenceBooking.RegisterAttendee(const Name: TAttendeeName;
  const FirstName: TAttendeeFirstName; const Days: TSessionDays;
  out Attendee: TAttendee): TRegisterAttendee;

AFAIU consuming the service from a mORMot client the out parameter Attendee: TAttendee will have the newly registered attendee data and the function result will be one of: raSuccess, raAlreadyRegistered or raPersistenceError, but if the service is consumed from a browser I suppose the data returned would be only the function result? Am I right? or the out variable is available as part of the JSON returned to the browser ? 

Regards
Mocte

Offline

#4 2018-12-06 13:18:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,649
Website

Re: EKON 22 Presentations

All out/var/result parameters are part of the returned JSON.
Check the doc about it.
See https://synopse.info/files/html/Synopse … #TITLE_396

Offline

#5 2018-12-06 15:03:41

moctes
Member
From: Mexico
Registered: 2013-05-11
Posts: 129

Re: EKON 22 Presentations

So back to the basics smile

Thank you!

Offline

Board footer

Powered by FluxBB