I’ve been doing web design for a long time, but it hasn’t really gotten too interesting until I started playing with MVCs and JS frameworks and AJAX. Now, all the *boring* stuff is totally out of the way, and the fun stuff is where I can see what I can quickly develop. Kind of interesting really. Plus, I think it’s kinda cool because I had pretty much sworn off getting more into computer tech, but this is one that really is interesting. Well, for now, anyway.
I want to explain a couple of coding conventions though.
I should probably learn to use exceptions. The concept of them just baffles me though, and I don’t really see the point of them when you can do things procedurally. Whatever. I’m holding out on being stubborn on this one.
The class supposes that your REST URL will accept the uniq identifer at the end.
The AJAX requests need to be synchronous, otherwise I couldn’t access the responses. If someone knows a way to do both, I’d be glad to hear about it … synchronous and then using bind(this) on the function is the only option I’ve found.
That’s all I can think of. Like I said, JS is not my strongest coding skill, so if anyone could do a once-over, it’d be nicely appreciated.
For what it’s worth, the code works just fine for my needs though. 🙂