Delphi Programming Projects
Build a range of exciting projects by exploring cross-platform development and microservices
William Duarte
BIRMINGHAM - MUMBAI
Delphi Programming Projects
Copyright 2019 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Richa Tripathi
Acquisition Editor: Shriram Shekhar
Content Development Editor: Akshita Billava
Technical Editors: Sabaah Navlekar and Mayank Dubey
Copy Editor: Safis Editing
Project Coordinator: Prajakta Naik
Proofreader: Safis Editing
Indexer: Pratik Shirodkar
Graphics: Tom Scaria
Production Coordinator: Deepika Naik
First published: May 2019
Production reference: 1020519
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78913-055-3
www.packtpub.com
I dedicate this book to God, who allowed me to write it.
To my mother, Sandra, who made me who I am today, and to the memory of my father, Jorge, the best father I could have had.
For the love of my life, my wife, Aline Duartethank you for bringing me back to life!
And no less important, my beloved son, Guilherme, you help me to move on! I love you very much, my son!
-William Duarte
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Foreword
Programming can be difficult, especially when you have a challenging project. Therefore, when this project is crucial to someone's business, being the right programmer is a gift to your sponsor. As a business owner, as well as a programmer myself, I can surely say that William Duarte is this kind of blessed programmer we rarely find.
Some years ago, I needed to change the enterprise resource planning (ERP) of my company, on account of the strict Brazilian fiscal regulations. At that time, we had a fully internally developed, private label credit card. It was mandatory that it worked in a totally new environment, seamlessly integrating with a new point-of-sale (POS) system. Following two years of trial and error, of using the services of huge consultancy firms and wasting a lot of money, I was about to give up. That is when I met William Duarte.
In a casual meeting with Mr. Duarte's former employer, I told him about the difficulties in getting our credit card system to operate properly. He introduced me to William, who, in a quick chat, told me he was quite confident that not only could he do what I needed, but he could do it fast. In total disbelief, I asked him to prove it and he just smiled and said: "Fine! I can make it work in a test environment in a couple of weeks. Just wait and see." I felt like laughing when I heard that. How could someone do something that a whole team of programmers couldn't doand in a matter of weeks, not months? "He will never do it," I thought. However, to my surprise, he did it. The test was a success; thus, I quickly signed a contract with his former company. Nowadays, my credit card system is up and running perfectly , and, fortunately, William Duarte works for me.
If you need to improve your Delphi programming performance, I strongly feel that William can help you with this task. You are in good hands. I have witnessed countless times William's skills and how useful good Delphi programming is for real-life challenges. Therefore, if you are seeking a solid foundation for successful Delphi projects, the hunt is over.
Enjoy your reading!
Rafael Sampaio
Retail executive and owner of Impecvel Roupas, a Brazilian chain of stores.
Rio de Janeiro, Brazil
I met William at the annual Embarcadero Conference in Brazil where he was signing copies of one of his previous books. He gave me a copy, but unfortunately, I don't read Portuguese, but I appreciated the book, and luckily, source code is the universal language. He and I became friends, and I was happy to have his expertise and enthusiasm as part of the Embarcadero MVP Program. Most recently, he became an MVP Regional Coordinator for Brazil.
I like the project-oriented nature of this book. It tackles different types of projects with different technologies, such as in the first chapter, where it shows how to capture images, apply filters, and share the images. This is common functionality in many social media applications, and something that Delphi makes easy. I frequently use the basics of this as a quick demo when introducing someone to Delphi's productivity.
The REST client functionality is another favorite feature of mine. I spend a lot of time, as I'm sure most developers do, integrating with web services all over the web. Delphi's REST client library makes it easy to connect to these services and work with the data in your applications. Beyond the REST client library that comes with Delphi, there are numerous specialized REST components, including the Enterprise Connectors and the TMS Web Controls Pack, which are turnkey options for connecting to many different individual web services.
Next page