Uwe Raabe
Even years after switching from centralized version control to a decentralized one (or to be more precise: from Subversion to Mercurial) I still find myself stuffing different unrelated changes into one commit. Sometimes there are… … Read more
4 years ago in programming0
FPiette
In this blog post, I will show you how easy it is the have a Direct2D canvas for your Delphi form.What is a canvas? In Delphi VCL technology, a canvas is an abstraction encapsulating Windows API… … Read more
4 years ago in API, Delphi, Direct2D, programming, RAD Studio, vcl, windows0
Uwe Raabe
As some of you might have guessed already, I have been a bit busy with the current beta of the new Delphi 10.4 Sidney. Usually one is not allowed to talk about the beta, but… … Read more
5 years ago in Delphi, programming0
Uwe Raabe
In the previous blog post we learned how to decorate a field of a class with attributes to adjust the Json serialization to our needs. This post is about serializing fields of type TObjectList<T> or… … Read more
5 years ago in Delphi, JSON, programming, Serialization0
Uwe Raabe
Serializing objects to Json as well as de-serializing them with the Delphi standard libraries has been subject to many discussions. While the majority suggests to use another library or a self implemented solution, there are… … Read more
5 years ago in Delphi, JSON, programming, Serialization0
Uwe Raabe
Seems Delphi 10.3.3 Rio adds some bogus entries for Android 64 into the dproj files when opening a project from a previous version. As this undermines the normalizing algorithm in Project Magician I added some… … Read more
5 years ago in Delphi, programming0
Uwe Raabe
With the official release of Delphi 10.3.3 Rio comes a new version of Project Magician. This was necessary to support the new platforms introduced in the latest Rio updates. I also took the opportunity to… … Read more
5 years ago in Delphi, programming0
gabr42
CompareValue function is incredibly practical when you are writing comparers (functions that determine how some data structure is ordered). System.Math and System.StrUtils define a bunch of functions that can be used to compare integers, doubles,… … Read more
5 years ago in Delphi, programming, tips0
gabr42
Pop quiz! How can the following program …Writeln(True);Magic;Writeln(True);… output this:?TRUEFALSESimple!Read more »— Published under the Creative Commons Attribution 3.0 license … Read more
5 years ago in definitely not best practices, Delphi, programming0
gabr42
Delphi never stops surprising me …Did you know that this is a valid syntax?case a of 0: Writeln(0); else Writeln(‘else’); Writeln(a);end;This code indeed compiles and works exactly as the following fragment.case a of 0: Writeln(0); … … Read more
5 years ago in Delphi, programming0