Vala makes it incredibly easy to access resources from online.

Imagine you would like to access some information from a website. For me, I wanted to download magnetic declination from the NOAA website. I wanted to be able to lookup mag. dec. from a given latitude and longitude. My programming experience has mostly been with C++ (although I’ve done a bit of Python etc), and in C++ accessing the internet is no trivial task. You either need to find some library that will do it for you (libcurl comes to mind) or do it hardcore with sockets.

Vala, on the other hand, will access HTTP resources just as easily as it will access files from your hard drive. Just look at this.

That is crazy simple! Two small functions, and I can pull information straight off the internet and plug it into my desktop GUI. All the NodeJS losers are laughing at me right now, but I’m an old skool C plus pluser and I’m inpressed.

Leave a Reply

Your email address will not be published. Required fields are marked *