« Scott Nonnenberg


Contract: React Training

React.js logo

In March I didn’t just give a talk at the Seattle React.js Meetup. I also had a contract to design and present a 10-hour training on React.js, Redux, and React-Router. After last fall’s Social Security Administration (SSA) training contract, it felt quite familiar. I was able to fine-tune my approach. But no matter how many times I do it, there are always surprises.

The Audience

With my SSA contract, I didn’t know my audience at all before getting there. All I had was a single response to a questionnaire I had sent, provided by the most advanced developer on the team. That had skewed my content towards the advanced, and several people had trouble keeping up.

This time around I demanded that all attendees answer my questions. I also had the added benefit of having worked on a development contract for the same company in the preceding six months. I had direct experience working with a few of my attendees.

Reading through the survey responses, I was happy to see that I didn’t need to break through any buy-in barriers. Nobody had an unfavorable opinion of the technologies to be discussed! And some even had prior experience with React. A nice surprise.

The Topics

We started from the absolute beginning, the most basic React component you can write:

const React = require('react');

module.exports = React.createClass({
  render: function() {
    return <div>We're learning about React today!</div>;
  }
});

From this humble origin we progressed all the way to a full Redux SPA with a Node.js backend, tested with enzyme, using modern JavaScript constructs. Here’s the complete outline:

  1. React Rendering and Testing
  2. Comparison with other frameworks
  3. Redux
  4. Day 1 Wrap-up
  5. React and Backbone
  6. Rounding out React
  7. React-Router
  8. Foundational tech
  9. Next steps
  10. Overall Wrap-up

It was particularly challenging to delay discussion of modern JavaScript constructs. I found myself in the strange position of translating quite a bit of Redux-related code to good old ECMAScript 5, because the flow dicated that I wait to cover those particular constructs. I did end up covering const/let and destructuring in earlier modules, but I saved features like template strings, class syntax, and rest/spread for Module 8: Foundational Tech.

You’ll also note that Module 5: React and Backbone is whole module spent with a competing technology. This is the technology the team had in production, so this module was designed specifically for their scenario. For this module, we worked with the same app from previous modules, this time written in Backbone and ready for translation. A high-fidelity preview of their upcoming conversion!

The Approach

As always, I provide comprehensive materials which would enable a student to work by themselves if they so desire: exercises and educational resources to assist in completing them. But before I set the students loose on that, I present a little bit: sometimes with slides and almost always with demos. Then I circulate through the room to help each of the students wherever they are in the process.

Module 5: React and Backbone is a good example. I first live-coded the conversion of one Backbone view to a React component, and then set them loose on the exercises. There were two exercises in the module as well as a couple challenge tasks for the folks moving faster. As I made my way through the class, I sometimes helped debug issues, sometimes helped with a configuration issue or two, and sometimes discussed high level questions.

The Struggle

My goal is to give my students a chance to struggle with the material. I’ve had a gut sense for this for a while, but I got some encouragement and explicit principles to attach it to at TEDx Rainier last winter. Dan Finkel described his very inspiring Five Principles of Extraordinary Math Teaching. He says:

“I don’t think of myself as a mean person, but I am willing to deny you what you want. Because I know, if I rush to an answer, I will have robbed you of the opportunity to learn. Thinking only happens when we have time to struggle.” (4:42)

And so, I create the space for that struggle: the goal and the tools to get there. And, circulating through the room, I step in when the struggle gets to be too much.

The Results

It worked out pretty well! Despite a bit of (expected) difficulty with the exercises, one broken filling (my poor tooth!), and a couple bugs in the material, everyone had good things to say:

“Scott was a good and effective communicator, and the training was adapted to our particular situation, which was extremely helpful”

“They put you into the deep end without answers, but enough knowledge to figure it out. Although hard at first, I really appreciate it now that I’m finished. It leaves you with much more confidence.”

“Scott did an excellent job”

“The order of the topics and the pace were really great”

What next?

Let me know if you’re interested in training for your team! I’m happy to use Node.js/React.js I curriculum I already have or design it from scratch, but I’ll always tune it for your situation. And this can very easily blend into mob or pair programming, interactive technical Q&A sessions, or mentorship.

I won't share your email with anyone. See previous emails.

It's me!
Hi, I'm Scott. I've been in software a long time, and during most of that time I have worked to bridge the people/tech divide. Contact me if your company needs training, coding, or just an experienced outside perspective!

NEXT:

The state of thehelp 2016 May 03

The collection of node modules and client libraries I released under the thehelp family name has been available now for about a year and a half. It’s been a good run, but now it’s time to take stock... Read more »

PREVIOUS:

Practical Gatsby.js 2016 Apr 21

So you want to use React.js to build your site, and you want to deploy just static files? Gatsby.js is a great choice! But it’s dangerous to go alone - take these hard-won tips! Read more »