News for hackers. Stuff that matters.
Re:Why I use Object Pascal by samuell on Tuesday October 17, 2017 @09:03AM (#15490539)
In my experience (talking FreePascal/Lazarus here, as I'm on Linux most of the time), the library situation is not that bad, actually. The standard lib has most of the mundane stuff, and a little github-searching can often find a working version of more specific stuff (like SSH2 which I needed recently).

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.

Re:Why I use Object Pascal by s_kilk on Tuesday October 17, 2017 @09:13AM (#15490601)
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?!
Re:Why I use Object Pascal by conductor on Tuesday October 17, 2017 @01:42PM (#15492943)
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:

http://wiki.lazarus.freepascal.org/fphttpclient

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