I’m going to teach myself jQuery

On the lest is my Notepad++, and on the right is a screenshot of a tutorial video from Tuts+.

An idle mind is a devil’s playground,” the scriptures say — and this is exactly true with me as I tend to think of bad thoughts during the times where I don’t really do anything (like sleeping). This is the reason why I want to waste my time doing things rather than doing none (I just had another episode of bad thoughts that makes me want to die).

I’ve just had a short talk with my brother last night, and he motivates me to do things — such as parsing data from the Hummingbird API (which won’t see the light because they don’t have full CORS support in their servers; see Sidenote).

While I am not able to share how long I’ve been watching anime using my Hummingbird data, by this moment I found myself downloading tutorial videos on jQuery. I’ve had a grasp of Javascript before as part of my course requirements, but for some reason I tend to treat JS the same way with Algebra: I don’t like both. That’s why I stay with UI frameworks like UIKit and Bootstrap, because I don’t need to tinker their Javascript — it’s already there, built-in, and I have to follow the instructions.

Since it’s only a few days before the year ends, I might as well keep myself busy and try learning jQuery, as it’s the common and (they say) the easiest Javascript library. I am using the free tutorial on Tuts+ and Try jQuery as references. Hoping for the best.

Sidenote: Hummingbird API and CORS

CORS (Cross-Origin Resource Sharing) “is a mechanism that allows restricted resources (e.g. fonts) on a web page to be requested from another domain outside the domain from which the resource originated.” [Mozilla Hacks]

In this case, CORS allow me to get my anime data and post it in my personal website pronto. The context: Hummingbird has their API hosted on their website and on Mashape, and I find the former much easier.

Only the one hosted on Mashape has CORS, but I find Mashape difficult to understand at this moment.

As of the moment, the CORS that the former has is restricted to (1) their forums, (2) their community and on (3) localhosts at port 4000, which means that I still won’t be able to access the data and slap it in to my site directly — in short, I need to find a tool that lets me do it or make one.

I really appreciate if there is a simpler way to do this, but for now, I have to learn a lot about these things.