13 Comments

  1. Andreas Nurbo

    And Backbone is what WP core advocates sort of *sigh*. I’d like to see Vue become the defacto WP JS framework on frontend and backend. React is a bit too steep in learning curve I think.

    Report

  2. Rasmus Jürs

    Graphs where you have to use a colorpicker to figure out the legends are always fun..

    #lookmomimadesigner

    Report

  3. mark k.

    so backbone which is the backbone of many complex JS in wordpress is in “used it once, never want to use it again” category, or in my case “tried to use it once, and afraid I will have to use it again”.

    JS in wordpress stand against everything which wordpress stands for, it is simply not hackable, not by a novice and not even by the experts.

    Report

  4. Chuck

    Is it just me or does each bar on that graph have its own secret y-axis scale?

    Report

  5. Justin Tadlock

    I’m pretty much a JS novice and learned quite a bit about Backbone in less than a week. I’ve tried React and Angular. Neither stuck. However, I’m sure I could’ve learned enough to use either for the project I was working on. I could probably say the same about other JS frameworks.

    I rolled with Backbone because it was in core WP and things like media views already relied on it.

    In the WP community, we need more documentation on the JS included in core. The PHP in WP has always been well-documented, both in the code and on the Web. The same cannot be said for the JS (though inline docs are improved today).

    What we seem to be missing, regardless of the JS framework used, is WP folks who are teaching others how to build with JS.

    Report

    • Jeffrey

      What we seem to be missing, regardless of the JS framework used, is WP folks who are teaching others how to build with JS

      Agree. I would like to learn how to build with JS, but don’t know where to start with.

      Report

    • Andreas Nurbo

      Better to switch to Vue than force Underscore and Backbone down peoples throats. Sticking to that is equivlence of sticking with PHP4.

      What we seem to be missing, regardless of the JS framework used, is WP folks who are teaching others how to build with JS.

      There is nothing specific about JS for WP. I made a plugin that reproduces basic WP media library functionality with Vue and WP API in just few hours.

      Report

      • Justin Tadlock

        I’ve been meaning to check out Vue. I need a project though to really try it out.

        Media views and the customizer both are good examples of WP-specific JS. We need more tutorials on them. Even without those things, it’s not about JS specific to WP. It’s about teaching things in a relatable manner.

        There’s tons of JS resources (probably one of the, if not the, most documented languages out there). However, it needs a WordPress spin. Like, “how to do X with Backbone.js/Vue.js/Etc. in WordPress”.

        It takes someone who is not just a good programmer but also a good teacher and writer. I know plenty of folks who can do the code, but they can’t teach it in a way that other WP developers can relate to. You’ve got to get developers from “cool, but I don’t know what I’ll do with that” to “oh, I totally need to try this in a WP plugin”. Sometimes, jumping from one point to another is not automatic. Developers need that light-bulb moment where it all makes sense.

        Report

      • mark k.

        The problem is not with “how to do X”, the problem with all JS frameworks is with “WTF X is not working” moments. In wordpress media you have backbone over underscore over jquery. This is three times removed from what the browser actually does and what the browser debuging tools provide. The need to learn totally different concepts to understand how backbone and underscore actually work make the media library impossible to hack. As a contrast, the customizer code is ugly, but because it do not have the additional abstraction layers it is at least possible to follow and debug it.

        Report

      • Andreas Nurbo

        I currently mostly use Underscore templates and jQuery to handle frontend and backend things in WP since distributing Vue with my plugins seems like a really stupid idea. I have tried to work with Backbone but I would rather not ever touch that ever again.

        The thing is there really shouldn’t be anything special about working with PHP, JS, layouts etc in WP compared to other setups. WP keeps reinventing things or stick to old stuff far to long.

        Report

Comments are closed.

%d bloggers like this: