From the blog

This Is How To Catch Leaks in Delphi and C++ with Deleaker

Detecting memory leaks is a very important task for any Windows app development. In programming languages like Delphi and C++, the programmer can dynamically allocate additional memory to hold data and variables that are required for the moment but not used throughout the program. When those memory areas are no longer needed, the programmer must remember to deallocate them, otherwise, it will result in leaks. In this video from the recently concluded DelphiCon 2021, we will learn more about the plugin called Deleaker that is exclusively dedicated to catching memory leaks. What does the Deleaker plugin do? The release of RAD studio 10.4 added significant new and enhanced windows capabilities throughout the product in addition to the major productivity and performance enhancement across supported platforms. This also includes the unified memory management that makes Deleaker an effective and relevant tool for RAD Studio. In this video, Artem Razin will show how the Deleaker integrates with Rad Studio 10.4 Sydney and assists developers to find and fix leaks. This 11-minute video will not just introduce the aforementioned plugin but will also show us how it works and how it can efficiently and quickly detect leaks. Interestingly, Deleaker has a friendly user interface for you to set up the environment and see the results (hit counts, size, source file name and call stack, and more). The Deleaker acts as a memory profile for both Delphi and C++ builders that helps fix memory loss as well as leaks of handles and other resources. The plugin is tightly integrated with RAD studio to allow developers to locate the source of leaks even without leaving the IDE. To learn more about this RAD Studio plugin, feel free to watch the video below. Why not download and try the latest version of RAD Studio for free today?

Read More

How To Quickly And Easily Modernize Your Legacy IT System

Modernization plays an important role to improve system performance especially if your organization is running a legacy IT system. However, modernizing legacy codes is never an easy task. In this video from the recently concluded DelphiCon 2021, we will learn how this migration process can be done in a surprisingly easy and quick way. The video will share with us everything we need to know about a Legacy IT system and what really holds some organizations from modernizing their legacy IT systems. It will answer why some companies like IBM Cobol decided not to modernize their mainframes to the modern operating system and take advantage of modern windows application development. What is The Delphi Parser? In this video, Oren Aviram will share the things you should do in order to take control over your Delphi code from understanding how your IT system works and how it operates within the whole ecosystem to analyzing your code and assessing your modernization needs. Modernization of legacy Delphi code requires a profound strategy of analyzing mapping and replacing old code. While it is possible to be done manually, it could be a very hard and dirty task. There are many tools that can help you analyze your code and automate the code conversion process but handling conversion of syntax within millions of lines of code requires an intelligent find and replace tool that knows Delphi syntax and can even link between objects through the code. This is where Delphi Parser comes into play. It’s a Delphi robot that can change the code and guarantee that it will not harm the legacy code in the process of rewriting the old code with no man-made bugs. What does Delphi Parser do? Delphi Parser provides you with total control over your code conversion. The automatic analysis and conversion process of this program reduces manual coding labor costs and speeds up time to market. It enables you to run a well-managed migration process and provides a highly efficient modernization with fast results and at an affordable price. This program comes with many useful tools for your modernization needs including the Automatic Migration Wizard, the Delphi Parser code Dependencies analyzer, and more. To learn more about Delphi Parser, feel free to watch this video below. You can download a free trial of Delphi today!

Read More

Everything You Need to Know About Future Delphi Development

As Microsoft recently released Windows 11 offering a vast of incredible improvements, Delphi and the RAD Studio ide software is also moving forward with its recently released Delphi 11 (RAD Studio Alexandria). It means that they are finally moving off the 10.x series and will introduce us all to a new era. This transition, however, is more than just a version number change as they introduce a large number of improvements and modernization to leverage the user’s experience. In this video, Marco Cantu will share with us the amazing details about the recently launched Delphi 11 as well as the things in store for the future of Delphi. Can we go beyond 10x? The Future of Development with Delphi Delphi is indeed considered the ultimate ide software for building applications in modern object pascal with powerful visual design tools and integrated toolchains. In this video from the recently concluded Delphicon2021, Marco Cantu will guide us through all the changes made for Delphi 11 as well as the roadmap of the improvements and developments we can expect from RAD Studio in the near future. Delphi is focusing more on quality, leveraging most of its features to provide the utmost experience for developers. Some of the major changes in Delphi that are indicated in this video include the newly improved 4K Support that provides users with High DPI IDE. It also made various improvements related to the Windows platform including the powerful Windows App SDK, a large number of key subsystems like WebView 2, winUI3, MSIX patch packaging, and Window Windowing extensions. Delphi 11 also introduces MSIX and Window Store Support where you can use the Delphi IDE directly to build and deploy applications that are ready for the store. What are the other noteworthy changes in Delphi 11? They also leverage the VCL Per-control styling component that allows users to pick a native style for forms or controls and preview them at design time. They also added new controls that are focused on creating a modern UI and high-performance UI via TControlList VCL Component. They also made notable VCL Modernization works including a large collection of small improvements focusing on removing any legacy limitations that were based on the older version of Windows API to make sure that you have the best experience and the best integration with the platform. Other noteworthy changes include Fire Monkey and Multi-Device Development, new macOS 64vit ARM Target platform, Android 64-bit support, better FMX windows and desktop integration, further compiler performance optimizations. To know more about the future development in Delphi as well as the product roadmap, and some relevant Q & A sessions, feel free to watch the webinar below. Do you want to try the latest version of Delphi? Why not download a free trial of RAD Studio Delphi today?

Read More

How To Make Windows Installers With Delphi 11

When you develop Windows software, the user’s first experience with your product should be a stable and reliable installer. It’s an important component of successful software. Interestingly, there are a great number of Windows installers available in the market today. These 3rd party programs will vary in terms of their prices where most of which are offered free as well as the type of technology they are built from. NSIS and Inno Setup are two of the most widely used installers today but is it possible to create such a Windows setup in the new Delphi 11? In this video from the recently concluded DelphiCon 2021, we will learn more about RAD & Installer and how it is considered one of the most important windows tools for developers. What is RAD & Installer? The RAD & Installer is a third-party expert for Embarcadero’s RAD Studio. It is a RAD studio extension that brings both aforementioned install systems (NSIS and Inno Setup) to Delphi. In this video, Tomas Slapka of UnSigned Software will share with us all the details we need to know about their RAD & Installer tool for Delphi including all its core features. One of which includes the highly customizable Syntax Highlighting feature. Other noteworthy features include the Go-to and Go-to file function, Live Templates, Messages window, Navigation bars, Dynamic Help, and Project Properties that work similarly to Project Options that offers a place where you can adjust how the script compilation behaves. How can I create an Inno Setup Project from scratch? Aside from providing all the important details about RAD & Installer, Tomas Slapka will also provide short presentations on how to create Inno Setup project in Delphi 11 (RAD Studio 11 Alexandria) from scratch. Interestingly, the tutorial will only take less than 10 minutes and his presentation will show you how surprisingly easy to create such a project in the new Delphi. In addition to that, he will also share how to integrate some advanced IDE features into the project. To learn more about the RAD & Installer tool for Delphi, feel free to watch the video below. You can download a free trial of RAD Studio Delphi today!

Read More

Everything You Need To Know About Entity Component System

In this video from the recently concluded DeplhiCon 2021, we will learn everything about the ECS or Entity Component Systems and how this particular method differs from traditional programming. This webinar is hosted by Erik Van Bilsen of Grijjy and this one-hour-long session will show us how the idea behind this ECS method can make you look at programming from a different angle. This software architectural pattern is often used in windows program development particularly in video game development for the storage of game world objects. What is Entity Component System? Bilsen described ECS as a programming paradigm that takes composition-over-inheritance to the extreme. ECS challenges the traditional concept of encapsulation and inheritance in favor of composition. It is also designed with performance in mind, both in terms of execution speed and memory storage. In this video, Bilsen will also guide us through the two different storage strategies including Array of Structs (AoS) and the Struct of Arrays (SoA), as well as the Arrays of Objects (AoO). We will also get a deeper look into what are entities, components, and systems actually are. How to Implement ECS in Delphi? This session will also provide us with a relative comparison between the inheritance and composition as well as the differences between the Entity Component System to traditional classes in programming. Aside from simply comparing a class-based approach and an ECS-based approach for the same programming problems, we will also get a sample usage demonstration of how you would use a simple ECS framework in Delphi. Fortunately, Delphi has all the tools you need to implement this paradigm. To know more about ECS, feel free to watch the video below. Download a FREE trial copy of Delphi and follow along!

Read More

What Are The Things You Didn’t Know About JSON?

