« first day (2687 days earlier)      last day (2272 days later) » 

12:05 AM
@MichaelEcklund all written afresh
 
awesome. great work.
How long did that take you to compile?
 
12:36 AM
a while, but I didn't work in a single stretch
 
 
14 hours later…
2:26 PM
[ "hip", "hip" ]
 
3:21 PM
(☞゚∀゚)☞
 
 
4 hours later…
7:06 PM
What JS libraries and/or frameworks should a modern WordPress developer be savvy with?
 
8:04 PM
@MichaelEcklund jQuery in general, backbone for legacy, React and Redux going forwards
 
@TomJNowell Maybe a silly question, why Redux?
 
I mention redux specifically because by learning it you gain general knowledge that will help, and without it the internals of most React codebases can be difficult to understand
 
Gotcha
 
the author of Redux did a set of short videos that covers why it's built the way it is, how it works, and how to use it. In the process stuff like higher order components and data stores suddenly seem rather easy
whereas to most people including myself, it looked nigh on impossible to understand
understanding React + Redux should prepare you very well for building rich UI's, working with REST, and building Gutenberg blocks, and extensions, among other things. It's a lot better than backbone, which in my experience was always painful to work with
The Gutenberg team have tried to wrap around these to provide a smaller, simpler framework agnostic API though
e.g. the wrapping of React.createElement with a WP version, enabling you to swap React out for Vue, and other JS libraries
 
I've only heard of Redux, I don't think I've ever seen it in action. Gonna have to look into that more I guess.
 
8:08 PM
or the new wp.data data store
@Howdy_McGee I built something in react a while ago and started running into problems of having to pass props up and down and all over the place, moving where stuff gets stored, it was a pain. But I recently used Redux as a data store, and followed the course, and it'd have saved so much time
 
Do you have a link to the course handy :D ?
There's a quite a few courses / learn redux from what I'm seeing
 
you need to pay for the code, but it's the same todo app he uses in the redux docs and everyone else uses
it'll introduce some new es2016 syntaxes and show you the not so great way to do stuff, then replace it step by step with the way you're meant to do things
also JSX ftw, it makes creating HTML stuff in JS so much easier, no more XSS joining strings together, or length code assembling DOM nodes, just return <p>{text}</p> and it'll figure out the escaping for you
 
JSX is pretty awesome. I've yet to actually use react on a clients site though - I'm mostly learning it for the impending Gutenberg update. Maybe I don't build that dynamic sites or I just keep talking myself out of it >.>
 
8:25 PM
+1, I find I mostly use React + JSX nowadays, else it's me using jQuery in the console as a quick way to do a POST request in WP Admin for test
 
9:21 PM
So what's the advantage to React over Angular?
I see job postings all the time requesting angular
@TomJNowell I thought react was for the "view" layer only.
 

« first day (2687 days earlier)      last day (2272 days later) »