That's cool, this thread has definitely piqued my interest in Pascal!
Re:Why I use Object Pascal
by oneweekwonder on Tuesday October 17, 2017 @12:52PM
(#15492495)
We needed a app for branding. That login to a website. So it needed to do a POST request. I struggled with fp and google for 30 min, and dropped to the `RunCommand('curl',['https://ifconfig.co'],s, opt)` clutch with curl.exe(with licence file) bundled into my innosetup file... magic?!
libcurl (with examples) is bundled in the FreePascal distribution, as well as simpler alternatives like fphttp, fphttpclient, fphttpwebclient, etc.
Re:Why I use Object Pascal
by oneweekwonder on Wednesday October 18, 2017 @11:47AM
(#15500125)
Thanks will look into it.
It is hard to get the boss to allow you to write a mvp in non mainstream language.
So I had a quick swing at the libs and wondered about so/dll dependancies compiled against my exe; and just went for a bundled exe, yum and apt curl install script... under a day native win and ubuntu support?!:D I'm sure there is a TODO tag above my command for the junior that is going to hate me because he now needs to code in lazarus... ;)
Re:Why I use Object Pascal
by badsectoracula on Tuesday October 17, 2017 @01:26PM
(#15492798)
FYI Free Pascal (and by extension, Lazarus) comes with fcl-web which contains, among others, an HTTP client.
See:
Re:Why I use Object Pascal
by oneweekwonder on Wednesday October 18, 2017 @11:49AM
(#15500154)
Thanks this is the kind of info I needed. Only had a day in laz land and time was running out for my product. So had to cut corners. #TODO
To the contrary, in some areas (like GUI tooling) it is far far beyond newer alternatives like Go.
Also, I think the higher level of the language than C/C++ etc can make it easier to develop your own solution, should you have to.