A few years ago (2011 to be precise) someone asked a question on StackOverflow about support for anonymous classes in Delphi. The reason for the question was that the poster was trying to use Delphi to develop for Android and on that platform the widespread use of callback interfaces makes anonymous classes highly desirable.
In my previous post I provided a simple example of how to use Retrofit to define, create and use a REST API client. Even in that simple example the issue of how to deal with different responses to a request came up. That is, where the response we receive does not conform to the strongly typed response we expected (or hoped for). Here’s how we deal with that, in a strongly typed way.
I’ve recently been working on a new project involving an Azure hosted ASP.NET MVC WebApi application (actually a pair of them) and native mobile and web applications. Everything is – of course – built using Oxygene. For the Android mobile app I was looking for a REST API client library and have settled upon Retrofit and thought I would share the experience.
Yesterday I initially posted that you couldn’t mix Unified Syntax with “traditional” interface and implementation sections. Or what I am now calling Segregated Syntax. As sometimes happens, shortly after writing what I thought I knew to be true I discovered it wasn’t ! Sorry about that. 🙂 I promised to illustrate the scenario where I found it both possible and useful, and here it is.
In the periodic table of the elements, at #9 we find Fluorine. Curiously though the name “Fluorine” is not used (that I am aware of) anywhere in the Elements 9.0 release which dropped this week. But there is plenty of interest in this release, aside from Period Table curios.
Something made me check the post I published yesterday and it’s a good job I did because I found that WordPress had severely truncated it (perhaps something to do with the update to 4.5.1 that I did later on ?). In any event, that previous post has now been restored (fortunately the previous revision in the WordPress history was still more or less complete), so if you thought it had cut short rather abruptly, you weren’t wrong, and the full post is now available as intended.
I’m not sure how many more song inspired Fire references I can keep coming up with, but here at least is one more.
When discussing mobile device application development using Oxygene or other RemObjects Elements technologies, the question of user interface designers doesn’t usually take long to come up (particularly with Delphi developers). Up to now the answer has always been Xcode Interface Builder for iOS/OS X, Visual Studio WinForms/WPF Designers for .Net and… um… your favourite text editor for Android (if you don’t like the XML editing facilities in Visual Studio). But not for much longer.
Not exactly hot off the presses but some people apparently seem still to be unaware that my suggestion for a Community Edition of Delphi has been picked up (some years later, mind you). Except that it isn’t Embarcadero that have picked it up, but Microsoft.
My original Android version of TXT-2-PARK has been in the Google Play Store for a little over a week now. But it was only on Saturday that I decided to install the release version onto my phone from the store itself, and found a problem.