JSON plays a huge role in windows application development, especially when transmitting data in web applications. The JSON format is used for serializing and transmitting structured data over a network connection. Nowadays, most developers are greatly in favor of JSON because it’s extremely lightweight and it is easier to read compared to something like XML. Despite the popularity, it is very interesting to note that some developers still don’t know all the ways to deal with JSON in Delphi. In this video, Dion Carlos Mai and Gustavo Mena Barreto of AquaSoft will give us an overview of different ways to deal with JSON in Delphi. What are the best ways to deal with JSON in Delphi? This video from the recently concluded DelphiCon 2021 will provide us with an overview of different ways to deal with JSON in Delphi and will also guide us through how to speed up your time developing JSON parsers. Little did we know, there is more than one way to deal with JSON in Delphi and this session will walk us through all the possible options along with various demos to see how these options effectively work in Delphi. One of the highlighted options from this video is the use of the JSONtoDelphi website. This website is designed to help us write the Delphi co-relate class to a specific JSON. It can generate the class to do the parser and in just one click, we can generate all the structures that we need to access all data from the JSON object What is the Super Object? Super Object is another option we can use especially if you are using the older versions of Delphi. The RESTResponseDataSetAdapter is a relatively new component in Delphi that can be used effectively to deal with JSON. This component can be used using the REST Debugger tool. Working with JSON using this component is surprisingly easy because you are already working with a dataset. Another option is the use of TJSONMarshal Class. With this class, we can change the default behavior of the serialization algorithm without having to write anything in the RTTI method. It is a good approach for routines that use threads and a customized JSON structure. The session concludes with a Q&A to address some of the JSON-related queries. To learn more on how to deal with JSON in Delphi, feel free to watch the video below. You can follow along for free. Why not download a trial copy of Delphi today?

Read More

Everything You Need to Know About APILayer in Delphi

Application Programming Interfaces or simple APIs play a very huge role in windows app development. One of its core functions is to simplify software development and innovation by enabling applications to exchange data and functionality easily and securely. An API is a set of defined rules that explain how computers or applications communicate with one another. Interestingly, in this video from the recently concluded DelphiCon 2021, we will not just have a deeper understanding of how API works but will also introduce us to APILayer which was recently acquired by Idera (Embarcadero Parent company). Understanding How API works and RESTful API’s Fundamental Requirements APIs are generally very simple to understand and some developers might have been using them for quite some time. However, for people who are very new about it, Victor Fernandes will help you better understand what APIs are, through a very clever analogical comparison. In this video, he uses restaurants as a perfect example. Here, the restaurant acts as the server and the customers are the clients or developers. APIs, on the other hand, are the services that the restaurant can offer while the orders represent the API request. Fernandes will also discuss the 6 fundamental requirements of RESTful APIs. What is APILayer? This session will also introduce us to the APILayer and its core features. APILayer is a very useful tool for developers as it provides a great number of easy-to-use REST API micro-services. It includes some useful GEO API tools to provide real-time flights and historical information and a handful of finance-related APIs for currency conversion, cryptocurrency exchange, market stock, and more. APILayer also provides high-quality and real-time data APIs to boost efficiency and ease the burden on your backend. These include tools like Weatherstack for real-time world weather data, aviationstack for real-time and historical flight tracking, and many more. The video will also provide us with some demos on how to use some of the APIs and how easy it is to connect RAD Studio with these APIs through REST. To know more about APILayer, feel free to watch this short webinar below. Why not download a trial copy of Delphi today and try out the examples for yourself?

Read More

7 Best Delphi Rules and Practices That You Should Live By

The recently concluded DelphiCon 2021 was indeed a success and the virtual event managed to gather some of the big and popular names in the Delphi community to provide insights about Delphi, windows program development, and more. One of them is Nick Hodges who has been part of the Delphi community since the very beginning. He is an original Delphi 1 beta tester and he used to work with Borland, CodeGear, and Embarcadero Technologies. He is also the author behind various eBooks like Coding in Delphi, More Coding in Delphi, and Dependency Injection in Delphi. With all the experience he had with Delphi, Nick is definitely one of the right people to share his insights about the best Delphi practices that every programmer should live by. What are the seven Delphi rules that you should live by? In this session, Nick Hodges will share his insights on his top seven best practices on using Delphi. First, Nick is encouraging programmers not to waste their time formatting their code. Formatting code is probably one of the most important things you can do as a developer but you should come up with an effective and less time-consuming formatting scheme to improve your productivity. He is also encouraging programmers to leverage and create Live Templates to consume less time in coding. Nick is also strongly suggesting everyone not to be an “On-Click” programmer by designing the business logic of your application outside of and apart from the user interface. Another Delphi practice that he strongly disapproves of is the use of the “with” statement. Aside from the fact that it makes debugging more difficult, using “with” can make bugs easy without even knowing it. Nick is also encouraging programmers to learn how to use Debuggers and to take advantage of their functions. He is also encouraging everyone to take advantage of the free add-ons that come with RAD Studio such as Parnassus Navigator, Konopka controls, and Parnassus bookmarks to name a few. Lastly, in connection with his recent book, he is advising programmers to use Dependency Injection, a technique or process of organizing your code in a decoupled fashion. The session also concludes with a Q&A portion to address some of the Delphi-related questions. Get a free copy of Delphi for yourself by downloading a free Delphi trial today!

