Colleagues use APIs, I use tutorials..
Posted: Mon Nov 21, 2011 5:28 pm
This is embarrassing. I spent a fair bit of time at work today trying to read and parse xml.files in php. The only information I had to hand was that instantiating a simpleXMLElement object would give me a reference of some kind to the object contents.
If it were not for one of the examples, and to a greater extent the tutorials I found online, I would not have been able to use simpleXMLElemet. I do remember back when I was learning to program, all that was available was the API, but I seem to need to see it in action these days and I feel a bit behind my colleagues in this sense.
When I went to http://ie.php.net/manual/en/class.simplexmlelement.php, I thought "ok, theres my class. Let's see how the constructor works and we'll have a handle on the xml file".
So I checked the constructor documentation here http://ie.php.net/manual/en/simplexmlel ... struct.php, not fully understanding the argument representation but I tried anyway.
I got errors that I unfortunately don't recall at the moment, but it was a tutorial from a google search that got me up and running in the end of the day.
Can anyone refresh me on the art of reading and API? Do any of you actually work solely from APIs nowadays? It's eight years since I've programmed and my employer knows that I'll take *some* time to get back up to speed - but I want to do that as quickly as possible before my employer regrets taking me on.
Many thanks,
Ten
If it were not for one of the examples, and to a greater extent the tutorials I found online, I would not have been able to use simpleXMLElemet. I do remember back when I was learning to program, all that was available was the API, but I seem to need to see it in action these days and I feel a bit behind my colleagues in this sense.
When I went to http://ie.php.net/manual/en/class.simplexmlelement.php, I thought "ok, theres my class. Let's see how the constructor works and we'll have a handle on the xml file".
So I checked the constructor documentation here http://ie.php.net/manual/en/simplexmlel ... struct.php, not fully understanding the argument representation but I tried anyway.
I got errors that I unfortunately don't recall at the moment, but it was a tutorial from a google search that got me up and running in the end of the day.
Can anyone refresh me on the art of reading and API? Do any of you actually work solely from APIs nowadays? It's eight years since I've programmed and my employer knows that I'll take *some* time to get back up to speed - but I want to do that as quickly as possible before my employer regrets taking me on.
Many thanks,
Ten