Delphi and REST Client Development

I really don’t like to make comparison between different development tools. In my opinion most tools have their strengths for certain tasks. So I try not to criticize other tools by name. Delphi is my favorite, and I believe it is the best all around tool for more projects I face. Occasionally I have someone ask me how Delphi compares to another tool they are evaluating. I thought I would share one such experience.

When I was in Brazil I went to meet with a guy who was in charge of software development for a large, international company. They were all standardized on a different development tool, but it didn’t really have a mobile solution. They were looking at some tools that claimed to make it really easy to do mobile development, but once he got past the marketing he found it wasn’t all it was cracked up to be.

To evaluate the tool he decided he would develop a simple little app for iPhone and Android that connected to a REST server to pull down a list of countries, cities, etc. to help people find offices for his company. He thought that a week should be more then enough time to develop this simple application.

What he found was that while he expected it to be cross platform, it was actually only shared code. So he had to create a project for each platform, and then he could share part of the code (not as much as he would like) between each project. Also there was significant overhead in consuming a REST service. After a couple days he realized a week wasn’t enough time for even one platform.

To top it all off he discovered that the cost was actually way more then it was initially made out to be when you actually got down to doing something serious.

So I showed him Delphi and told him that the app he was describing could be done inside a day, probably with a prototype within an hour. He found that a little hard to believe, so I created a simple REST client displaying the result of a REST service and deployed it to my Android phone. It took about 5 minutes, including the time it took to connect to his WiFi.

He was so impressed he actually got his phone out to make a video of it just so he could show his boss, who he was sure wouldn’t believe him.

That is what I love about Delphi. It makes the simple things that you need to do all the time so simple and so quick, and it makes everything else still pretty simple. Need an API that isn’t wrapped in a component or the RTL, no problem, you can still access it.

This entry was posted in REST, Tools and tagged . Bookmark the permalink.

11 Responses to Delphi and REST Client Development

  1. Paulo says:

    I’d love to see more articles showing architectural patterns in Delphi, instead of components… Example: A simple MVC.

  2. Rafael Wolf says:

    I’d love to see more implementations from Embarcadero or Idera, Web applications by example, something more object oriented, and less components.

  3. Mop Krayz says:

    I would love to see real-life tutorials of these kind of applications, so someone new to Delphi can learn fast

  4. Flynn D says:

    Bravo! Delphi saves the day.

  5. Mark Smith says:

    +1 for some great tutorials showing this kind of use for Delphi. I have been a long time Delphi user (with maintenance) and I’m struggling to make the leap from desktop to multiplatform and web services. That would be so helpful.

  6. Alexandre says:

    Hi, we use TMS XData/Sparkle to REST server and client application. We use it in an ERP system with more then 300 uses. I think is the more stable solution.

  7. Fernando Rizzato says:

    I’m glad the meeting was so productive!

  8. boesystems says:

    Yes, do a 5 min video showing what you showed him please!

  9. Jim McKeeth says:

    Paulo: What sort of MVC examples are you looking for? Daniele Teti has some great articles on building an MVC desktop application:
    http://www.danieleteti.it/a-simple-start-with-mvp-in-delphi-for-win32-part-1/
    As well as his MVC web server framework:
    https://github.com/danieleteti/delphimvcframework
    Or were you looking for something more specific?

  10. Our website aglconcept.com is entirely built with Delphi, bootsrap, angularjs and Firebird by only one developer.

Leave a Reply