Archive for November 16th, 2009

If only I’d learnt PHP…

// November 16th, 2009 // 4 Comments » // NaBloPoMo

Instead of faffing about with HTML and CSS (which I still don’t understand fully), I wish I’d learnt more than the basics of PHP. If I had, I wouldn’t be banging my head in frustration right now at the Twitter API and OAuth.

You see, earlier today, I had an idea. My brain told me it sounded brilliant, and all I needed to do was create a Twitter app that logged the user in via OAuth, and posted a pre-written tweet in exchange for something. Simple, right?

Yeah, not if your knowledge of PHP is worse than your cooking skills, i.e. terrible.

I know a lot of people who have years of experience in computing. Some of them have even offered to help me already (even though they don’t know what they hell I’m doing), and I love them for it. But it’s the pride thing. This is one of the most basic things you can do with the Twitter API, and already I’m failing.

Well, I have managed to register my application and log into it via OAuth, but there’s something I’m doing that’s giving me errors everywhere, and I don’t know what it is. I haven’t even started on the tweet-posting part yet.

The only thing I have managed to do is post a sample tweet via the API saying, “PHP rocks my socks!
This is clearly a lie.

It also doesn’t help that my formerly brilliant-sounding idea is sounding more and more absurd as I play around with code. That little niggling voice in the back of my head is wondering why I’m doing this again, and why I’m such a n00b.

Meh. I’ll get it. Eventually.
If not, I’ll cry and give up. Such is the way I handle things. >.<

I’m just not cut out to be a developer.