Read More

Everything You Need To Know About Cryptocurrency, Blockchain, and Ethereum in Delphi

Blockchain and NFTs were already discussed in one of the past TCoffee and Code sessions in Embarcadero YouTube Channel. Interestingly, we will be introduced to them once again in this video with Jim McKeeth and Stefan van As. The recently concluded DelphiCon 2021 has covered a wide range of topics about Delphi, windows program development, various tips and tricks about coding, and many more. In this session, Jim McKeeth will walk us through the world of Cryptography and will give us an overview of cryptocurrency, blockchain, mining, smart contracts, NFTs, Delphereum, and many more.  What are the basics of cryptography? Jim McKeeth will provide us with all the basic information and things that we should know about cryptography. The session will also provide us with a quick overview of the different types of money through the “money flower” diagram. McKeeth will also discuss the differences between cash and cryptocurrency. We will also get a brief history of BitCoin, the first-ever decentralized cryptocurrency that was designed by a certain Satoshi Nakamoto but turned out to be non-existent. What is The Blockchain? What are smart contracts and NFTs? The session will also highlight blockchain and its crucial role in cryptocurrency systems for maintaining a secure and decentralized record of transactions. Blockchain is generally a term utilized to represent distributed ledger technology or DLT where transactions are recorded with an immutable cryptographic signature called a hash. In connection to Blockchain, we will also get a quick overview of how mining works as well as the use of Smart Contracts and the benefits of using the Proof-of-Stake mechanism for processing transactions and creating new blocks in a blockchain. In addition to this, the video will also introduce us to the emerging popularity of games that use Non-Fungible Tokens or NFTs as well as the IPFS or the InterPlanetary File System, a protocol and peer-to-peer network for storing and sharing data in a distributed file system. How does Delphereum feature in the future of Blockchain? The session will also highlight Ethereum which is an open-source blockchain with Smart contract functionality. In connection with this, McKeeth will give us details about Delphereum, a Delphi interface to the Ethereum blockchain that allows for the development of native dapps (decentralized applications). He will also share some insights about the things we should expect in the future of Blockchain. This includes the so-called Sharding, a multiphase upgrade to improve Ethereum scalability and capacity, and is expected to arrive this year. To know more about Blockchain, feel free to join Jim McKeeth in this one-hour-long session below. Do you want to follow along? Why not download a free trial of the latest version of Delphi today?

Read More

How To Make A Web Crawler App With Delphi and Python

Dion Carlos Mai of AquaSoft is back for another special talk about Delphi. After walking us through the process of dealing with JSON in Delphi from the recently concluded DelphiCon 2021, he will now guide us to build a web crawler using both Delphi and Python programming languages. Web crawling plays an integral part in windows app development, especially for applications that require real-time data. In this talk, we will learn how to get data from websites with Delphi integrated with Python, in one single application. How can I use Python in Delphi? Delphi and Python are both powerful programming languages. Each comes with its own unique feature. Just like what we have learned from the recent DelphiCon talk by David Millington, some languages are ideal for connecting user interfaces while other languages are being efficient for performance. Interestingly, developers can always embrace both worlds by combining two different languages in one application. In this video, Dion Carlos Mai will show us how to use Python in Delphi using the Python4Delphi component. Python4Delphi is the library that provides the integration between Python and Delphi. Along with the hands-on application, we will learn how to build a web crawling application using the aforementioned languages. The talk will also highlight the advantage of using a web crawler app. This method will not just allow you to get data from a website but also allows you to compare different data providers and also to validate your own published data. What are the pros and cons of this model? Dion will also list down all the pros and cons of using this model including how simple this model is compared to other complex solutions. The session will also conclude with a Q&A portion related to Python and Delphi. If you want to know more about how to build a web crawler using both Delphi and Python, feel free to watch the video below. Why not download a free trial copy of RAD Studio Delphi and try this example yourself today?

Read More