chantastic.fm

34: Just Use a Button with Jen Luker

Episode 34 · January 9, 2019 · 00:36:31

Hosted by chantastic · With Jen Luker

Download MP3 · Jump to transcript

Jen Luker is a lead software engineer at Formidable Labs, keynote speaker, host of @BookBytesFM, and expert knitter. Chantastic asks her about the Fiber Arts Corner at React Conf, the history that textiles and programming share, and how we can make our apps more accessible.

Featuring

Links

Transcript

[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. Today we get to sit down with Jen Luker. She's one of my favorite people to see around the halls of a conference because she's a joy to be around and she's always knitting. And yes, if you haven't been to a developer conference, that is an extremely rare sight. But not so at the 2018 React Conf. Where right in the lobby, they had set up a fiber arts corner. Knitting and yarn making and cross stitching were all happening through the duration of the conference. It was absolutely incredible. And this was because of Jen. So today we're talking about how that came to be and the unconventional history that textiles and programming share. Jen also knows a tremendous amount about accessibility. So in the second half of the episode, we talk about accessibility. And a strategy that anyone at any company could start to employ. A big, big thanks to Jenn this week because she was extremely sick when we sat down to record this episode. I'm very grateful that she decided to power through, and I think you will be too. This episode of React Podcast is brought to you by React Training. They provide in-person, hands-on training for development teams. Those trainings are taught by industry experts and community leaders. For more information, visit reacttraining.com. Jen, I am super excited to be sitting with you. You were the first person when I found out I was coming to React Conf that I was like, I have to sit down with Jen. It's it's time for us to talk. So how are you enjoying yourself this far in the conference?

[00:02:00] Jen Luker: I'm having a blast. I'm having so much fun. I love this conference.

[00:02:06] Michael Chan: Now you're doing super something super unique that I've never seen before, never heard of before. Uh, tell me what you're doing at this conference.

[00:02:15] Jen Luker: So this is the first conference that I've ever heard of as well that has decided to have a fiber arts circle, uh, which is amazing. Essentially what they're doing is that during the breaks, during the conference in general, there's a couple of tables that are set up with, you know, a lot of yarn. And I brought my spinning wheels and I brought drop spindles and-

[00:02:40] Michael Chan: I saw some knitting kits.

[00:02:41] Jen Luker: Oh yes, I brought notions kits and knitting needles and and coupons for discounts for more yarn. When I hook you in, I really hook you in.

[00:02:51] Michael Chan: It seems like a good thematic uh fit for this conference where hooks kind of have taken center stage.

[00:02:58] Jen Luker: It does. Hooks with crocheting, uh hooking yarn so that you can pull it through another loop for knitting, uh hooks that I use to uh capture yarn and pull it through my my spinning wheels. And not only the hook fashion, but there's also going back to pre-hooks where it was Fiber Arts and React Fiber. So we're here sitting and talking about React while we're playing with yarn. It's so-

[00:03:26] Michael Chan: it's knit together in ways that I couldn't have anticipated.

[00:03:29] Jen Luker: Oh goodness, this is gonna be fun, isn't it?

[00:03:32] Michael Chan: So how has the response been to, to this kind of alternative way of experiencing a conference?

[00:03:43] Jen Luker: I thought it was going to be bigger at first, and then I hoped it was going to be smaller because budget-wise I only put together so many learn-to-knit kits.

[00:03:52] Michael Chan: Uh-huh.

[00:03:53] Jen Luker: Uh, and then when the conference started, it was really quiet. It was dead quiet for that first phase, and then the next uh session ended up having a couple people come over,

[00:04:07] Michael Chan: okay,

[00:04:07] Jen Luker: uh staying for a few minutes and then moving on, but one person like sat and stayed in that spot.

[00:04:12] Michael Chan: She really got into it.

[00:04:13] Jen Luker: And then there were 2 of us and we were hanging out, learning how to spin. And then she said that she wanted to knit. And before it, there were 3 people, and then there was like 5 people, and then we had to pull over another table because there were 7 people. And we brought over a few more, and a couple other people just came and sat down to hang out and chill for a while and then move on. And it's been really fun. I've created at least one new knitter and a new crocheter.

[00:04:41] Michael Chan: Awesome.

[00:04:41] Jen Luker: I have two more that are just about to learn to knit. I've had someone try spinning, which has been fantastic.

[00:04:47] Michael Chan: Awesome.

[00:04:48] Jen Luker: So, and it's been a lot of conversations, not just about knitting, not just about React, but how, you know, knitting and knitting and programming in general actually tie together.

[00:04:59] Michael Chan: I want to talk to that. Before that, has it been mostly first-timers? Have there, have there been a lot of people who have stopped by that are kind of old hat at this? What's the what's the mix been?

[00:05:10] Jen Luker: I've had both.

[00:05:11] Michael Chan: Okay.

[00:05:12] Jen Luker: I've had people go, "I heard this was going to be a thing and I brought my project."

[00:05:16] Michael Chan: Awesome.

[00:05:16] Jen Luker: Like, "Here it is, this is what I'm doing, let's share." And it's a very nerdly thing to do. Um, and I've also had other people that are just like, "You know, I've always kind of wondered about it, wondered, you know, wanted to learn." Uh, I'm like, "Sure, let's let's cover it." And then I've had people say, "I want to do this thing." and I heard this is happening. If I bring all my stuff, will you teach me?

[00:05:38] Michael Chan: Awesome.

[00:05:39] Jen Luker: So, I've even had people come over like with the intention to learn.

[00:05:42] Michael Chan: That's amazing. And I I love that it's so well integrated. Um, I guess just to paint a picture for anyone who's listening to this, there's um there's a gigantic TV kind of in off to the side of like the kind of like foyer area where everyone gathers. There's the big TV, all the the the talks on there. They have the teleprompter person working so you can, kind of engage with the the speaking portion of the conference while you're learning to knit or kind of tune out, I guess, if you want to. And it's, it's super awesome.

[00:06:13] Jen Luker: I've actually heard a couple of people say, now this is how you should experience a conference. I'm sitting at this table from now on.

[00:06:20] Michael Chan: Yeah.

[00:06:21] Jen Luker: Yeah. Cozier chairs.

[00:06:23] Michael Chan: So how did you come up with the idea? How did you propose it? What was the backstory of this?

[00:06:28] Jen Luker: You know, the backstory is actually that I didn't propose it. The backstory is that they were brainstorming ideas for things they could do as part of this conference, and they thought about knitting and they thought about React, and because it's Knitting in React, they thought about me. So they're like, you know, Jen, we're throwing this idea around about having a knitting circle. What do you think?

[00:06:49] Michael Chan: What do I think?

[00:06:51] Jen Luker: What do I think? Yeah. So I'm like, you know, knitting is great, but there's also crocheting and cross stitching. Oh yeah, there's a woman over there who's cross stitching with yarn right now. It's amazing. So, you know, there's cross stitching, there's embroidery, there's drawing. Someone asked if they could bring their drawing. I'm like, paper's a fiber. Bring it along. Bring anything that's portable that you can manage to stuff in your suitcase. Bring your crafts. You know, it's a way to connect on a different level.

[00:07:19] Michael Chan: Yeah.

[00:07:20] Jen Luker: So I started saying, as opposed to a knitting circle, let's do a fiber art circle. One, to play on fiber, and two, to make it a lot more inclusive.

[00:07:30] Michael Chan: Yeah.

[00:07:30] Jen Luker: You know, to think about it differently.

[00:07:32] Michael Chan: Yeah.

[00:07:32] Jen Luker: So with that, I've had a lot of people come up with a whole sort of different things. So it's been really, it's been really fun.

[00:07:39] Michael Chan: That's awesome.

[00:07:40] Jen Luker: And as soon as I said, that's a really great idea, it should be a fiber arts circle instead of a knitting circle, they're like, great, so here's your flight and here's your hotel room.

[00:07:49] Michael Chan: Oh my gosh.

[00:07:50] Jen Luker: Oh, well, I guess I just committed. Yes!

[00:07:54] Michael Chan: Didn't even get a chance to back out. That's the best way to go. That is awesome. I'm so happy. Like, it makes me so happy to see it. We actually just did a Periscope where we kind of like toured everything that you got set up over there. It was super fun.

[00:08:08] Jen Luker: It was.

[00:08:08] Michael Chan: It's it's the funnest corner of the conference right now.

[00:08:11] Jen Luker: Absolutely.

[00:08:12] Michael Chan: So I'm gonna have to go over there and learn something one of these minutes. I just hate the feeling that my brain has when I'm learning something for the first time, especially something physical, but I'm sure you'll make it easy for me.

[00:08:23] Jen Luker: I will do the best that I can. Some people are having a little bit easier time than others.

[00:08:27] Michael Chan: Yes.

[00:08:28] Jen Luker: And it's almost always about persistence. And it doesn't take long before it becomes muscle memory. So it's definitely something you need to stick with for at least 15 minutes before you can genuinely say, I'm willing to keep trying, or I'm so done, I can't even.

[00:08:44] Michael Chan: I might have to, I should probably start today and then uh maybe sleep on it so my mind can like work it out and then, I don't know, see how I do tomorrow.

[00:08:52] Jen Luker: That'd be fun. I have I have people knitting today that are just knitting a little square just to practice and learn some things. Tomorrow we're knitting beanies.

[00:09:00] Michael Chan: Oh, nice. Yeah. Nice, a very practical uh first knitting job.

[00:09:05] Jen Luker: No one likes potholders, but a hat, you can you can use a hat after that. Even a really crappy hat, you can use a hat after that.

[00:09:12] Michael Chan: Yeah, yeah, yeah. So I learned recently, I I just listened to a 99% Invisible episode, and they're doing a series on clothes. The first one was about textiles.

[00:09:24] Jen Luker: Yes.

[00:09:25] Michael Chan: And I learned something that I had not known before, which is some of the first patented software was around textile creation.

[00:09:36] Jen Luker: Yeah.

[00:09:36] Michael Chan: So I imagine that you're you're familiar with this. So what do you know about this?

[00:09:41] Jen Luker: Okay, so it's not even software. It's technically hardware at this point.

[00:09:46] Michael Chan: Okay.

[00:09:47] Jen Luker: Based on the fact that uh the original programs were written for something called Jacquard looms. So when you're weaving yarn into fabric, what you're creating is uh various patterns that create different pictures in that yarn, whether you're making polka dots or you're making something that looks plaid, those are different patterns. And you have to have multiple yarns lifted so that you can put a shuttle underneath it that's carrying yarn in the opposite direction.

[00:10:16] Michael Chan: Okay.

[00:10:17] Jen Luker: So when you do that, You have to actually program that in. So you can either manually, like, put your fingers up underneath each yarn and pick it up and put the shuttle underneath.

[00:10:29] Michael Chan: Okay.

[00:10:29] Jen Luker: Or you can- you put them through a heddle. And the heddle is a, like, a flat board with holes in it so that you can put one thread through a hole and the other thread through, like, a space in between the bits that have holes.

[00:10:46] Michael Chan: Sure. And this is all about, like, exposing that thread.

[00:10:49] Jen Luker: Right. To make a heddle. Right, so when you push down on the heddle, all the ones that are just in the holes end up getting forced down.

[00:10:56] Michael Chan: Okay.

[00:10:56] Jen Luker: Leaving all the other threads up in the original position.

[00:10:59] Michael Chan: Okay.

[00:11:00] Jen Luker: So you can put the shuttle through the yarn in order to create that color on that level.

[00:11:06] Michael Chan: Yeah.

[00:11:06] Jen Luker: And then you lift the heddle up and all the yarns in the holes end up getting pulled higher and the original are down below now. So when you put the heddle or the shuttle through the other direction, It basically is cross-

[00:11:19] Michael Chan: Yes.

[00:11:20] Jen Luker: —counting the layers of yarn, right? So to make a pattern, you could do something as simple again as every other one goes up and every other one goes down, and then you get the standard weave. But you can go ridiculously complicated. You could put in filigrees and horses and knights and whatnot. So you can really get complicated with these. So they created something called cards.

[00:11:46] Michael Chan: Okay.

[00:11:47] Jen Luker: And these cards had the pattern in it. So they would have spaces where a little hook would go through the hole in the card, grab the yarn, and pull it down.

[00:12:01] Michael Chan: Oh, interesting.

[00:12:02] Jen Luker: Okay. And if there was no hole in the card- and these cards were originally made out of wood- the the needle itself couldn't go through the wood. To go grab the thread to pull it down.

[00:12:15] Michael Chan: Okay.

[00:12:16] Jen Luker: So each card would have, and it's 80 characters wide, each card. Oh my gosh. Which is why we have 80 characters wide in our programming. Um, so it's 80 wide, and each one would go through and do this. So you have card after card after card after card. You could have one that's 165,000 cards.

[00:12:38] Michael Chan: Oh my gosh.

[00:12:39] Jen Luker: For a pattern. So these cards all put together and sewn together in this fashion were what program the Jacquard looms to make patterns without having to recreate each one every single time. And when you reach the end, you just loop it back around again.

[00:12:56] Michael Chan: That's so crazy.

[00:12:57] Jen Luker: So that is what made patterns in fabric. So buying and selling this block of cards was literally buying and selling these software programs. You could-

[00:13:08] Michael Chan: Yeah. Well, this is their intellectual property effectively on these cards. Yes,

[00:13:12] Jen Luker: absolutely. They're completely programmed. So these cards would get stolen because this is like an an official pattern that you can- if it became popular, it became like national security to protect these cards so that other places didn't steal them, right? So it was a really big deal. Those cards are exactly what we used when it came to programming computers. When we're talking about punch card programming, they look almost identical to the Jacquard loom cards. It is the same concept. The concept of the needle can go through and grab a yarn, or the transistor actually makes a connection because there's not a piece of paper in between. So the very first programs were for clothes, for fabric.

[00:13:57] Michael Chan: So that's the industry stuff. Tell me a little bit about your personal experience with, with knitting. How did you get into knitting?

[00:14:06] Jen Luker: So I've been crocheting since I was 4.

[00:14:09] Michael Chan: Oh, crocheting, sorry. I'm gonna be very ignorant about the terms.

[00:14:13] Jen Luker: So crocheting is the one with the hook. Knitting is the one with 2 needles that don't have a hook.

[00:14:17] Michael Chan: Okay.

[00:14:18] Jen Luker: All right, I started crocheting when I was 4.

[00:14:20] Michael Chan: Wow.

[00:14:21] Jen Luker: Uh, my aunt taught me. I kind of picked it up and put it down and picked it up and put it down all the way through, and it never really quite stuck. And then I read this article once that said If you wash the floor, a dog's gonna run through and cover it with mud. If you wash your clothes, you're still gonna have to wash the clothes you're currently wearing. If you do the dishes, you're gonna have to eat again, and more dishes are just gonna get dirty. Everything you do that day, you're just gonna have to do again tomorrow. You have nothing to show for what you did today. If you knit or crochet or make one stitch, for that day, you have something to show for it.

[00:15:00] Michael Chan: Interesting.

[00:15:01] Jen Luker: And at that moment, it stopped being about completing a project and it started being about the process.

[00:15:06] Michael Chan: Yeah.

[00:15:07] Jen Luker: About the fact that today I've made my mark.

[00:15:09] Michael Chan: Yeah.

[00:15:10] Jen Luker: So when I started programming, it was shortly after I learned how to knit. Wow. And knitting really stuck with me. It was just like this magical moment of I found my thing. Programming was very much the same way. And it was at that moment when I realized that Knitting is nothing but if-else statements and for loops and do-whiles, which to us seem easy, but to a new programmer seem kind of confusing. Which ones do you use? When would you use it? Why would you use it? Like, how do you use it? Was really simple for me because of the fact that I was- I've been looking at knitting patterns and they've got brackets around things, and then they say anything inside this bracket, you're gonna do 3 times, and then you're gonna move on and do this other bracket portion. 5 times, or I need you to knit every stitch for the entire row. You know, so it's do this while you have a row.

[00:16:01] Michael Chan: So you were learning to program by learning to knit.

[00:16:05] Jen Luker: Yes. In fact, there are programs now that teach people in third world countries that don't have access to computers how to program by teaching them how to knit. Dead serious. I think it's incredible. That's amazing.

[00:16:18] Michael Chan: Yeah.

[00:16:18] Jen Luker: Because the concepts are exactly the same. So essentially knitting is a programming simulator.

[00:16:25] Michael Chan: Again, ignorant of all of this stuff, but I imagine that it's very like algorithmic, right? Like you you you have to do this, repeat this, and it's gonna look like this, and do this, repeat this, and it's gonna work like this. And if you do those together, they kind of compose in this way that looks like the thing that you want to make.

[00:16:41] Jen Luker: Exactly. And there's shaping and there's adjustments and there's fixing and there's debugging. Oh my gosh, is there debugging. There's so many times where I'm like, well, I have the right stitch count, but this looks totally wrong. What did I do? You know, oh look, I lost a stitch and I created a new one somewhere. That's odd.

[00:16:58] Michael Chan: So are you able to back out in the same way when you're when you're knitting? What are the ways that you kind of correct your errors?

[00:17:07] Jen Luker: There's two ways.

[00:17:08] Michael Chan: Okay.

[00:17:08] Jen Luker: One, we call it frogging, and we call it frogging because you pull out your knitting needle and you grab the yarn and you rip it, rip it. Ribbit sounding like a frog.

[00:17:20] Michael Chan: Oh wow, okay.

[00:17:21] Jen Luker: Okay, that's literally why it's called frogging. Um, the other way that you do it is called, um, essentially dropping down. So usually when you make a mistake, it's not on the row that you did, or when you're trying to correct a mistake, it's not on the row you're currently working. Okay, it's on a row down, or 2 or 3 or 4 or 5. So you're going to knit to that place where you've made a mistake. Further down the row, you're gonna drop your stitch and like unpick it all the way down to your mistake, just that one stitch, make your correction, and then pick it up all the way back up and put it back on your needle.

[00:17:56] Michael Chan: Wow.

[00:17:56] Jen Luker: So you can either undo 8 rows or you could just drop down 8 rows on one stitch and fix it and bring it back up. That's something you cannot do on crochet. If you make a mistake on crochet, you have to pull it back.

[00:18:08] Michael Chan: Has that influenced the way that you think about debugging computer programs?

[00:18:14] Jen Luker: It has. Partly because when you're looking at a problem, I really go for that binary model of pick a spot in the middle and see if it's still broken. And if it's still broken, then you know it's in that half. And pick a spot in the middle and see if it's still broken, right? Same thing with my knitting. I'll kind of look at it and go, okay, well, it's wrong. So let's pick a spot in the middle between here and the last row and start counting and see where I messed up. If it's fine, then it's in the first half. You know, it's, it's interesting how those two still overlap. It's- I've used debugging techniques from programming in my knitting, and I've used knitting techniques that I've used to debug there in my programming.

[00:18:55] Michael Chan: So I love when- I love hearing when things overlap in, in such an interesting, interesting way. And we'll link a lot of those things that we talked about. You gave a talk recently. That really just kind of impacted me, and it was about accessibility. And you had a very interesting way of communicating what a disability is that totally reframed it in my mind. And I was hoping that you could talk to that a little bit.

[00:19:23] Jen Luker: So a disability, the way that I always describe it in my talks is this: if you're in a wheelchair, and you drive into a building and you need to get to the 3rd floor, if you're faced with nothing but stairs, you're absolutely disabled. If, however, you ride into that same building and you have an elevator, you can get to the 3rd floor. You can do what you need to take care of. It's not necessarily that it's you that's disabled, it's the technology surrounding you that makes you a disabled person. Yeah. So when you think about it that way, you're disabled when your eyes have been dilated, or if you're playing with a 4-year-old who thinks your arm is awesome and it's your mouse hand. You are limited by these things. And it's not necessarily that you're permanently disabled. There's temporary and circumstantial disabilities. You know, you could be disabled by the fact that you're in a noisy bar and you're trying to watch a video. Based on these things, it means that as long as you're capable of completing the tasks that you need to, what makes you disabled and what makes you not disabled isn't solely within your body. It is also the technology and the infrastructure surrounding you. And if you have that support through that infrastructure and that technology, then you're capable of interacting the same way that everyone else can. And therefore your disability stops being an impairment and starts being another thing that you deal with, like glasses or, you know, hearing aids. They're just made to augment something that we by nature weren't given, you know, the best of to begin with.

[00:21:06] Michael Chan: Yeah. I love this idea. I love the reframing that that you did for this idea because it- I think that there is a tendency no matter what to think about, like, like us versus them. Right? And I I you see that a lot in in our work and the discussions when we talk about accessibility and whether or not we're going to or if it's the right time to start thinking about that in our applications. And it's not about us versus them. It's more of a spectrum. And we can, at various times in our life, fall along that spectrum circumstantially, or like you said, having your eyes dilated, noisy bar. There's so many cases where the technology disables us from doing a certain task.

[00:21:47] Jen Luker: Absolutely.

[00:21:48] Michael Chan: I just love the way that you you reframed that. All right, we had to move locations, uh so if it sounds different, I apologize. Um, that we we were outside and there was a game of 9-square or something like that. Something like that, yeah. Where a beach ball was being hit in the air and everyone was laughing joyously. So, um, anyway, we moved. Hopefully it's a little bit better. It might be a little bit different right here. Um, but we were talking about accessibility and um a different way of of thinking about that and approaching it. And I wanted to ask, um in your experience, what are the tools that people should be using to as a baseline? Maybe we can't do all of it, but like what are some first steps that we can start doing to introduce um care and accessibility into our applications today without having to get sign-off?

[00:22:40] Jen Luker: Without having to get sign-off. So to begin with, you can start looking at the plugins for both Chrome and Firefox uh that uh Deque put out called Axe.

[00:22:50] Michael Chan: Okay.

[00:22:51] Jen Luker: Uh that is a beautiful tool for not only showing you what the problems are in your app, but also for explaining why it's a problem and different ways for fixing it. If you use it as an educational tool, you can really dig in and it will explain those things to you. So it's not just a big number that says all these things are wrong, it's a number that also includes why it's wrong, how it's wrong, what you can do to go from there, which is really nice. Um, that's the first step. Another thing I recommend is a linter. You can run the linter just on your system, you can run it globally, you could definitely get it, you know, plugged in with the rest of your team, which would be fabulous. And essentially what that does is it allows you to test for those things when you're running your app. I usually use Husky to connect it with webhooks so that I can't uh push a commit without running through those tests and being approved.

[00:23:50] Michael Chan: Oh, interesting. So Husky is a tool that allows you to do these things at different steps in the dev process?

[00:23:55] Jen Luker: Yes. It's all hooking into those okay, you know, commit processes.

[00:23:59] Michael Chan: Oh, awesome.

[00:24:00] Jen Luker: So you can do it on push, you could do it on commit, you can do it on, you know, pre-push and production. And there's a lot of different things that you can do.

[00:24:08] Michael Chan: So anyone who's using a linter right now and has a process around linting could add some of these accessibility rules to be checked?

[00:24:17] Jen Luker: Yes. So for the web, one of the primary ones is ESLint plugin JSX-A11y.

[00:24:24] Michael Chan: Okay.

[00:24:24] Jen Luker: And for React Native, There's uh ESLint plugin, uh React Native A11y as well.

[00:24:31] Michael Chan: Awesome. Awesome. Those would be great because I think a lot of people are probably already using linting to be jerks to each other. So, uh, to be able to uh kind of pivot that tool into being kind to their customers, uh, would be a nice way to uh repurpose that tool.

[00:24:53] Jen Luker: I like to just plug in Prettier and then an accessibility linter, and then it fixes everything for me when I need to, and then reminds me of things that I've forgotten along the way.

[00:25:03] Michael Chan: Yeah.

[00:25:04] Jen Luker: So those are the ways to at least get it through you.

[00:25:06] Michael Chan: Okay.

[00:25:06] Jen Luker: I mean, that's something that you can do as a developer without having to even get buy-in from anyone else, is make sure that everything you do gets past that linter and gets checked into axe to see if it complies with all of the various required rules for compliance. So

[00:25:26] Michael Chan: first, install the axe plugins in your browser and just incorporate that into your own personal development experience.

[00:25:34] Jen Luker: Yes.

[00:25:35] Michael Chan: Second, try to get your team on board, the development team, to be able to add these rules, these ESLint rules that check certain, like kind of low-hanging fruit.

[00:25:44] Jen Luker: Right, but you can still install the linter and not include your team and just make sure that the linter runs on your own code too. Oh,

[00:25:50] Michael Chan: interesting. Okay.

[00:25:51] Jen Luker: Just because it doesn't get incorporated into the team doesn't mean you can't run it against your own code anyway.

[00:25:56] Michael Chan: Awesome.

[00:25:56] Jen Luker: So you may be aware of things that may- you can adjust the rules. It's just a linter. So you can say, I want everything to be warnings just so that I know that they're there, and then bump them up very slowly into errors until you get everything fixed. Um, that's all up to you, and it's also up to your team. But you can do that just on your own with your own code before you even get that pushed into PR for other people to see. It's also something that you can include in your PRs.

[00:26:24] Michael Chan: Yeah.

[00:26:25] Jen Luker: Is when they give you something and you see a valid error, you can say, hey, you know, can we change this div into a button, please? Let's stick with semantic HTML.

[00:26:37] Michael Chan: Those are some fighting words at some companies.

[00:26:41] Jen Luker: Yeah. Well, they're ones that shouldn't be.

[00:26:46] Michael Chan: So now, if we want to- we've got those two steps down. If we want to go to that next level and actually start thinking about it from an organizational- start thinking about it from an organizational standpoint, what should- what do you think is the best way to communicate the business value of concerning ourselves with accessibility?

[00:27:08] Jen Luker: So when you're talking about ROI, It gets really messy. People want to know, like, how much am I really going to get back from fixing accessibility bugs, right? If you're looking at the World Trade Organization that says 15% of people are disabled, and you look at the US that says 19% of census owners said that they were disabled, you also have to look at the 98-year-old grandmother from my friend who said, even though I'm deaf and even though I'm blind and even though I really can't get around anymore, I'm not disabled. So these are conservative numbers. Yeah. And this is everyone in the US. So if you look at just your numbers as far as uh interaction goes, uh what if you could up those numbers by 15 to 20%? What if you could get the amount of people buying your product increased by 15 to 20%. Yeah. That's a huge number. If you're a $10 million company, that turns you into a $12 million company.

[00:28:12] Michael Chan: Yeah, there's a lot of opportunity there.

[00:28:14] Jen Luker: Right?

[00:28:14] Michael Chan: Yeah.

[00:28:15] Jen Luker: Because only about 1 in 10 websites are accessible, which means that if you're one of the accessible websites, you're not just increasing your group of people by 15 or 20%, you're taking 15 or 20% of the entire market, which could be bigger than your entire base in general.

[00:28:33] Michael Chan: Yeah.

[00:28:34] Jen Luker: So it could be a huge increase. And not only that, but then you're also looking at everyone else who benefits from those features as well.

[00:28:43] Michael Chan: Yeah.

[00:28:44] Jen Luker: The fascinating thing about accessibility is it kind of returns you back to that semantic HTML functionality and having to write things a little bit more simply and a little bit better flow-wise, which means that everyone gets through your your uh funnel much faster and much easier. And it's something that ends up being left out of a lot of flows when people don't take that into consideration.

[00:29:11] Michael Chan: So I can't remember where it was, but I remember seeing a tweet of sorts where someone was saying like the the goal of all of the ARIA documentation is to encourage you to use the semantic elements and avoid all of this stuff at all costs.

[00:29:25] Jen Luker: Yes, it is. It's actually really complicated when you sit down to read it. And part of it is that I mean, it shouldn't be complicated.

[00:29:33] Michael Chan: Yeah.

[00:29:33] Jen Luker: But if you have to start thinking about all of these use cases, for instance, if you use a div instead of a button, since I brought that up before.

[00:29:42] Michael Chan: This seems to be some of that low-hanging fruit.

[00:29:45] Jen Luker: It is absolutely low-hanging fruit. But did you know that on certain iPhone devices, if you do not change the cursor of a div, it doesn't detect it. As a button, even if you have all the onclicks and everything else.

[00:30:00] Michael Chan: Oh, wow.

[00:30:01] Jen Luker: So you have to take into account everything from- you have to have hover states and onclick states, and you have to have the ability to tab through. So you're looking at tabindexes as well, and you're looking at making sure that um when you're tabbing through, that the highlighting surrounding these buttons are also available. It's so much more complicated to make a div accessible than it is to make a button look like a div. Like, seriously. Just use a button. But then also having to know things like if you don't change the pointer to a cursor, that you can't use it on half of iPhone devices. That's pretty ridiculous. Like, that's a lot you have to keep track of.

[00:30:40] Michael Chan: And something you wouldn't know to test. And so your users are figuring that out for you.

[00:30:44] Jen Luker: Oh yes, and they are not happy. There's that. But then if you turn around and use semantic HTML, as it's meant to be used, then those problems just go away. Like everything becomes easier. Highlighting becomes easier. Someone's saying, you know what, I would like keyboard navigation. Well, good. Everything we have is actually semantic HTML. You can tab through it without adding a single tabindex.

[00:31:09] Michael Chan: Yeah.

[00:31:10] Jen Luker: You know, making sure that the elements are tabbed through in the order in which they're listed on the page means that things aren't jumping around.

[00:31:18] Michael Chan: Yeah.

[00:31:19] Jen Luker: When you're trying to arrange things. So it's important to just test it. Just tab through your page, people. Seriously.

[00:31:26] Michael Chan: Ryan and I were trying to sign into the Wi-Fi here at the hotel. And the form, it was like, he was like, what what the heck is the tab on this? Because he was on the the first name tab and then it went down to like another form that was like the the alternate way to sign in if you had an account or something like that. And then it went to the back button. And then it went to last name.

[00:31:47] Jen Luker: Oh my God.

[00:31:48] Michael Chan: And we realized that it was presumably because they were using floats. And so last name was like floating after the first name. And then- anyway.

[00:31:57] Jen Luker: Put your forms in order and then you can position it after that.

[00:32:01] Michael Chan: Yeah.

[00:32:02] Jen Luker: Oh my goodness.

[00:32:04] Michael Chan: I know it was really bad, but it was it was a good reminder that like you have to go through, you have to use it, you have to try it in the way that you expect someone using it from a keyboard or whatever means that is. Um, you have to actually do that. You can't just assume.

[00:32:20] Jen Luker: Absolutely. How often- I mean, and the answer is not very often, but did you realize that when you turn on a screen reader and you tab over to a button, if you have it say "button value button," then when they tab over to it, it says "button value button," which is great. Except what is this button? Is it a cancel button? Is it a submit button?

[00:32:42] Michael Chan: Yeah.

[00:32:43] Jen Luker: Is it a click here to see this flashy thing that you really don't want button? I don't know. It's a button value button. Be descriptive when you go in there to put that information. It's not just being able to tab through. It's also understanding the context of what it is you're hovering on. So it's things that you don't know unless you go through and test. However- I have issues with disability days where people say, "Okay, we're all gonna go put on the goggles and the gloves and try things out." Yeah. Like, it's really fascinating to have that problem, to stumble through that form that has really bad Z and or, you know, tab indexes. But it's another thing to sit down with those gloves and those goggles and fight through the process.

[00:33:26] Michael Chan: Yeah.

[00:33:26] Jen Luker: Because that's not your everyday.

[00:33:29] Michael Chan: Yeah.

[00:33:30] Jen Luker: That's just today. That puts a lot more pressure on you than it necessarily does on people whose day-to-day is listening to screen readers or typing through the keyboard. The best way to test those is to have someone whose day-to-day is those things come in and use their your website and then listen to where they swear.

[00:33:49] Michael Chan: Well, this has been amazingly educational for me. Is there any closing wisdom that you have for us?

[00:33:57] Jen Luker: When thinking about accessibility and thinking about programming and thinking about the ways that programming has evolved and the ways that accessibility has evolved to something that's been important lately, I want you to keep in mind that changing your frame of mind, changing your perspective makes all the difference. Sometimes it just takes knitters at a React conference to change people's minds about the origins of programming.

[00:34:24] Michael Chan: Well, thank you. I can't tell you how much I value your presence in our community, pushing those conversations, talking about inclusion and accessibility, and just making sure that people feel welcome and have a space that feels comfortable to them. Um, I I absolutely think this conference is so much better for you just being you and making this this fun fabric art- did I get- fiber arts.

[00:34:55] Jen Luker: Fiber arts.

[00:34:56] Michael Chan: I almost- I'm learning. Uh just getting this fiber arts thing um started and just having really great conversations and informing me about some things that I didn't know.

[00:35:07] Jen Luker: Thank you so much. Very sweet words. And I'm glad to have gotten to be here too.

[00:35:12] Michael Chan: I love it. Do you feel good?

[00:35:14] Jen Luker: Yes.

[00:35:14] Michael Chan: Good.

[00:35:15] Jen Luker: I lived. I don't sound like me, but that's okay.

[00:35:20] Michael Chan: I think you sound great.

[00:35:21] Jen Luker: Okay.

[00:35:22] Michael Chan: Thanks for listening to this episode of React Podcast. For notes and links, visit reactpodcast.com/34. And also, Happy New Year! This is our first episode of the show, and I can't tell you how excited I am about the places we'll take it in 2019. To show your support for the show and what we're doing, visit reactpodcast.com/partner. And help us out by choosing a Patreon plan. My big goal for 2019 is to provide episode transcripts. I would love to be able to do that through listener support instead of loading the episode up with a bunch of additional ads. So if you have a couple dollars every month and can help the show out, I think that readers would really enjoy access to this podcast. That's all for this week. Next week we have an amazing episode with Matt. Harry talking about his library, Poser, and animating declaratively in React.