I’ll cop to it. I learned jQuery first. Some will say that’s wrong. In my opinion, it abstracts away annoying browser quirks and makes diving into code a lot easier. The trick is to avoid simply writing a mess of chained spaghetti right from the get go.
When you’re done with that, follow it up with a real deep dive. An oldie but goodie from Addy Osmani about building large-scale jQuery applications. A lot of the tools he mentions have been abandoned, or are very different these days, but the fundamental concepts are essential.
s and then call it in
init(), assigning it to
Here’s one thing you’ll hear, oh, all the time.
Of course, that’s not entirely true. But it’s also absolutely true. Yes, there are primitives like booleans and strings that aren’t technically Objects, but they are usually transformed into Objects as they’re interpolated. And everything else, functions, arrays, etc. are prototypical Objects free to be mutated and extended. Why is that important? I can tell you one reason.
I’ve also heard great things about the You Don’t Know JS series, though I haven’t fully dived in yet.
Learning Frameworks, Learning Always
I know many of you are just looking for comparisons. Here’s a decent one.
But for those that want to understand the right use case for frameworks, WP Sessions has an excellent course on using Backbone and WordPress. The presenters really dive into why using a front-end framework / library like Backbone is important and discuss piratical ways to layer it into existing projects.
Another great introduction into the “why” of MVC is Developing Backbone Applications, again by Addy Osmani. Osmani doesn’t simply walk you through how to create an application in Backbone, he gets to the core of application frameworks, and how they can help you get the job done.
And then there’s React. Which, and I can’t state this enough, is just one of many tools available to you. It’s the new hotness, and I understand why it feels imperative to learn. If you’re a functional PHP programmer, it actually probably makes a lot of sense. What really brought React into view for me was an article called “ReactJS For Stupid People“. I recommend you read it. I can also recommend an excellent tutorial about React + WordPress over on Rastislav Lamo’s site. And of course, Calypso is being written in React.
But always remember, you don’t need a framework.
Just Give Me the Links
- Learn jQuery in 30 Days
- Large Scale jQuery Applications
- Using Objects to Organize Your Code
- You Don’t Know JS
- WP Sessions Course: WordPress and Backbone.js
- Developing Backbone.js Applications (book)
- ReactJS for Stupid People
- React Single-Page WordPress REST API Theme Tutorial
- A JS Framework on Every Table
Great resource, seems very thorough and on a very trendy topic.
Thanks! Glad you enjoyed it. May update it from time to time with new resources.
Comments are closed.