My “Delphi Cookbook” has been published

Almost an year ago I started to write a book about Delphi for Packt Publishing. Today that book has been published.

Delphi Cookbook Cover
Delphi Cookbook Cover

This book is a cookbook! That’s it, in 328 pages you will find useful (I hope) “recipes” for your day-by-day Delphi job.

Topics of the book

  • Create visually stunning applications using FireMonkey
  • Effectively use LiveBindings with the right OOP approach
  • Create server-side programs to serve RESTful web services and provide data to your mobile apps
  • Develop mobile apps for Android and iOS using well-defined GUI design patterns for a great user experience
  • Build efficient mobile apps that read data from a remote server
  • Call the platform-native API on Android and iOS even for an unpublished API
  • Use extended RTTI to better manage the software customization for your customer
  • Leverage the most popular design patterns for a better design without wasting too much time debugging

It is not an introductory book, you will not find any “Introduction to the Object Pascal language”, however the majority of the chapters are not too complex and can be grasped also by the new Delphi programmers.

The book is available for sale on the editor website and on Amazon.

Official book page at PacktPub

https://www.packtpub.com/application-development/delphi-cookbook

Book at Amazon

http://www.amazon.com/Delphi-XE6-Cookbook-Daniele-Teti/dp/1783559586

— Table of Contents —

Chapter 1: Delphi Basics

Changing your application’s look and feel with VCL styles and no code

Changing the style of your VCL application at runtime

Customizing TDBGrid

Using the owner’s draw combos and listboxes

Creating a stack of embedded forms

Manipulating JSON

Manipulating and transforming XML documents

I/O in the twenty-first century – knowing streams

Putting your VCL application in the tray

Creating a Windows service

Associating a file extension with your application on Windows

Chapter 2: Become a Delphi Language Ninja

Fun with anonymous methods – using higher-order functions

Writing enumerable types

RTTI to the rescue – configuring your class at runtime

Duck typing using RTTI

Creating helpers for your classes

Checking strings with regular expressions

Chapter 3: Going Cross Platform with FireMonkey

Giving a new appearance to the standard FireMonkey

controls using styles

Creating a styled TListBox

Impressing your clients with animations

Using master/details with LiveBindings

Showing complex vector shapes using paths

Using FireMonkey in a VCL application

Chapter 4: The Thousand Faces of Multithreading

Synchronizing shared resources with TMonitor

Talking with the main thread using a thread-safe queue

Synchronizing multiple threads using TEvent

Displaying a measure on a 2D graph like an oscilloscope

Chapter 5: Putting Delphi on the Server

Web client JavaScript application with WebBroker on the server

Converting a console service application to a Windows service

Serializing a dataset to JSON and back

Serializing objects to JSON and back using RTTI

Sending a POST HTTP request encoding parameters

Implementing a RESTful interface using WebBroker

Controlling remote applications using UDP

Using App Tethering to create a companion app

Creating DataSnap Apache modules

Chapter 6: Riding the Mobile Revolution with FireMonkey

Taking a photo, applying effects, and sharing it

Using listview to show and search local data

Do not block the main thread!

Using SQLite databases to handle a to-do list

Using a styled TListView to handle a long list of data

Taking a photo and location and sending it to a server continuously

Talking to the backend

Making a phone call from your app!

Tracking the application’s life cycle

Chapter 7: Using Specific Platform Features

Using Android SDK Java classes

Using iOS Objective-C SDK classes

Displaying PDF files in your app

Sending Android intents

Letting your phone talk – using the Android TextToSpeech engine

I hope you enjoy the reading!

–Daniele

10 thoughts on “My “Delphi Cookbook” has been published

  1. Hi Daniele,

    your contribution to the Delphi community is priceless!

    I’ve just ordered 😉

    Best Regards

  2. Hi Daniele,

    your contribution to the Delphi community is priceless!

    I’ve just ordered 😉

    Best Regards

  3. I just got the eBook version and it is great! Thanks for putting it together – very useful recipes!

  4. I just got the eBook version and it is great! Thanks for putting it together – very useful recipes!

  5. Hi Daniele,

    I read the index of your book and I decided to buy it. I like it and found it very useful!

    I have read about 50% of the book and the examples I have tried work fine. I have only found a problem with the Windows Service demo. After installing the service with “WindowsService.exe /install” I receive the following error:

    Exception EOSError in module WindowsService.exe at 00029DD3.
    System Error. Code: 5.
    Access denied.

    I am using Delphi XE6 Enterprise on Win 8.1 Pro 64 bits. I have tried to compile the demo for 32 and 64 bits but with the same result. Any suggestions?

    As you mention, writing a book takes some time and overlaps some Delphi versions. As Delphi XE7 is out with new features I would like to know if you have plans to update the book or write additional recipes for new features like the Parallel Programming Library, the OmniXML cross-platform XML, DataSnap with FireDAC JSON Reflection, etc?

    Regards,
    Carlos.

  6. Hi Daniele,

    I read the index of your book and I decided to buy it. I like it and found it very useful!

    I have read about 50% of the book and the examples I have tried work fine. I have only found a problem with the Windows Service demo. After installing the service with “WindowsService.exe /install” I receive the following error:

    Exception EOSError in module WindowsService.exe at 00029DD3.
    System Error. Code: 5.
    Access denied.

    I am using Delphi XE6 Enterprise on Win 8.1 Pro 64 bits. I have tried to compile the demo for 32 and 64 bits but with the same result. Any suggestions?

    As you mention, writing a book takes some time and overlaps some Delphi versions. As Delphi XE7 is out with new features I would like to know if you have plans to update the book or write additional recipes for new features like the Parallel Programming Library, the OmniXML cross-platform XML, DataSnap with FireDAC JSON Reflection, etc?

    Regards,
    Carlos.

  7. @cniebla: For the Access denied error, try to run the command prompt as administrator (or as a user able to install services).
    About the updated book, I’ve still no plans. We’ll see 😉

  8. @cniebla: For the Access denied error, try to run the command prompt as administrator (or as a user able to install services).
    About the updated book, I’ve still no plans. We’ll see 😉

  9. Hi Daniele,

    I bought your book and really like it.
    I downloaded the source code for all the examples in the book but some done compile because of a missing unit.

    ObjectsMappers.pas (I could not locate this anywhere in your source files zip)

    Also do you have any articles or whites papers that explain the datasnap and Rest/JSON applications?

    Thanks,
    Raj

  10. Hi Daniele,

    I bought your book and really like it.
    I downloaded the source code for all the examples in the book but some done compile because of a missing unit.

    ObjectsMappers.pas (I could not locate this anywhere in your source files zip)

    Also do you have any articles or whites papers that explain the datasnap and Rest/JSON applications?

    Thanks,
    Raj

Comments are closed.