26: Chill Out and Listen with Brad Frost
Brad Frost is the author of Atomic Design, renowned speaker, and consulting designer. Chantastic asks him about his recent experience learning React and the difficulty he found entering the realm of React. They talk about team communication, developing portable solutions, organizational therapy through design, and creating a virtuous cycle between product, design, development, and systems creating. They address the challenges of learning UI design in an industry being consumed by JavaScript, the importance of listening and the value of finding nuance in communication.
Featuring
Links
- Atomic Design — A methodology for creating design systems.
- Pattern Lab — Build thoughtful, pattern-driven user interfaces using atomic design principles.
- Creative exhaust, the power of being open by default: Brad Frost at TEDxGrandviewAve
- my struggle to learn react — Brad's thoughts on the difficulty of learning React
- i dunno — Brad's thoughts on getting impaled for detailing his struggle to learn React
- dumb react — A collection of dumb React components that are used to stitch together a website screen
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. Communication is the most important thing that we do. Communication with our customers, communication with our team, the rest of our company, and those guiding the decisions from the top. But unfortunately, we don't take a lot of time to listen. And our work, solutions, and team morale suffer for it. And that suffering continues to spill over into our communities. Today I'm joined by Brad Frost, who's made a career of helping organizations communicate better toward a common goal. Now, he uses design systems to do that. You may know him by his popular methodology, Atomic Design, but at its core, it's all about communication, listening, in serving customers. I'm so excited to share this conversation with you. I hope that it's just as impactful to you and your teams as it's been for me. We'll start in just a second, but first, a word from our sponsor. I'm so excited to be here. This episode of React Podcast is brought to you by React Training. They provide in-person, hands-on training for development teams from React community leaders and experts. For more information, visit reacttraining.com. Awesome. Brad Frost, thank you so much for joining us on the show today. I am so excited to have you. For those who aren't familiar with you or your work. Could you give us an introduction to you and the things that you do?
[00:01:53] Brad Frost: Sure, yeah. Well, thank you so much for for having me on this podcast. It's a more developer-centric uh podcast than than maybe what I'm I'm used to. So I'm Brad Frost, and I I call myself a a front-end designer. Uh so I write UI code, so uh HTML, CSS, and and JavaScript. Um but At this stage in the game, I feel like front-end developer is too broad a term just because it includes just so, so, so much stuff. So, so I sort of um deliberately don't call myself a developer. I come from the agency world. I used to work in an agency called uh R/GA in New York City. And um uh I was sort of lumped in as as a a web developer with, you know, I sat with a bunch of native people and back-end developers and started getting requests like, hey, Brad, like Like, you know, we need you to, to write this middleware for us or sort of, you know, construct this API or like normalize this database. I'm like, uh, like I've never, never had a, a, a computer science class in my life. And, uh, this is awkward, but yeah. So I, I sort of come from the, we'll say like the, you know, sort of Zeldman, like web standards sort of school, you know, sort of very, um, yeah, sort of solid JavaScript, you know, using JavaScript primarily to manipulate the DOM. And and sort of stuff like that, not not too much uh beyond that. But anyway, so yeah, so I I work on my own now. So I run my own uh web design shop uh slash consultancy. So a lot of what I deal with now is we will— uh uh of course, like the last 6 years has been sort of focused almost exclusively on sort of building sort of pattern libraries and design systems now. Oh, nice. And sort of like helping various uh capacities with that. So sometimes we'll actually do the work, like sort of creating the, you know, the the sort of front-end uh UI, you know, sort of reusable components in the pilot projects that uh those components help build. Uh and then other times we'll sort of help coach teams that are, you know, sort of off to the races and other teams that need help sort of selling it through and stuff. So it's like sort of a, we'll say a spectrum sort of going in there to sort of help educate and sort of guide a little bit, but then uh do still do my fair share of production level um sort sort of front-end work for uh for clients as well. But a lot of it's in the in the spirit of sort of uh teaching people how to fish, right? So it's like, we'll we'll often sort of give them like, here's this kit, here's all this stuff, but the intention is always to sort of like hand it off to them and to sort of have them sort of take it and run with it.
[00:04:42] Michael Chan: One thing I'm immediately curious about is you you probably have big clients and small clients. Have you noticed that there are similar problems across the board, or do big companies have big company problems and small companies have small company problems?
[00:04:56] Brad Frost: Yeah, scale definitely impacts things for sure. Whenever you have, you know, 50 teams distributed across the globe, it's a little different than a startup who's, you know, they're all sort of sitting in the same office building. But largely, you know, the problems are are the same. And I I I love that about my job is I get to duck my head into a bunch of different uh teams in a bunch of different industries, and they'll say, oh, Brad, you just don't understand, you know, the uh sort of the financial industry is is very weird and complicated and here's why. And then I sort of duck into, you know, oh, you just don't understand the the insurance uh sort of, you know, industry is very weird and complicated and here's why. And oh, you just don't understand this e-commerce and or the startup life. Everyone feels like a special snowflake. They're all saying the exact same thing. Uh and and that's great. And I love I love that perspective just because it helps That's, you know, give me a lot of sort of ammunition for it's like, oh, it seems like, you know, these folks across these different industries are all sort of struggling with the same stuff. So maybe I want to sort of like dive into that a little bit more. So I love that.
[00:06:01] Michael Chan: Yeah. So I know you love working with teams. What are some of the uh team characteristics that seem consistent or like team problems that people have in doing this type of design and development work?
[00:06:14] Brad Frost: Yeah.
[00:06:15] Michael Chan: Across the range.
[00:06:16] Brad Frost: Yeah. There's uh plenty. Uh you know, to to design. And developer collaboration is obviously a huge one, and that's something that uh uh I do uh a fair amount of work with. And I'm fortunate to to collaborate uh very often with uh Dan Mall, who's my sort of like design counterpart, and Josh Clark, who's my sort of, say, product design uh counterpart. So we tend to sort of work as a as a little bit of a collective, um sort of, you know, doing a lot of sort of coaching work and sort of with me like sort of representing the the tech side of things or the dev side of things, and then sort of Dan and Josh sort of like handling that other side of things. But I'd say that that's that tends to be a really big one, uh is is sort of designer-developer collaboration. But then also, um uh I'd say different dev teams, uh different, you know, especially like as, again, organizations get bigger, you have different product teams operating in different technology stacks. And so it's like, how do you create uh sort of a consistent uh sort of front-end experience or UI experience uh when you know the blog is powered by WordPress and the you know logged-in state is powered by React and the you know the the sort of logged-out state is in Drupal or whatever. And it's it's that's one of the things that I I come into quite a bit. Because again, your your users don't care about that. They don't care that- Right. Oh, you're using Vue or you're using React or you're using Angular. Your users don't care that this dev team is in India and this dev team is in Romania and this one's in San Francisco, it doesn't matter. Uh, users see you as a you as an organization, as a sort of singular entity and expect a consistent uh experience. And so from a tech standpoint, it becomes very interesting uh to basically create a design system, this sort of like front-end sort of like UI sort of language uh that's able to travel to all of these different lang languages and templating engines and all of that stuff. So. Yeah.
[00:08:20] Michael Chan: I know that one of the the big things in React right now is CSS-in-JS, and everyone's super in love with their kind of pet project that they think is the best thing. But a lot of times, uh people who are are in those situations where they have different dev teams, sometimes separated by continents and um totally different stacks, it's hard to kind of jump onto that because um they they have two totally disparate stacks and sharing those abstractions becomes like almost impossible. Whereas if you did it with CSS, um, it could have just worked out of the box.
[00:08:57] Brad Frost: Yeah. And and that's, I think, you know, sort of one of the things that I tend to get frustrated with about conversations about that is that a lot of times it's like, and and and it's understandable whenever you're looking at a developer who's working on a singular product or whatever, it's like, it's very easy to be like, we're gonna do what's right for our project. And and of course that makes a lot of sense, but like increasingly my time is sort of spent sort of hovering in the clouds, like the the bird's eye view perspective. Yeah. And whenever you see all of these product silos with a bunch of smart people in those silos basically doing what's best, and you end up with, you know, different flavors of the same thing. And then and then yeah, so it's when it comes to the sort of things like CSS-in-JS, it's like, okay, well, like how do you get that sort of visual language to travel to WordPress, Drupal, React, and whatever? And it's like, the answer is you sort of can't easily. And meanwhile, you know, CSS file is like, chuck it into a CDN and like link it up in the head of your document and like job's done. And I I know that that's like unpopular, but like I do get a little frustrated that, you know, a lot of devs like come at me and we'll say- I've like made passing jokes and then people, the world explodes and everyone sort of like jumps down my throat and it's like, it's like, okay, like chill out. It's like, I'm sure that it might make sense in the, in the context of a product, but again, like increasingly my time, at least my perspective is that of solving organizational problems and that tends to sort of touch- I don't, I honestly don't know If I've worked with any uh uh client in the last even 5 years, even ones that are like sort of simple blogs that just have one digital property, it's like we're we're talking, you know, you talk native, you could talk like again, all these different frameworks, you could talk all these different sort of tech stacks. And like at the end of the day, that's what we're dealing with is you have a bunch of digital properties that all need UI. And how do you do that sanely?
[00:11:05] Michael Chan: Yeah, I know I felt that personally with a lot of our, um, kind of insurance or healthcare or financial software. You can feel when you have been spit out to some part of the system that's been like acquired and not lovingly brought into the fold.
[00:11:19] Brad Frost: Yeah, no, that's a big deal. And, and again, like the, the, it's jarring from a, from a user perspective. And then, but then suddenly it's like, especially I love going to a date picker just because that's like one of the, it's the, it's the thing where it's like, oh, this is really hard. And as a developer, you just sort of Google date picker widget and then you like download one that you're like, I guess this looks good. And then you have 4 different product teams picking 4 different date pickers. Yeah. And your users might end up sort of touching, you know, those different products at various points, like throughout their their day or their or their journey or whatever. And every time they're confronted with a new pattern, that that's extra cognition that they have to unload. That's so that that slows them down and and doesn't get them on with their day, and that of course, you know, increases the time it takes to convert. And so whatever metric you're uh sort of, you know, listening to, whether that's, you know, if you're an e-commerce site, like how quickly can they get through checkout and stuff like that, like that stuff matters. And so having that sort of consistent UI from the beginning of of the experience to the end helps sort of reduce that cognition uh and gets people out the door faster and and, you know, completes their their sort of uh uh yeah, whatever you're trying to get them to complete a lot faster.
[00:12:38] Michael Chan: That's awesome. So it sounds like a lot of what you do is organizational therapy around design.
[00:12:43] Brad Frost: Yeah. Yeah, no, that's it's it's a big thing. And and again, it's you know you're you you have to sort of take it all in holistically. So we listen to individual developers on individual uh uh teams, you know, junior level developers, senior level developers, but then also, yeah, tech directors and sort of like You know, VPs and stuff, but then also coming from the design side, it's like, okay, I'm, we'll, at the beginning of our projects, we'll interview, you know, UX designers, product owners, project managers, visual designers, front-end developers, back-end developers to just sort of get a sense of, it's like, what, what is sort of currently, like, what do you like about sort of how things are currently set up? Um, you know, but then what are sort of those frustrations and How can we construct a system that helps alleviate those frustrations and sort of gets you to a better place? And and it's really wild to just you know hear all of those different perspectives. And it is therapy. It absolutely is because we're like asking them to to like tell us what's wrong. Like what what do you not like about your colleagues? Or what do you not like about your tech stack? Or what do you not like? And it's like, oh, let me tell you. You know, you just get all these great stories. But that's, that's, you know, of course, just good design work is is basically doing the the right amount of research before just going, oh yeah, yeah, you need a pattern library and we're just gonna like spin up, you know, React and start like constructing some some cards in here. Here you go. And you have no idea if that's actually going to sort of like address the the organizational issues that these these companies are after.
[00:14:23] Michael Chan: Interesting. So one thing that I find interesting about your approach is that you actually do interview people from the whole organizational chart. You, you have people who are presidents and VPs down to people who are just implementing code. How has that been? Do you feel like once people have an opportunity to express their opinion, they're more ready to embrace the direction of a company, or what's that transition look like?
[00:14:47] Brad Frost: Yeah, so, so basically at the beginning of our process, we will do all of this research, do all these interviews, which are essentially like user interviews because they're ultimately going to be the users of the design system, uh, and sort of the stakeholders of the design system. So sort of like stakeholder/user interviews. And then we'll sort of use our kickoff uh sort of sort of workshop as an opportunity to sort of say like, here's the themes that we heard in this in this research. Like here's like what the the deaf people are sort of struggling with, or here's what the designers are struggling with. And like here's what we're trying to accomplish sort of broadly. And we'll there'll tend to be like between like sort of 12 and and 20 sort of general themes that we hear pop up again and again uh through our research. And then we'll sort of use our kickoff workshop as an opportunity to to quite literally like sort of vote on which of those sort of themes or outcomes are most important. And what's cool is that we have so all those people in the room, uh so again, designers, developers, product owners, you know, sort of senior level people all in the room and it's very democratic process. And what you end up with is this nice sort of heat map of like sort of, okay, We're making a design system and like looking at this sort of board, we just have like big tear sheets and have everybody vote with Post-it notes. It's like, out of all the things that this design system could do or could address, here are the things it really has to do well. That's me. Yeah. And and so again, it's like, this is like, I think a lot of devs get, dare I say, a bit cocky where it's like, yeah, yeah, yeah, component-driven architecture, blah, blah, blah. I could do this all day, every day. It's like, and that's That's the truth. But it's like, it's in in designers same way. It's like, okay, yeah, I got it. The components, okay, sure. Like we're we're making this. It's like, what what's so hard about that? The hard part is of course, you know, sort of connecting the the specific technologies and tools and um processes to what the organization is actually like struggling with and what they need to accomplish.
[00:16:54] Michael Chan: Yeah, interesting. So do you find at the end of those that you can actually help kind of heal the core or mission of the company in a way, or I guess like bring dev back into alignment with that.
[00:17:06] Brad Frost: Yeah, I, I, I think so. Those are good outcomes and we've cer- we've certainly had those. We, we've had things where it's like, you know, it's just a total incomplete cluster and they have like no thing that anybody, no sense of standards or, or sort of unity or whatever. And so people, you know, go out and reach for Bootstrap or Material Design or whatever because it's like, oh, that's That's around, it's like a life raft and they can like sort of do their work because it's it's something, it's better than nothing. Uh so so in our successful projects, yeah, we have this sense of like we bring in, you know, the designers are helping sort of bake the brand into the the design system and then the developers, it's it's easy easy enough to use where uh like sort of our rallying cry often is, you know, especially with these sort of like bootstrap organizations is like our system has to be better than Bootstrap, right? So it had we we need to make it easy for these developers to come to the system, grab what they need, and go. Because otherwise, they're going to continue to reach for Bootstrap if it if it takes a lot if it takes a lot longer. So so yeah, so though in good outcomes, um yeah, we have this sense of like, yeah, baking the the organizational sort of goals in with solid design work, in with sort of solid tech architecture, and sort of like bundling that all up as as a nice package. And then that- package, right, that that sort of design system is software that helps build other products. So then whenever those product teams start coming to the system, uh they're able to sort of get all of that baked-in goodness for free, which is great, just by way of using the system. So so that's the that's the spirit of of why so many organizations are sort of embarking on these journeys. Is is like if you do it right, you get all this great stuff, great performance, you know, best practices, accessibility best practices, Like localization best practices, responsive design best practices, brand best practices, like you name it, just sort of like bake it all right into that system. And then just like teams can like drop some stuff in, build screens like faster than ever, and they're just like rock solid across the board. It's great.
[00:19:16] Michael Chan: So I want to talk a little bit about the tools that you've developed to help these organizations, and namely uh the Atomic Design Strategy and also um Pattern Lab.
[00:19:28] Brad Frost: Yeah, yeah, yeah. So, so, uh, atomic design is a methodology, is sort of say strategy. Sure, like, say, it's a methodology. It's a mental model more than anything. And it's basically, um, it's basically sort of just recognizing that UIs are, uh, can be sort of exploded into atomic elements, right? Just how like the, the natural world has, you know, sort of, uh, uh you know, sort of is all created from the same finite set of atomic elements—hydrogen, carbon, oxygen, you get it. It
[00:20:05] Michael Chan: has a very like biological theme to it.
[00:20:07] Brad Frost: Yeah, yeah, yeah. So biochemistry. And but it's like, you know, sort of like you have these building blocks, they're not terribly useful on their own, but then they start combining and start like sort of uh sort of combining further to to create sort of increasingly sort of uh you know sort of sophisticated and and also sort of very tangible uh sort of things. And that those sort of, by way of that process, sort of uh these these sort of atomic elements create all the complexity in our world, in our universe. And so as it happens, the world of of UIs is this is the same way, right? So it's like if you were to explode Facebook or Microsoft Word or Google Docs or Slack or whatever, you're going to be left with this finite set of atomic elements, things like form, you know, like labels. Yes. And inputs and buttons and images and headings and things like that. And right, so those are like the the raw materials of our of our UIs, but they're not terribly useful on their own, right? So it's like it's whenever those things start to sort of like come together into what I call like molecules or sort of like relatively simple components. So it's like, you know, you have a label atom, an input atom, and a button atom that all sort of work together as a group. And then this becomes this sort of like single field. Form uh component, right? So you could use that for things like site search or like sign up for our newsletter or something like that, right? So it's like- Sure. Here's this nice little encapsulated piece of of UI. And then that sort of, from there you can sort of plug that into a a bigger, more complex component that I call an organism. So it's like the search form is often found in the header, right? So the header organism can be comprised of a logo atom and a primary navigation molecule and a search form molecule. And all of those things sort of collectively form its own sort of, you know, this discrete chunk of UI that sort of operates as a unit, right? And then sort of from there, of course, then you can sort of like plug those organisms into what I call template, which is uh basically you're applying these components to a page layout and sort of it looks like a a page. Uh and then sort of the the the fifth and sort of final stage of it, and most complete, most concrete stage is the page stage, which is where you're actually sort of pouring in real uh content and scenarios into your UI. So it's like if you have your like homepage template with like a big sort of hero unit and some cards and some other stuff, at the page level you're sort of like actually piping in like a real representative hero graphic and headline and link into that hero unit, as well as you know sort of the the same deal with like those cards and stuff. So, so yeah. So
[00:22:54] Michael Chan: the page level would be where a where a user would actually see something. This is where the user's experience happens.
[00:23:00] Brad Frost: That that's exactly right. So it's like yeah, that's what they see whenever they go to, you know, your your dashboard or whatever you're creating. And and sort of the cool thing is is that that sort of like separation between sort of like template and page allows teams to uh sort of play out a bunch of different scenarios. Right. So it's like, you know, if okay, let's work with like a dashboard thing. A user logs in, they're taken to a dashboard, let's say for like a like a bank or something. It's like, well, what do you typically see? You see like recent transactions, you see maybe some like charts and graphs of like your activity or something like that, available balance and all that. Obviously that data, those those those props, if you will, are going to change based on like if you're a customer of 15 years versus someone who's just signing in for the very first time. And so as a design team, as a development team, you have to sort of like accommodate all those different scenarios, right? Yeah. So so this is where like sort of that designing with dynamic data, you're sort of like baking in like real product scenarios into this methodology, and those scenarios are going to help uh uh influence the architecture of the underlying system. And this is sort of like This is the difference between sort of like the traditional model of of like web design where it's like, okay, we're going to sort of create a you know a dashboard, you know, sketch template or whatever. And then we're gonna throw that over to the developers and they're gonna sort of like mark it up and like code it in and then sort of like wire it up to our to our system. And it's only like once you've done all this work that you you then sort of like come into, oh wow, like everybody's name in the comp is like Sarah Smith and Sarah doesn't have an H. So it fits quite nicely onto one line, but then like we actually pour real data inside of it and then it's like the whole thing just explodes. So- Falls apart. So it's like, so atomic design is not just like, oh yeah, like we're just creating like a bunch of atoms and and a bunch of sort of like lower level components. What we're doing is we're sort of creating a a thread that allows us to sort of traverse between like, you know, the most atomic level button sort of design and and build, but then also sort of see how that button travels through that hierarchy hierarchy to build a specific screen of a specific product. So so so it sort of like creates this virtual cycle, a virtuous cycle between product, product design and development, and system design and development.
[00:25:35] Michael Chan: So when you're working with teams, do you kind of start with what they already have and take a catalog of what's there and then kind of kind of start to pull your atoms from that? Or do you build up a new system from scratch from atoms and then try to apply it to the pages.
[00:25:49] Brad Frost: Yeah, so, so it's, it's really important to, to sort of stress that it's like, it's not a linear process. It's like, we're not like starting at, at the atom level and then eventually getting to pages. Um, sort of, sort of the opposite is true, if anything. But it's, it's really about sort of designing the whole and the parts of the whole at the exact same time. And, and this is, this is, I think, where, again, I, I think I've seen Uh, in, in my consultancy work, like a lot of teams sort of get tripped up. They'll either sort of produce full screens and then sort of after the fact, and I'll, I'll sort of switch into React mode a little bit. It's like, oh, we'll like build our application screens and then sort of like after the fact, sort of go into like Storybook and like sort of, you know, sort of massage these components like into place after the fact. Or we're just gonna like start like, yeah, we'll create our, our sort of components in Storybook or whatever. And then like sort of after the fact, then we're going to like sort of start like building things out of them. And I think that, you know, sort of what a solid workflow looks like in the in the the tool that I help uh create called called Pattern Lab is a tool that allows you to, under one roof, under one sort of like dev environment roof, to sort of paint those like full UI screens as well as sort of like all of the and visualize like all of the underlying components and be able to sort of traverse between them quite easily. And this is, this is, I think, like, again, like a, a thing that is becoming, as I've seen the, the not so successful projects, uh, sort of over the last 2 years, for sure. I've seen a lot of teams like, yeah, starting like, oh, we built this like whole suite of, of React components or whatever. And then it's like, yeah, and then they just sort of like die out or it's like, oh, well we're, we're plugging 'em in and we're finding like they're not doing what we need them to do and, and whatever. And so like people are abandoning the system and just sort of going back. Back to the way they were doing things. And so it's like, it's so incredibly important to sort of put that product design and development work uh right there into the- the the the system work and the product work are essentially like one and the same. You're like building the system and building the product at the same time.
[00:28:01] Michael Chan: Yeah, I love this idea that like they kind of feed each other and you can't really develop one without information from the other side.
[00:28:08] Brad Frost: That's right. That's right. That's right. Yeah.
[00:28:09] Michael Chan: One of my favorite things about the way that you work is that you work out in the open. And you've been very open about like your process and the things that you are learning as you go along. You do projects out in the open. And you have some really great talks, which I'll I'll I'll link to. Um, but one thing recently as it pertains to this podcast and and the React world is you have been writing a lot about uh your journey into learning React, um, and coming to that from the design side. Can you tell me a little bit about your, uh, your journey so far?
[00:28:43] Brad Frost: Yeah, would, would love to. And I think as sort of all born from, it's really hard to understand like when to sort of bite down on a certain technology or, or, you know, framework or whatever. It's like, or it's like, I guess I'm gonna do this now. You know, it's like, so it's like SaaS and LESS and like all that stuff existed for a while, and then eventually it's like, I guess this has like enough, you know, sort of movement where, you know, I better get my head out of the sand and and do it. And now that I do, you know, so much consultancy work, um, you know, where it's like I'm not the one in the driver's seat sort of choosing what tech to, to, you know, sort of power projects, it's just like increasingly everybody is sort of biting down on React, uh, including it's just like Like publishers who are like the, the, the, we'll say the stereotypical example of like a web of documents and stuff, you know, it's like, it's like, why are, why exactly are you choosing that? And, and, and that is something that I ask my clients is, is like, so like, tell me about like why you chose React. And I think that this is, is something worth like sort of picking at. And it's not to say that React isn't without its merits, but like, I think what fascinates me is that the answers that I get are like- it's, it's not due to any sort of like thorough technical discovery sort of phase or anything like that, or specifically like what we're, what we're after. It's like there is a lot of just sort of like zeitgeist is, is maybe the best way to say it, like around stuff. It's like just like, yeah, this- you're just sort of like holding your finger up to the wind or like Twitter feed or whatever, and it's like, oh man, people seem to really be talking about this. I think we need to maybe like sort of take a look at it. And I get it. That's, it's human nature. It's, you know, it's, it's a very important sort of powerful thing. Uh, and I'm not, again, I'm not saying that like React is, is bad or insufficient or whatever. It's just, I think it's fascinating that like so many teams that I talk to that have bit down hard on React are doing so just because of the, the zeitgeist. And it's like, well, I guess this is like what people, people do now. And, and again, I just like wanna be like super clear that It's like, it's not saying like anything disparaging about the technology itself and stuff, which again, it has plenty going for it. But it's just like, I think it's it's fascinating and more from like a a psychological or or sort of like cultural standpoint than than from a uh a tech standpoint.
[00:31:14] Michael Chan: Well, as someone who kind of sits above the organization and kind of evaluates technology and design decisions from the perspective of how are we serving the users, Because I imagine that it can be kind of hard to see people making this decision without having a really good answer to why.
[00:31:31] Brad Frost: Yeah. I'll tell you a couple stories. Um, and and this sort of helps like paint the picture. Actually, the one publisher was like the the most- they they successfully implemented React. They you know did it all right, did server side and like you know a whole bunch of really great stuff. Had a really smart team. They were all going. The other teams that were really enamored with it, um, the the one company was a healthcare company, which is like a whole slew of just really beastly legacy Java-powered just sort of grossness. And it's like, that's you know like 98% of their codebase. And they had this like sort of 2% where it's like, okay, like this like thing off to the side and like people were really itching to play with React. And um, you know, we're we're in there and we're like, okay, you know, we're creating a design system for, you know, your your sort of meat and potatoes products, right? Like this is this is important. And so we need to like get this right. And you know, uh, we are in there and we're sort of, you know, consulting with them and helping them make a lot of these decisions. And and they're like, so, you know, we're gonna build the the the system for React. And and we're like, okay, you know, like that. I think that that makes sense to have that like as like a a flavor of the design system. And I I wrote a post about sort of maintaining uh uh uh sort of technology agnostic design systems. So it's like at the end of the day, it's like HTML, CSS, and and JS is what sort of the user consumes in their browser. So it's like that's the sort of canonical thing. But then you could sort of have your React flavor and Angular flavor and Java flavor and like whatever else that that you need. That's fine. Um, but this team's like, yeah, yeah, yeah. But like, we are going to build this like exclusively in React. And we're like, cool. 98% of your code base is not like compatible with that without like doing a Herculean effort to totally restructure that. And they're like, yep. Yeah. Hear what you're saying. That all makes sense. But like, we're doing React. And it's like, and that's, and that's where it's like, wow. Like, like the zeitgeist of, you know, like that sort of, and I get it. Like, you don't wanna like. It's like seeing like a big Gordian knot. It's like, I don't want to touch that. I'd rather just sort of go over here and like play with like modern tech. I get that. Um, and then another organization, same deal. It's like they, they're like, we're doing the design system, we're building it all in React. A bunch of their other uh software applications were not built in that. Some of them were though. And so we're like, okay, like that makes more sense than the the 98% that they had like a couple. Flagship products that were were using it already. So it's like, okay, that makes sense. And they just started like hiring and like all of this stuff and then just like found them themselves, as it turns out, they were just like immature when it came to their sort of React chops and like had like a bunch of people all of a sudden needed to be onboarded and it just sort of like slowed them down. And and eventually they they ended up sort of going in a different direction. But I just think it's fascinating that it's like that that zeitgeist or that like wanting to sort of like be on board with something that's that's current and modern and all of that is is I think just like a very human thing. Like you don't want to be hanging out in like, you know, 2004 when everyone else is playing around in in in the future, you know. So so it's fascinating. I I I think it's interesting. But like all of those experiences where it's like just team after team uh you know sort of biting down hard on it. And I was like, okay, like you know the the time has come where I like I can no longer just sort of like wave my hands. Like I really need to sort of roll my sleeves up and and and learn this thing. And so I I did just a a whole bunch of things, you know, like taking courses and um you know playing around with it. I even like um hired uh a friend to sort of like build out a a side project app that uh that I I was working on for a few years. Nice. Um, in React so that I could sort of like learn like how it all ticks and stuff and like, you know, like read books and, and, you know, do, did tutorials and all of that stuff. And just like, I just like kept, kept like stumbling over stuff and it just like didn't feel, it didn't resonate with me. Um, and to a degree it still, still doesn't resonate with me. It doesn't feel, it doesn't feel natural to the other 12 years of, of front-end experience that I, that I had. It sort of felt like I was, I was just like swimming in new waters. And, and, um, yeah, it got, got frustrated by that fact. And again, like, I'd read articles and like, when it comes to sort of like talking about atomic design and stuff and like this whole notion of sort of like, oh yeah, everything's a component and they're all nested inside of each other conceptually. Makes perfect sense. And I get all of that. There's a clear separation between sort of structure and data, or at least in theory. Um, and and like, so it's like all that stuff that I've been talking about for years, like just sort of like totally jived with me. It should have been like a sort of total hand-in-glove sort of thing. But but that just like, for whatever reason, just would just wasn't the case.
[00:36:46] Michael Chan: I imagine that there was a time where people were matching atomic design to React and writing about that. That like before you had started making that connection yourself.
[00:36:55] Brad Frost: Yeah, yeah, for sure. And you know, people thankfully are sort of like generous and or at least will like tag me and stuff. So it's like I've done my fair share of, yeah, like reading about like, you know, the Atomic Design and React and I'm like, oh, that's pretty cool. Like that's, that's, you know, again, totally makes sense conceptually, but like whenever it came time to like start just authoring a bunch of stuff in it, I was like, ugh, like just
[00:37:19] Michael Chan: So what is the biggest difference then? I'm thinking- so if you have HTML, CSS, and uh JavaScript, typically you would use some type of like templating language for the actual component part of it in HTML, right?
[00:37:34] Brad Frost: Mm-hmm.
[00:37:35] Michael Chan: And that'd be like Mustache or Handlebars or something?
[00:37:38] Brad Frost: Yeah, that's right. So yeah, I spent, you know, the last 6 years writing in in Mustache essentially, um, you know, or Mustache-like syntax. Of course, things like Liquid and sort of other templating engines, there's Twig and like there's a bunch out there. And, and again, it just sort of felt, that felt natural. It's like, all right, here's regular old HTML. Yeah. And then like, here's like the bits and pieces that are dynamic and I'll sort of like carve out spaces for that stuff. And then like, you know, somewhere I will sort of populate that, you know, dynamic value with a thing and, or switch that from true to false or change that from this to that. And so, and it's like, makes perfect sense. And like there's still sort of like this, like sort of clear, like separation of concerns. And I think maybe, you know, one of my things with, with authoring sort of the JSX stuff was like, just like, I mean, and it seems like, and correct me if I'm wrong, but it seems like I, I saw some like recent news where it's like, you could actually just like write like class equals now. Yeah. Right. So it's like, that's a big deal and stuff. And it's like, that's like a minor thing, but it's, I just felt like there's just so much stuff. It's like, you know, uh, like arrow arrow functions and like just sort of the construction of like the patterns. And it's all just like this like JavaScript sort of blob that's like, it's like, oh, and you could do it this way or you could do it this way. And oh, like you should be like doing it this way. And, and there's like double curly brackets and single curly brackets and some with like a, a dollar sign in front of it. I'm like, ah, I'm just like, can I get like my little mustache things back where I just sort of like to do the like doubles like all the time or whatever. And, and like, as, as I sort of started learning, it's like, yeah, like a lot of that sort of ES6 stuff is like sort of baked in or at least travels with React quite often. So it's like a lot of the, the sort of like literature and, and, and examples that I'm seeing, it's like, it's tough for me to unpack. It's like, I'm struggling with this because I don't know ES6 as much, or I'm struggling with this is because this is like a, a React, uh, sort of, uh, convention or something like that. Right. That I'm just not getting my head around, but. In any case, like, it's coming, coming at it from both angles, which is like, I'm not strong enough in ES6 and I'm not strong enough in React conventions. Uh, so that stuff like definitely, definitely ended up, uh, sort of biting me. And then it just, again, just sort of like finding- I'd say that one of the big things that really like got into in the way too is like a lot of the, the examples and demos and a lot of stuff that I saw were, were sort of You know, they'd be sort of focused around a specific application or whatever, which again makes sense. You're a smart developer working on a single product. It's like, oh yeah, like I'm just gonna sort of like make this thing called, you know, product card or whatever. Because I'm working on, you know, this, this thing that has products or whatever. But it's like, you know, increasingly again, that's like, I'm sort of like the bird's eye view where it's like, okay, yeah, you have this thing that has products, but then you have these other things that have events. Events and you have these other things and they actually should be sort of making use of those same sort of components. So it became like really tough for me to like sort of listen to courses or like go through courses or like look at tutorials and they're like, and here's where you add your like business logic or or your logic where you like calculate the final price and that's like inside of like the card component or something. I'm like, that just, that doesn't seem right.
[00:41:07] Michael Chan: That doesn't seem right.
[00:41:08] Brad Frost: Yeah. So thankfully there's, there's a good post. Uh, this is Dan Abramov. Is that, am I pronouncing his, his last name correctly?
[00:41:16] Michael Chan: Yeah, I think we all pronounce it wrong. Yeah.
[00:41:18] Brad Frost: Sorry, Dan. Uh, but he's, he's just been super helpful just in, in general, just like sort of like reaching out to me directly, but also like he's, he's had, you know, good articles that like finally like made me just breathe a little easier. This basically talking about sort of like presentational versus container components or smart components versus dumb components. And I'm like, yeah. Give me those dumb components. Like that's, that's what I do all day and every day. Yeah. It's like, get, get the price calculation and this like other sort of conditional logic or business logic, like away from my stupid component, right? From, from my dumb button. And I actually ended up making a project called Dumb React. Sort of specifically to do this. I'm like, cause every single tutorial I found was like, It's just like, yeah, and we're gonna like do this and wire it up to Firebase. And like, and I'm like, I just like, show me how to build a dumb homepage that has no logic, that has no whatever. It's just a handful of components that all sort of exist together displaying a page. And and so that's sort of like, that's what I ended up doing is just sort of like going down that road in order to sort of like hopefully like get the mechanics down, like using React's conventions and stuff, but then also be like, okay, like I'm still in familiar territory where I'm not, I'm not doing a bunch of crazy functions and calculations and stuff like that. And I get that a good many engineer, like they get turned on by that stuff and like that's the stuff that they enjoy doing. And the UI part, the rendering of the, the, the HTML on the page and the CSS and the style and stuff is like sort of almost an afterthought. And so like that's- Right. I feel like that's sort of like another big sort of like tension is it's like there's a lot of value in constructing HTML and CSS, and to do that stuff well is very, very difficult to do. And I do think that like as the role of front-end developer starts to morph into your JavaScript developer, I, I fear that, that, that's sort of like, um, uh, that, that emphasis or that, that willingness to accept that, yeah, like HTML and CSS are actually- you know, legit languages to sort of like focus on and, and sort of, you know, uh, uh, sort of specialize in.
[00:43:36] Michael Chan: Yeah.
[00:43:36] Brad Frost: Uh, that it's not just this sort of like dumb, you know, it's like, yeah, it's not just some like dumb, like after the fact sort of thing. It's like, it's something that, that like lives on its own and stands on its own two feet. And I do- I got my very fair share of that stuff whenever I started talking about how I was struggling to learn React. And I think that there was a lot of engineer kind of people that are basically like, sounds like you aren't a good developer. And it's just like-
[00:44:06] Michael Chan: Which is terrible. Why do we do that to each other?
[00:44:08] Brad Frost: Uh, I don't know, man. Like, it's, it's, uh, it's, it's rough. But like, I, I will say, in sort of, you know, like, I guess I just like don't care enough about like my reputation or whatever, but it's like, it's, it's, it was good, I think, for me to sort of like talk about this because What was bad and what I continue to see, and same thing goes with like CSS-in-JS, is it just devolves into like some pretty nasty stuff.
[00:44:35] Michael Chan: Yeah.
[00:44:35] Brad Frost: Pretty immediately. And whenever I started writing about it, uh I had a lot of people reach out to me and they're like, thank you for saying that because like I've I feel the same way and I've like expressed it before and just got like dogpiled on by a bunch of people and it's just like, it's It's like, it's a dangerous sort of world. And especially like in my case, it's like, I don't know, Facebook employees, like, you know, like core people be like sort of- like, I feel like attaching a lot more meaning to my words, like sort of projecting a lot of stuff onto me than, than like the words I was actually saying. But in any case, it's just like, wow, this is like, this is fierce. Like, this is like, you know, here's this thing that it's like everyone's like you know, super on board with or whatever. And to sort of just even say like, man, this seems sort of hard, uh, apparently, is was sort of beyond the pale. So.
[00:45:30] Michael Chan: Well, that's one of the reasons I wanted to have a conversation with you, because when you wrote that post and it seemed like there was like these these lines drawn, right, where people were like, oh, well, you just need to you just need to spend time learning this stuff. Yeah. Um, and then that other side of like, oh man, I'm I'm so glad that you said this because Because you have you have a voice, people respect you, atomic design is a fairly ubiquitous term. And um if you're saying this, this kind of validates my feeling of like being a designer and having no idea what the hell's going on. Yeah.
[00:46:01] Brad Frost: Well, the the the the problem though is it is it does go both ways. Is you have, you know, on on one side, and I I ended up sort of talking about this uh in in a post, I think I called it, I don't know, which is it's like, it's like I don't I it's like I don't even know anymore, but it's Like, like if, if you sort of like speak up and you're like, man, like, I think that this is hard. It's like one side is the, the just crowd, which is, you know, just do this. Like, you know, just spend more time learning it and like quit being an idiot. And then other people are like, are like, oh yeah. Like, yeah, React's so dumb. Like I never would use that. You know, like, like, like people shouldn't ever do that. Like I proudly don't know how to, and it's like, there has to be some middle ground, right? Wherever it's like. There's a lot of merit to, you know, why people reach for certain tools and why they use certain tools. Um, but that doesn't mean that, like, you know, you you shouldn't ever sort of talk about maybe what's difficult about them. And then on the on the other hand, it's like, of course you can't, you know, just sort of like put your head in the sand and like proudly be like, oh, I've, you know, I don't use any templating language. I just use index.html and like write it write it the way I've always written it. It's like, that's that's not helpful either. So.
[00:47:10] Michael Chan: Right.
[00:47:11] Brad Frost: So it's like, we just need nuance. We need to be able to sort of like talk about things openly. But like, I I will stress, it's like, I'm a white dude, and like, with with the reputation, you know, like, for what it's worth, for with like a reputation, like, you know, I've sort of built up, you know, over the years, it's like, if I'm thinking this stuff is hard and I'm getting dogpiled on or whatever, like, if you're not in this position, and and I will say, you know, having multiple women and people of color reaching out to me and they're like, "I'm seeing what's happening to you online, online getting skewered. And it's like, I feel the same way as you, but like, I'm definitely, definitely not speaking up now." Yeah. And it's like, that's not good. And that's, that's I hope something that that people can take seriously where it's like, listen, like we, at the end of the day, get out of like your own world. And and I think it's it's coming from a place of we want to feel like we're working on valuable Yeah. We don't want someone sort of coming in and sort of saying like, "Hey, look, the stuff that you're working on now, it's no good," or or or or that's how it's interpreted, at least is how I feel. It's like no one no one wants to to feel that way, right? We we want to feel like, "Oh yeah, we're working with good stuff. You know, we're doing you're doing great stuff." And certainly if you're if you're uh involved in the creation of that stuff, you don't want to hear a bunch of negative stuff coming coming out about it. But like at the end of the day, like we have to recognize like this is all, you know, we're we're all just making this up. It's all an evolution. It's all a continuum. You know, nothing's nothing's truly new. Everything's a remix, you know, whatever that that old chestnut is. But then also like things are bound to change, right? There's like 7 million GitHub repos right now that are going to sort of contain the nuggets of the next great framework that we all move to in a few years' time. So it's like, it's really hard to to sort of like stomach people being so precious about uh an industry that is just so incredibly fast-moving and ephemeral. So so I don't know. So it's like like that that's I guess like maybe like my my key message is it's just like chill out. Just chill out, listen, be willing to have open conversations, to be able to sort of like discuss the pros and cons of things, to like listen to people who are frustrated and and take those things to heart and and say like, oh yeah, like that's actually like maybe maybe there's something to that. And maybe it's not just that you're you're a freaking idiot, but maybe it's like, oh, you're coming from it from this perspective rather than this perspective, and maybe this isn't as intuitive as we thought. And and that's why, again, back to back to Dan Abramov, like I I I very, very much appreciate his willingness to to sort of do that stuff. And I think that that's uh I would like to see more of that, I guess.
[00:50:10] Michael Chan: Yeah, it does seem like React is really kind of forcing us to have conversations that we've kind of, as you mentioned before, we've put up walls around certain boundaries of like design and development. We kind of of bat this ball back and forth. And we've kind of found a little bit of a happy place like on our side of the wall. And it feels like React is jamming us all together. Because like now the HTML and the CSS and the JavaScript is all in one place. And we're just kind of getting cranky and angry at each other when we can't work the way that we have always worked.
[00:50:42] Brad Frost: Well, that that that that is right. It's like it's like yeah, JavaScript has sort of like sucked up the other things that, again, I I feel, in my in my view, I I feel that those other things are able to stand on their own two feet and actually like there's a lot of of nuance and a lot of like sort of like thoughtful stuff that that goes on there. And now it's there is a a feeling a bit of like, yeah, this all got sucked into the JS world and now the JavaScript community knows best and anybody that says otherwise is is an idiot because you're not an engineer. And this this is, I think, the other thing that that like Like, strikes me, it's like I don't come from a computer science background. A lot of people in the front-end field don't come from a computer science background. And I do feel like there is some semblance of, we're CS people, like we're like true programmers, we're true engineers, and that you other people, you know, just don't know. And like therefore, like you should just either Or shut up or like leave or whatever. And like that, that I think is is is very uh real and very and very dangerous. And again, like a lot of a lot of the people that I've I've talked to sort of like feel that that threat. But but like the the good news in all of this, sort of coming back to sort of like presentational and container components or like smart and dumb components is like the opportunity is 100% there for HTML, CSS sort of minded people to sort of like own that part of it and still sort of like work within this ecosystem, and then, you know, the more sort of like business logic-y, uh, sort of engineer types can sort of like put in that. And historically, whenever it wasn't all just everything is JavaScript, those lines were a lot easier to sort of solve. Yeah. Oh, the PHP developer does the stuff that that sort of like links up to the database. I'm gonna be over here styling the buttons, like, because I'm writing in a different language. But now that's all mushed together, it's a lot harder to sort of, you know, figure out where the boundaries are. But So all that's to say, it's just so incredibly important for teams in the community at large to to to be inclusive and to sort of find ways to sort of not like sort of wall those those other perspectives out, but rather say like, oh, okay, like it sounds like the HTML structure and the CSS structure like all sort of like matter and like we need somebody to like own that stuff or we need people to operate in those. Waters in a way that's compatible with the the React way of doing that stuff. And we would welcome those sort of perspectives. And I I don't know. Yeah, there's just chill out and and be be open, I guess. So.
[00:53:27] Michael Chan: In a very specific way, with teams maybe struggling in the same way as these lines, what are what's one way that people can be more receptive or like language that people can use to communicate that they are listening and want to know the input and values from the other side?
[00:53:45] Brad Frost: It's a good, very good question, actually. Um, I feel like there's so much that could be solved by, like, uh, especially if you're co-located, just like wheeling up beside one another. That's like one of the biggest things that, that we do in our consultancy work is like we've quite literally like, uh, reseated entire departments.
[00:54:07] Michael Chan: Oh, wow.
[00:54:08] Brad Frost: Yeah. So it's like, you know, the the devs used to be in the code cave and the designers are like up, you know, like right off of like the front, uh, you know, sort of entranceway because they make a bunch of sort of splashy, very visual stuff that's good to sort of like show, walk people through. And we're like, no, no, no, like you're you all work on the same team. And it actually isn't very valuable for, you know, the devs to sort of like be in their own world and only sort of talking to other devs. Um, you know. What we need to do is is actually sort of get you all sitting together. So what we've done is, yeah, like quite literally sort of been like, cool, uh you know, the the the product owner, the QA person, the backend developer, the frontend developers, the designers, they're all sitting beside each other. Uh the devs aren't sitting beside each other, they're sitting next to the the designers. And all of that- All of that plays into like recognizing that it's like It's not just all about like, oh, dev knows best and like everybody else better follow suit, or design knows best and they you know everybody else is is you know out to lunch or whatever. There there's a real sense of humility that comes from just being exposed to those other perspectives. Sure. And one of my favorite things was um uh with one client, one of the QA engineers uh ended up becoming one of the best designers on the team. Oh, that's awesome. She would walk by, she would walk by the the designer's desk and the front-end people's desk and she'd be like, "What the what the hell is that?" And and they'd sort of start talking and she's like, "Here's why that isn't going to work." And it's like, you know, she just like had like just loads and loads of like real experience. She's the one that's sort of like really like sort of feeling the pain of like, uh yeah. And and so to sort of like have her be an actor active participant in the design and development project or process, like ended up making the the the final work so much more strong. And and so so I feel like that's that's it. It's like putting people closer together, uh trying not to- there is something about intra-disciplinary sort of like camaraderie and collaboration that is important. But I don't I think that we tend to take it too far into sort of tribes. You know, it's like it's like oh the dev tribe and the design tribe, or like oh you know we're over here doing the the the hard work and you are all over there painting pretty pictures or whatever. And then you know the opposite is true. It's like you know you're just going to take our pretty pictures and butcher them because you don't care. And so so it's like it's it's just yeah. If you can, sit teams together, not by way of of what their discipline is, but basically by you know are you responsible for the success of this website or this application or whatever? Cool, we're all gonna sit together and we're gonna work on this together. Uh, that's helpful. And then just also opening the doors to things like, well, design tokens is a, is a great, so we'll say like technical way in for sort of encouraging collaboration between design and development. Um, so it's like you have, you know, a brand color palette, a neutral color palette, um, you know, sort of a utility color palette, things like error and success. Yeah. and sort of stuff like that. You have typographies, font sizes, and all of that stuff. And it's like, that's all stuff that like designers can and should own. And like the cool thing with design tokens is that basically you could sort of kick that stuff out, those, those tokens as like JSON or, or XML or CSS variables or Sass or like whatever. And then just sort of ingest that. And so that sort of helps like as a developer, like you're obviously the one sort of like taking that stuff and plugging it into the actual application. But what you're doing is you're basically sort of opening the door, opening an invitation to the design team to say like, hey, I would like you to sort of own this file. Like I would like you to to own our color palette, our typography sort of stuff. And like and what that does is that of course, you know, from an engineering perspective, frees up the team to uh you know be fixing bugs and getting things working across devices and browsers and stuff like that. And leading sort of like any uh hex changes or typography changes to the designers and like they can they can own that stuff like all day, every day. And you're just sort of like giving them the the you're empowering them to to do just that.
[00:58:32] Michael Chan: Well, Brad, thank you so much for your time. I really appreciate you taking the time to communicate very candidly about your experience and how we can communicate better as teams. So thank you so much.
[00:58:43] Brad Frost: Yeah, thank you very much, Michael.
[00:58:47] Michael Chan: This has been React Podcast, episode 26. For links to the people, projects, and patterns mentioned in this show, visit reactpodcast.com/26. Patrons this week get access to the video of this call. So, if you're the type of person who does nonverbal communication better and enjoys watching over listening, go to reactpodcast.com/partner. A special thanks this week to Sid, who just joined. We'll be back next week with a very special episode that you will not want to miss. Michael Jackson is sitting down with the core React team to talk about the future of React. It's going to be a thriller for sure. Thanks for listening. We'll be in your ears again next week.
chantastic.fm