Latest / Talk Python To Me / #137: Design concepts and tips for developers
Transcript
- 0:00Design has become a critical element in software.
- 0:02Back in the 90s, it was fine to produce and sell battleship gray apps that worked but did not do much to delight.
- 0:09Today, design is table stakes, and knowing how to design applications yourself or work with designers is a key skill.
- 0:16This episode, you'll meet James Stone, who straddles that gap between developers and designers. He's both.
- 0:22He has a bunch of tips for improving your design skills as well as working with designers.
- 0:27This is Talk Python To Me, episode 137, recorded October 30th, 2017.
- 0:32Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the ecosystem, and the personalities.
- 0:52This is your host, Michael Kennedy. Follow me on Twitter, where I'm @mkennedy.
- 0:57Keep up with the show and listen to past episodes at talkpython.fm, and follow the show on Twitter via at Talk Python.
- 1:03Talk Python To Me is partially supported by our training courses.
- 1:06Do you want to learn Python but you can't bear to subscribe to yet another service?
- 1:11At Talk Python Training, we hate subscriptions too.
- 1:14That's why our course bundle gives you full access to the entire library of courses for one fair price.
- 1:20That's right.
- 1:21With the course bundle, you save 70% off the full price of our courses, and you own them all forever.
- 1:27That includes courses published at the time of the purchase, as well as courses released within about a year of the bundle.
- 1:33So stop subscribing and start learning at talkpython.fm/everything.
- 1:40Hey, James.
- 1:40Welcome to Talk Python.
- 1:42Hey, Michael.
- 1:43Thanks for having me.
- 1:43Yeah, it's great to have you here.
- 1:45I'm super excited to talk about design, web design, and general application design.
- 1:50Because this is originally something I found super challenging and daunting for me.
- 1:54And then once I really learned it properly, I felt like, wow, I have this whole wide world that's been unlocked.
- 2:00And now I have this power that a lot of people are afraid of, which I think makes it even better, the stuff you can do.
- 2:05So hopefully we can share that with everyone and a lot of your tips from your experience.
- 2:09Nice.
- 2:09Yeah, absolutely.
- 2:10So before we get into those topics, though, let's start with your story.
- 2:14How did you get into programming in Python?
- 2:15I have a funny story.
- 2:16I'll talk about really quickly how I learned to program.
- 2:19I'm the product of a clinical microbiologist and an RV salesman.
- 2:24And my mom, the scientist, was taking me to laboratories, had me looking through microscopes.
- 2:29And she bought me an Atari 600XL back in the 80s and taught me to program in BASIC.
- 2:35And I have no idea why she did this.
- 2:37And she never programmed again ever since then.
- 2:39But it kind of turned into a career.
- 2:43And so I always had a fascination with programming and computers.
- 2:46It was kind of a hobby.
- 2:48I got into hacking computers, got kind of kicked out of high school, or you might say like in air quotes, like asked nicely to leave.
- 2:56They said, you know, you just can't stay here kind of thing.
- 2:59Yeah.
- 3:00Well, OK.
- 3:01What was the reason for that?
- 3:02It was maybe an ends to a means.
- 3:04But I lived on a small island in Washington.
- 3:06And this is at the beginning of the Internet.
- 3:09So it was long distance to Seattle to connect to bulletin boards, which is what I was doing when I was younger.
- 3:14So there was a library system there.
- 3:17So I started hacking their system.
- 3:18I figured out a way to kind of break out into Telnet and start accessing interesting shell servers over in Seattle, kind of circumventing the long distance thing.
- 3:26I basically kept doing the same thing in high school and had kind of a knack for finding maybe exploits or ways to kind of break software, use it in ways it's not supposed to.
- 3:36I think at the end, they had me on my own computer that was disconnected from the network.
- 3:41So I kind of roll this cart into the library with my programming books.
- 3:46And I would be like programming out in the middle of the library, if you can imagine.
- 3:49And then, of course, we got caught again, my friends and I.
- 3:52And so they're like, this is enough.
- 3:54You're out of here.
- 3:55And so I went to college through a thing called Running Start Program.
- 3:58That's really interesting.
- 4:00You know, I feel like a lot of times structured education misses opportunities to take people that are super creative and find like, you know, these rules, they don't actually have to exist, like whatever.
- 4:11And like turn that into they probably could have like redirected your energy into something like super powerful.
- 4:17But instead, they just said, we're going to unplug you.
- 4:20Yeah.
- 4:20Yeah.
- 4:21I think I'm kind of a product of of that system, not really having a good a good avenue for those interests or pursuits.
- 4:29So they were scared.
- 4:31Yeah, sure.
- 4:32Of course.
- 4:32And it was all bizarre.
- 4:33Nobody knew really what to do with the Internet anyway.
- 4:35And that idea of like the way you got on the Internet was to find like something you tried to access over one of these dial up things that then failed and dropped you to a talent shell.
- 4:45That's I haven't heard that from any other people, but I've experienced this as well.
- 4:48It's interesting.
- 4:49Awesome.
- 4:50Okay.
- 4:50So that was high school.
- 4:52And you were going to start there in programming.
- 4:54Yeah.
- 4:54So I had kind of a start in programming.
- 4:56And, you know, in high school, they had like a Pascal class.
- 4:58I was super fired up about that.
- 4:59I was doing some C and some things.
- 5:01But but I wouldn't call myself like a professional programmer.
- 5:05I certainly had a lot of interest.
- 5:06And what happened is a friend of mine helped me get a job in the 1990s at a startup where I learned to kind of become like a professional programmer on the job.
- 5:15And so basically they threw at me the Java 1.2 or Java 2 Bible, which was pretty thick in those days.
- 5:21And they said, get to it.
- 5:22And I think it was a few weeks later, I was writing production code and in charge of data classes.
- 5:27So I started mostly doing back end programming and Java back in the 90s.
- 5:31Yeah.
- 5:32Nice.
- 5:32And that was the heyday of Java.
- 5:33Sun was super big, powerful corporation.
- 5:36Java was a big revolution.
- 5:38Right.
- 5:38It was like so much better than C at the time, for example.
- 5:41Things like this.
- 5:42Yeah.
- 5:42Yeah.
- 5:43So much more portable.
- 5:44Byte code was going to be the future of everything.
- 5:46You just wrote it once and it ran everywhere.
- 5:48It was amazing.
- 5:49Yeah.
- 5:49It's so funny to think back about those those days.
- 5:52You know, fast forward.
- 5:53I've always been involved with programming computers.
- 5:55I went back to school because, you know, I kind of dropped out of college.
- 5:59Eventually went back to college.
- 6:00I actually studied art and then found a way to kind of combine computer science and art after kind of having a short career.
- 6:08As a professional programmer.
- 6:10And so now coming from it from a little bit different angle, the lead into Python is always been interested in Python.
- 6:19And recently my wife started doing astrophysics work and she did a master's and now she's working on astronomy, PhD.
- 6:27And so she taught herself to code in Python, you know, for scientific purposes in about a month with some books.
- 6:34And so it's very interesting for me because she never did really any programming at all.
- 6:38And so now I guess maybe because I have some affinity towards Python, I try to focus my projects into that.
- 6:44So when I have to do an API or something, Flask is my tool at hand.
- 6:48When I have to crunch some numbers or things, I find myself reaching for Python in those times.
- 6:53That's a really interesting story.
- 6:55Python has taken over astrophysics.
- 6:56I think so.
- 6:57I mean, I'm not that far in it.
- 7:00But from my observation, it's either that or the old school people.
- 7:05They're like, no, it's Fortran.
- 7:06Pretty hardcore.
- 7:07Yeah.
- 7:07That's right.
- 7:08That's definitely a giant chasm between those two languages in terms of time and space.
- 7:15But yeah, like a lot of the APIs for controlling a lot of the major new telescopes that are going up are done in, you know, basically the APIs for them are Python.
- 7:25And a lot of the machine learning stuff to discover a lot of the stuff in the visual stuff is Python.
- 7:31So yeah, it's really interesting to see that she taught herself that to get going there.
- 7:34Cool.
- 7:34That gives us a lot of what you've been, you know, what got you to where you are today.
- 7:39But now what do you do day to day?
- 7:41What I do day to day now, I've got a little bit of a split life.
- 7:44But for most of what I do, I work as an independent design systems engineering consultant.
- 7:48And so some of the things I'm working on there, I write daily emails to kind of a secret list that I have, record videos and tutorials.
- 7:57Sometimes I'm researching new tools and processes.
- 8:00Sometimes I'm giving talks and webinars.
- 8:03And so some of those, again, might be to this kind of secret inner circle list.
- 8:07I just gave a talk recently here in Turku, where I'm at in Finland.
- 8:11And I work a lot with design and development teams.
- 8:15And often it might even just be one designer or two designers in development teams, helping them to work on their web projects.
- 8:22On the other side of what I do, I teach an assistant teaching professor at Penn State.
- 8:28And I teach an online course, which I'll put in quotes, but creative code is what we focus on.
- 8:32And it's teaching artists and designers how to program in processing, which is a simplified API for Java.
- 8:40Okay, cool.
- 8:41So the creative code part is basically simplified coding for creative types.
- 8:47Yes.
- 8:47So if you've ever programmed in Java, you might have had to deal with its very heavy API.
- 8:52And so you end up with all this boilerplate to do very simple things.
- 8:55Not simple things, but do like, you know, 3D OpenGL animation and having things render quickly, like a kind of a game style buffer.
- 9:04And so processing does this all for free.
- 9:05And you just use very simple calls like rect or ellipse.
- 9:09And then you can do those in two dimensions or three dimensions very easily.
- 9:12That's really cool.
- 9:13So the first thing that I want to talk to you about as our proper topic is this concept that I opened with, which is web design as a superpower.
- 9:22Because I really honestly don't know what the breakdown of my audience is and how many folks out there say, yeah, I feel like totally comfortable as designing the stuff that I work on or even interacting with designers on the stuff that I work on.
- 9:36Right.
- 9:36Maybe people are infrastructure folks and like design is basically colored terminal.
- 9:41Maybe they work on web apps.
- 9:42Maybe they work on other kinds of apps.
- 9:44But I feel like there's a lot of stuff in design that feels really scary and daunting.
- 9:51People feel like, oh, I'm not an artist.
- 9:52You kind of came from the programming side and then you studied art and then you came back.
- 9:56Maybe talk to us about that journey a little bit and where it got you to.
- 10:00Yeah, it's very interesting.
- 10:01And I can understand that apprehension a little bit from if you're an engineer and you've never done really any art or you've maybe you feel you're creative in certain ways, but maybe design and art or maybe not your forte or you've never had experience.
- 10:15It can certainly be daunting because there's a whole nother language.
- 10:18And sometimes the way people are realizing things, it seems difficult to kind of get your head around what that is.
- 10:26But I'm a firm believer that creativity is something that everyone has and also that art and design and I think even music is something that can be taught or you might have perhaps an aptitude for it.
- 10:41But I don't think that in general people are kind of like born an artistic design genius and that's it.
- 10:49Like they may have an aptitude where people have given the right kind of tools and resources to that person as they're developing.
- 10:57But I've seen all sorts of people, especially when I work at Penn State, I actually teach a lot of computer scientists, right, and software engineers.
- 11:05They take my course because they want to do something created.
- 11:08They want to do something visual.
- 11:09And so that might be a little bit of a struggle coming in, but it's something that can be taught.
- 11:14It's something that can be learned.
- 11:15It's something that's accessible, just like you've learned to program, right?
- 11:19You kind of have these little pieces that build upon each other.
- 11:22It's the same thing in design.
- 11:23And I think it's just a little bit different, perhaps, in the approach.
- 11:27It's more of a bottom-up approach than the top-down that we're maybe perhaps used to.
- 11:32But don't let design scare you if you have some interest or interest in art.
- 11:37I totally agree with that.
- 11:38And like, how do you think people should get started?
- 11:40Short of, like, I'm going to just go back to school and do graphic design, too.
- 11:45How is somebody who maybe, like, works on the web but doesn't really do the UI stuff other than just, like, get it in place and pass it off, right?
- 11:53What are a couple of steps people can take to really, like, get better at that?
- 11:58Yeah, to get better at design, I think, you know, it's a couple things.
- 12:02One is if you start to recognize the patterns of design, like, if you've worked with a designer and they say, hey, this is not quite right.
- 12:10It should be this.
- 12:10Maybe asking the question, why?
- 12:12Like, why is that not right?
- 12:14And so there's just, like, how we have variables and functions and all these types of...
- 12:20Why can't I put it all in one function?
- 12:21It's only 3,000 lines.
- 12:23Exactly.
- 12:24And so in design, there's, like, these principles of alignment.
- 12:26So often designed elements will be aligned with each other.
- 12:30So, you know, the baseline of the font will often line up.
- 12:33So you don't want them off by a pixel or 10 pixels.
- 12:35And so you see this alignment principle, right?
- 12:38And there's, you know, balance and contrast.
- 12:40And there's a lot of other principles.
- 12:42And so you could pick one of these or you could pick up a book that talks a little about it and just try and recognize what those are as you're working.
- 12:50And then what I do, and I think maybe this is because I have a lot of experience with code.
- 12:55Often I think about visual ideas in terms of code, especially when it relates to the web.
- 13:00So I jump very quickly from a sketch, for example, to, like, just building it out in code.
- 13:06Like, sometimes I skip that whole using a visual design application.
- 13:10Right.
- 13:11Okay.
- 13:11Yeah.
- 13:11So you do your initial work with pen and paper or with a stylus type thing?
- 13:15Yeah.
- 13:16So in the past, it's been pen and paper with, like, Sharpies and, like, Copic markers.
- 13:20And lately, it's been on, like, an iPad Pro.
- 13:24And part of that's for me.
- 13:26I recently moved abroad.
- 13:27And so it's very heavy to carry a lot of paper and those types of supplies.
- 13:30I did bring my Copic pens and a Sharpie, which I don't think they actually have in Europe.
- 13:34They have another type of pen that they use that I have to find.
- 13:37But, yeah, it's just whatever I have available.
- 13:40But the iPad Pro is quite good for sketching, I think.
- 13:42Yeah, that's cool.
- 13:43I have an iPad Pro with an Apple Pencil, like the 12 point whatever inch one.
- 13:47And I actually, part of this getting better design experience I went through was I got some drawing apps and I decided I'm going to force myself how to learn to draw on this thing.
- 13:59Even though drawing was something I thought I was very bad at.
- 14:02And, you know, with a lot of practice, you can do it.
- 14:05It's a pretty nice experience.
- 14:05Yeah.
- 14:06No, I totally agree.
- 14:07And I think the experience in the iPad Pro is quite good with that.
- 14:10The Apple Pencil.
- 14:11I actually studied for a time traditional animation and illustration.
- 14:16So I have a lot of experience with this like kind of like hardcore Florentine style, drafting the human figure, working very quickly.
- 14:23And, you know, I would say maybe I drew good at the community college.
- 14:28But when I got into this, you know, when I tried to get into this ranked program at San Jose State, those guys are hardcore.
- 14:34Like I remember that they said, this guy draws like Michelangelo.
- 14:37And so I think if you're thinking, oh, I can never be an artist.
- 14:40Like I was drawing and I thought I was quite good.
- 14:43And then here I'm like next to Michelangelo.
- 14:45So there's always going to be someone better, right?
- 14:49Well, it also depends on what you're trying to get out of it, right?
- 14:51Like, are you trying to improve what you're doing versus are you trying to do animation, like you say, basically fully become like a digital artist?
- 15:00So you also had a resource you wanted to reference about this sort of design as a superpower concept.
- 15:06Yeah.
- 15:06So I haven't taken any of her classes, but I have spoken with her.
- 15:09But her name is Laura Elizabeth.
- 15:11And she's got a website, lauraelizabeth.co.
- 15:15And she's got some really fantastic articles focused towards developers.
- 15:20And especially maybe if you've had some exposure to frameworks or you've done a little bit of web design, maybe not full on UI design, but maybe more on the back end.
- 15:28And you're, say, building out some smaller projects, personal projects, and you want them to look a little bit more designed, like more so than just say out of the box bootstrap.
- 15:37She's got some really great resources you can look at where she talks about, like, color choices, right?
- 15:43Like, alignment, kind of basic principles of design.
- 15:46But she explains them in a very developer-friendly format.
- 15:49Oh, yeah.
- 15:49That sounds really cool.
- 15:50I'll definitely link to Laura's stuff.
- 15:52Let's go ahead and actually talk about front-end frameworks first.
- 15:56Because I feel like if you sat somebody down with, like, just open up a new file, you say, okay, first thing you type is, you know, angle bracket HTML.
- 16:04You also get a CSS file.
- 16:06Design that.
- 16:07Like, build something beautiful.
- 16:08That's really super daunting for a lot of folks.
- 16:11But I feel like in the last five years or so, the front-end frameworks have really democratized design.
- 16:18Not in the super high-level sense, but, like, I can start from, like, 70% good with these front-end frameworks.
- 16:25So maybe tell us about front-end frameworks and some of the ones that are great.
- 16:29Yeah.
- 16:29So my exposure with front-end frameworks happened kind of, like, in the early days of responsive.
- 16:35And so this is kind of Zurb Foundation version to kind of bootstrap to simple stacking and responsive.
- 16:42But, I mean, what they've done for the web is, I think, nothing short of amazing.
- 16:47Because if you find pretty much any website that was built before these existed, because I think they've raised the bar in design for the stuff that's hand-coded.
- 16:56It's like you look at websites, you're like, wow, this is, like, from the 1990s or from, like, the early 2000s.
- 17:02There's, like, these two big gaps.
- 17:04You can, like, really spot it.
- 17:05The site has a Y2K problem, but it's not broken.
- 17:08It just looks like it.
- 17:10Exactly.
- 17:11I think, one, they take these design kind of patterns.
- 17:15They take these design trends and they package them all up into an easier-to-use UI toolkit.
- 17:22Like, you can just, instead of having to figure out how to create a button every time.
- 17:26Because if you actually, if you go, like you're saying, right, and you're, like, HTML and just start writing in some standard elements, it actually still looks a lot like 1995 or, like, the early Netscape or Mosaic if you don't actually spend the time to style it.
- 17:42And what the frameworks do is they kind of provide you a lot of how to get that reset in a much more modern way automatically.
- 17:50And then what I think they're also good for is a learning tool.
- 17:53So CSS, I think, is not that complex as a language.
- 17:59But there's a lot of complexity in, like, how you might use it to create visual effects.
- 18:05And especially when a lot of the things that we've been doing in the past, even the past few years, are kind of hacks, like float-based grids.
- 18:12And so there's a lot of kind of weird stuff that's not obvious.
- 18:16And so it helps you to learn those patterns and how people are creating things.
- 18:20Because you can just view the source and use the inspector and learn how the components are being built.
- 18:25I think you're totally right on with that.
- 18:27And there's also some of the underlying things that you get that are just non-obvious.
- 18:33What you were touching on before about, you know, the subtle color changes, the topography, the line spacing, the reset CSS.
- 18:42So Firefox doesn't look different than Safari or, you know, whatever, right?
- 18:45There's just so many subtle little things that you can kind of just take for granted rather than have to figure out how to do.
- 18:50And then it's down to using the widgets that what people probably mostly think of when they think of these frameworks.
- 18:55I think that's what a lot of people are thinking, like these accordions and tabs and this kind of interactive, more sliders and that kind of stuff.
- 19:02And that's certainly part of it.
- 19:04But yeah, a lot of it can just be CSS only.
- 19:06So until you get into some sort of interaction, which on the web is requiring, like when you click on something, you get some sort of reaction that's beyond the default of a button, which is a lot of things, obviously.
- 19:17But everything else is CSS only.
- 19:19And so that's really the JavaScript is just handling that interaction.
- 19:23There's a couple of really popular ones.
- 19:24There's Bootstrap.
- 19:25There's UIKit.
- 19:27There's Zurb Foundation.
- 19:28And you're actually pretty involved with Zurb, right?
- 19:31Yeah, I'm pretty involved with the Zurb Foundation.
- 19:33The secret, don't tell them.
- 19:35I actually got started on Bootstrap back in the day.
- 19:37But sometimes people start on Bootstrap and they switch over, but they have a little bit different focus in their philosophy.
- 19:44And I think they're better suited to certain projects.
- 19:48Sure.
- 19:48My site's based on Bootstrap.
- 19:49I've done a lot of Bootstrap.
- 19:50Primarily, I've chosen Bootstrap because, well, one, it was pretty early.
- 19:55And the other, there's a lot of themes for it.
- 19:57So I go grab stuff for it.
- 20:00But I'd love to hear your thoughts on, like, the pros and cons of each or, like, even just why Zurb is awesome over Bootstrap.
- 20:07Things like that.
- 20:08Because this is, a lot of times you have to choose that right at the beginning before you've even done a lot with it, right?
- 20:13And then you're kind of like, well, I'm not redesigning it now.
- 20:15It's done.
- 20:15Sure.
- 20:16I would say the reasons that you talked about are actually some of the great reasons to use Bootstrap.
- 20:22Bootstrap is one of the, probably the most popular framework by a much large, like a very large margin.
- 20:28And it's very developer friendly.
- 20:30The reason is, is it looks really designed outside of the box.
- 20:33And also, like you said, there's these themes that you can just plug in.
- 20:38So if you want a little bit different visual style, you can either get a free theme or purchase a theme, bolt that on, and there you go.
- 20:45It looks a certain kind of way.
- 20:47So it's very good if you're creating, like, I think an MVP, if you're creating kind of like your version 1.0, you don't have designers on board, or maybe you have designers on board, but you don't have the time to focus on, like, that much visual branding in the app.
- 21:03It's more about functionality, and it has to look okay enough.
- 21:06Or personal projects, right?
- 21:08Or you do hackathons.
- 21:09Like, this is the perfect type of thing, because you can just use Bootstrap and build upon it.
- 21:13And then I think, you know, you can make some pretty moderate changes and restyle it, but the themes are really kind of probably the more powerful way that you can get closer to the visual style that you're looking for.
- 21:26Yeah, I totally agree.
- 21:26But how about Zurb?
- 21:28What's awesome about Zurb?
- 21:29If you liked how that sounded, Zurb Foundation might not be the right fit for you.
- 21:33I got into it.
- 21:34There's, I think, really two reasons people use Zurb Foundation.
- 21:39One of them can just be an aesthetic.
- 21:40Like, some people like this very minimal aesthetic of, like, the Zurb Foundation, unstyled kind of look.
- 21:47And there's certainly some people that are doing that.
- 21:49But the most important thing, and what it was actually designed for, is for strong visual brands.
- 21:55And so it's actually not intended to be used that way out of the box.
- 21:59In fact, if you're using it that way, this is probably what Zurb would call, like, a layout or a wireframe that's done in code.
- 22:08And so what's intended is you use the framework kind of like a wireframe.
- 22:12And it's actually, you have to create a whole set of design on top of it.
- 22:15So it doesn't have, like, these subtle shadows and gradients.
- 22:18It's expected that you're going to add all of that afterwards based on a professional design.
- 22:23So you take, like, a mock and translate it to this framework.
- 22:26Right. So it provides the foundational building blocks and the typography and all those things I was talking about.
- 22:30But instead of going, and it's basically done, you say Engelbrack button.
- 22:35Maybe is it more of a framework for designers to go continue to build with than it is for developers to drop in and, like, keep doing their web stuff?
- 22:42Yes. I think it's much more a framework for designers because, like, the emphasis is on design.
- 22:48So if you're coming from, like, say, your app or your marketing site and you have fully realized, radically different than bootstrap visuals, right, for all the pages.
- 22:59And this is, like, how you're starting your process.
- 23:01And then you're trying to convert that.
- 23:03So foundation is going to be a better framework for you, whether you're a designer or a developer working on a team like that.
- 23:10Okay, cool. And are there some themes out there that you can go, Graham, that people built, like, landing pages?
- 23:14Or is you really, you're starting from the framework?
- 23:16You know, like, I know there's been some discussion on themes for foundation and, like, don't quote me.
- 23:22But I think there are some themes, but I've never used them because my experience has been building out these websites that have, like, a strong visual brand to it.
- 23:31This portion of Talk Python To Me is brought to you by Linode.
- 23:36Are you looking for bulletproof hosting that's fast, simple, and incredibly affordable?
- 23:40Look past that bookstore and check out Linode at talkpython.fm/Linode, L-I-N-O-D-E.
- 23:46Plans start at just $5 a month for a dedicated server with a gig of RAM.
- 23:51They have 10 data centers across the globe, so no matter where you are, there's a data center near you.
- 23:55Whether you want to run your Python web app, host a private Git server, or a file server,
- 24:00you'll get native SSDs on all machines, a newly upgraded 200 gigabit network, and 24-7 friendly support, even on holidays, and a seven-day money-back guarantee.
- 24:09Want a dedicated server for free for the next four months?
- 24:12Use the coupon code Python17 at talkpython.fm/Linode.
- 24:17So maybe tell us some real-world examples that you've worked on with Zerb.
- 24:22Yeah, so I've done some work for agencies, subcontracting, so I can't really talk about the particulars of that.
- 24:28But one of the websites that I work with, and I think it's got a pretty strong visual brand as well, it's called Snowflake Stories, LLC.
- 24:36And it's a very interesting kind of solopreneur, self-funded startup.
- 24:41And what they do is they create children's stories that are completely customizable, where there's a cast of characters that resemble your family.
- 24:48And so we created this character builder that's kind of based loosely on the we, you know, the, I can't remember what it's called, the we, me, you know, we have the character we kind of customize.
- 24:59And so this is something that we created there.
- 25:01And what's nice is it's also mobile responsive, and we're using Angular and this kind of thing kind of in the background.
- 25:08But the styling of it is very visually distinctive.
- 25:11So I think that in this case, Server Foundation was a really good fit for it.
- 25:15And it's also an interesting project.
- 25:18And I think this is one of the benefits of working with Foundation, too, because I did a lot of what you might call like UX design, kind of solving the experience and what that was like.
- 25:28And then later on, we actually brought in a visual designer, a UI designer, Marcus Handa.
- 25:35And he, we came together, and then we actually won an award called the Ippy Award for one of the best publisher websites for that year.
- 25:43So I think it's International Publisher of the Year.
- 25:45Yeah, that's a really nice idea as well.
- 25:48Like have a book with your child as the character.
- 25:52And my daughter would go crazy for that.
- 25:54That's cool.
- 25:54The site looks nice.
- 25:56I'll link to it in the show notes.
- 25:58So maybe that's a good place to segue over to talk about interactions a little bit.
- 26:03In this case, there was a person who owned the company, created the books, and had the idea.
- 26:08And then they wanted to work with you.
- 26:10I suspect they were probably not a developer or they would have like put something slightly less nice together or whatever.
- 26:15But maybe let's focus it on like how developers should interact with designers.
- 26:20So I suppose sometimes people see this as like a frustrating thing.
- 26:24Like, you know, I built the site and it totally worked.
- 26:27But the designer said it's off by three pixels and it was the wrong color.
- 26:31And, you know, like what can people do to maybe make these like really great interactions and where people are supporting each other?
- 26:37Yeah, it's a great question.
- 26:39And I worked on a team recently where I came back to them and I told them actually that they had 147 or something like this wrong colors.
- 26:47And then I went through and fixed them and got it down to about seven or eight.
- 26:50So, yeah.
- 26:51And I can relate to that, too.
- 26:52I think I'm in a unique position maybe to talk a little bit about this because what I've been doing over the past few years is working with designers and dev teams and kind of a little bit being the go between and helping them to translate these ideas and communicate.
- 27:05But I think the biggest thing is to realize that as engineers, we have a really different agenda and a different focus than probably the designers.
- 27:16And so one is to kind of understand better what the designers are going for and maybe understanding a little bit what they mean when they say things like they have empathy for the user or what good user experiences.
- 27:29I think these are actually great things to tie into, but maybe the loss in translation, because I know that a lot of engineers, including myself, really care about the performance of the website.
- 27:41And I'm very focused on the front end.
- 27:43So I really want that front end to really pop.
- 27:45I want it to be fast, you know, not too many connections, like, you know, really smooth, really quick.
- 27:50And so we're actually kind of working towards the same thing.
- 27:53Like, so I want the user experience to be good as well.
- 27:55But sometimes it can get lost in translation, right?
- 27:58And so I think where that goes astray is, you know, you mentioned the wrong color are off by three pixels.
- 28:05But I think what I've seen that can kind of be a bigger problem is when there's a little bit of a detail in the design where you really need to kind of let the design team know early on or the stakeholder in the project that it's going to be expensive, right?
- 28:21Sometimes there's a little flourish, right?
- 28:24And that flourish is going to be like 10 times, you know, 10 times the time of some other task that you've got on this task list.
- 28:31And so I've actually been working with some designers lately.
- 28:34And when that's brought up, they're like, no, no, cut that.
- 28:37It's not important.
- 28:38So getting to, like, what's important, because sometimes I think what happens is that designers feel like they have to fight for their ideas.
- 28:45And so they have all these sketches and ideations, and then they're showing all these different versions, right?
- 28:50And so when you're finally interacting with them, you might be at this final version that they've had to fight tooth and nail, right?
- 28:57For they really want that flourish or whatever.
- 29:00And so they're kind of fighting for it, but not necessarily because they're fighting you, but just they've had to put a lot of energy into getting the design pushed forward.
- 29:09So I think if you can get involved in the design process earlier on and bring these things up, like if there's some, I'll put in air quotes, like crazy thing that you're, like, freaking out, like, how am I going to even do this in our system?
- 29:22Or is it going to be cross-browser?
- 29:24Yeah.
- 29:25They know it's HTML, right?
- 29:27They know it's HTML.
- 29:28It's not print.
- 29:29Come on.
- 29:30I want it always to be exactly the size.
- 29:33It's not 8.5x11.
- 29:35Come on.
- 29:35Yeah, exactly.
- 29:36Something like this, yeah.
- 29:37Yeah, exactly.
- 29:38And so, and I think when you gain more experience with it, with this translation, you can kind of spot things right off.
- 29:43And so I know for myself, like, I know if I'm working with Photoshop-based work, I can tell them already, like, look, the fonts are going to be the wrong weight, right?
- 29:52So it's not going to look as bold or as light as you think it's going to.
- 29:56I think sketch-based digital assets are working a little bit better, but there's still some translation there.
- 30:01So you can kind of start to have that conversation earlier.
- 30:04And I think it's good.
- 30:05It doesn't mean, like, you're going to hang out while they're sketching all the time, but just maybe to inject the engineering thought process a little earlier on so that it doesn't ruin your day, like, you know, a week or two weeks from then.
- 30:17Yeah, it seems to me like the design team probably spends a lot of time in boardroom meetings where there's the CEO or the major stakeholders who have, like, super lofty ideals about what they want built.
- 30:29And then they ask the designers to build it.
- 30:31And then the builders, the designers eventually get down to the developers and say, developers, this is what we've chosen, you know?
- 30:38Maybe, one, having some sympathy for the pressure that is on the other side of that story for the designers, right?
- 30:44And then you maybe try to, from a design perspective, try to get at least one representative for the dev team into those meetings so they're more involved in earlier.
- 30:54Yeah, I think so.
- 30:55And I think it can really help, especially if you're kind of in an environment where you're really siloed off, where, you know, designers are over there, we're over here, and we see them in the hallways, but we're not interacting as much.
- 31:06Or, you know, some places have places where it's much closer, right?
- 31:10Maybe you're sitting next to each other.
- 31:11But I think what can really help is, like you're saying, have someone who can kind of span the gap.
- 31:15And it could come from either a team, right?
- 31:17It could be a designer, maybe who's doing some code or has some aptitude.
- 31:20But getting someone who can kind of understand the visual nature of the front-end code and kind of take that on so that most teams that I've worked with have very specialized roles.
- 31:32And I wouldn't say the bulk of the team is doing front-end work.
- 31:34It's usually one person or, you know, you have maybe in a very large organization, a team of people doing this type of work.
- 31:41Or in some cases, for myself as a consultant, there's often been a gap.
- 31:46And so that's where I've kind of injected myself in the process.
- 31:48Because they have the designer, they've got the back-end team, and they don't know how to...
- 31:53They bring you in to be the bridge.
- 31:54Pretty much.
- 31:55And so I think that's something that can be really quite useful.
- 31:59And just to get involved more in the process earlier on.
- 32:01From both sides, too.
- 32:02Designers.
- 32:03Designers, you know, should get involved.
- 32:05Not telling you the nitty-gritty of what you're doing, but like at least letting you know what's coming down the pipe or this is what we're thinking.
- 32:11What do you guys think?
- 32:13It's going to take forever.
- 32:15Is it feasible?
- 32:15Right.
- 32:16How much do you want this?
- 32:18Are you willing to wait a month longer to have this?
- 32:20So you were touching on a couple things there that I think are interesting.
- 32:26And one is this workflow with the design team and the dev team.
- 32:32The projects where it's worked a lot better for me, as being a team member on the dev side mostly, has been where the designers and the developers work more closely together.
- 32:43Maybe they share a GitHub repo and the design sometimes at least is done in the CSS and in the app.
- 32:51And like where it's worked less well is where I've worked with people largely from a print background where they're like, oh, we're not going to touch the HTML CSS.
- 32:59We don't do that.
- 33:00What we'll do is we'll just give you this picture and you can just make this picture.
- 33:04And I found that to be a lot less helpful.
- 33:06I'm like, well, I can have a picture of it.
- 33:08What I need is to actually make the HTML look like the picture.
- 33:11That's where it's super, super hard, right?
- 33:13Because that's where the rubber meets the road.
- 33:15And so it's one thing to draw a picture and say, I want this.
- 33:17It's another to like say, here's how you get there.
- 33:20What do you think about that?
- 33:22I mean, there's this tension, right?
- 33:23Not every designer is a web developer, for example, but what do you think?
- 33:26Yeah, I think it's maybe in a lot of cases unfair to just tell.
- 33:30Well, designers, look, we need you to code or we need the code.
- 33:35However, you know, there's some more modern thoughts, right?
- 33:37And this might not be news to some designers or people in some circles, but there's some
- 33:42more modern ways of working on the web.
- 33:44One of them is this tool called Sketch.
- 33:45And it's not because it's an amazing drawing tool, although some people think that, but it's
- 33:51because it renders very close to what the browser is going to render.
- 33:54And if you are a designer and you understand how the web is built and you understand how the grid
- 33:59system is going to be displaced and you understand maybe a little bit about the box model, then you can
- 34:03create these beautiful designs that are very easy to hand off.
- 34:07And there's tools for that as well, right?
- 34:10There's a tool called Zeppelin IO.
- 34:11There's another one that I like lately called Simply, which is spelled in a very silly way.
- 34:16And I can't remember, so I won't quote it.
- 34:18Maybe that'll be in the show notes.
- 34:19And there's another one called Avocode, like avocado, but with code in it.
- 34:24And what these are, I like to call them automatic redlining tools.
- 34:29And so what you can do is you can load up that sketch file.
- 34:31The designer can do it, share it with the team, and you can just click on things and it gives you
- 34:35measurements between stuff.
- 34:36So for me, when I'm building stuff on the front end and I'm building out the CSS, like I need to
- 34:41click on an object.
- 34:42I need to know how far it is between the edges of the button.
- 34:45How far is it between the other objects?
- 34:47So I can add padding, spacing, and all this kind of stuff.
- 34:50I need to know the exact colors.
- 34:51And so they allow you to lock down the colors and name them.
- 34:55And so hopefully you're not naming them like purple haze or some crazy name, but it allows
- 35:01you actually as a designer to be a little bit more programmatic and think in systems, which
- 35:05I think most engineers actually appreciate if you're given a set of colors as variables that
- 35:12imply the use or explain the use.
- 35:14So this can be injected much earlier on.
- 35:17You can use a tool like this for measurements, makes the front end code easier for whoever
- 35:21ends up doing that.
- 35:23Maybe it's a designer, but maybe it's someone on the dev team.
- 35:26It just depends on who does it.
- 35:28Yeah.
- 35:28I really like the idea, especially of working within the constraints of like the CSS box
- 35:32model and stuff in the grid system, because I feel like that's where it gets really hard.
- 35:37It's like, I want it to go like this, but then you move it, it goes like this.
- 35:40You're like, but that's so hard in HTML, right?
- 35:43So you're kind of like, you're working with the same clay, not steel versus mud or whatever.
- 35:49And it's getting better.
- 35:50I think with flex box and CSS grid in terms of grid systems, some of this is getting a
- 35:55little bit better and less, less hacked, but some things that I've done, you don't see that
- 36:00many tables as front pages anymore.
- 36:02Yeah.
- 36:04I'm building all my websites, all the tables.
- 36:07They're all like, like this cut up Photoshop from the nineties.
- 36:09Yeah.
- 36:09Or two thousands.
- 36:10This portion of talk Python to me was brought to you by GoCD.
- 36:15GoCD is an on-premise open source, continuous delivery tool to help you get better visibility
- 36:21into and control of your team's deployments.
- 36:24With GoCD's comprehensive pipeline modeling, you can model complex workflows for multiple
- 36:29teams with ease.
- 36:30And GoCD's value stream map lets you track changes from commit to deploy at a glance.
- 36:36Say goodbye to deployment panic and hello to consistent, predictable deliveries.
- 36:40We all know that continuous integration is super important to the code quality of your applications.
- 36:44Choose the open source local CI server, GoCD.
- 36:48Learn more at talkpython.fm/gocd.
- 36:52That's talkpython.fm/gocd.
- 36:54I think when you're coming at this, right, like you have to think about like what's going
- 37:00to be the most fluid process.
- 37:01Like how can you help the people on the other side?
- 37:04Like if you're a designer and you care about the design, like you want to hand this off
- 37:07in a way that's going to kind of carry over the design intent.
- 37:10Clearly, like we both, you were joking, like I gave you the image, like just build it.
- 37:16Like it's so hard.
- 37:17And what I see a lot of from designers, hopefully there's no designers listening in, but they
- 37:22send me these beautifully rendered high fidelity mocks, which look just like the regular website.
- 37:26And maybe they're even in sketch.
- 37:28So I'm like, awesome.
- 37:29I can use one of these tools and build it out even faster rather than having to, you know,
- 37:33try and estimate measurements or get it close by eyeballing or taking measurements myself.
- 37:38Then they didn't do anything for the mobile or tablet or maybe even tablet.
- 37:43But it's like, so I'm placed in the position and I obviously had some design background and
- 37:47maybe this happened to you where it's like you have to invent the whole mobile experience.
- 37:51And if they don't have a lot of experience of like responsive and how things are going to
- 37:56displace or stack on mobile or the box model, then it might be kind of a disaster.
- 38:02You might have to rethink patterns on mobile and it might be quite difficult.
- 38:06And so, and I don't know why, but they just like skip that whole part.
- 38:10Like it's like, it's kind of like the modern day version.
- 38:13I think of just handing off the image is like, oh, the mobile.
- 38:16Yeah.
- 38:16You just like put a hamburger menu on that.
- 38:18Exactly.
- 38:18Using the foundation, right?
- 38:20So you'll be fine.
- 38:21Exactly.
- 38:21Yeah.
- 38:21We're using foundation.
- 38:22It's responsive.
- 38:24It says responsive.
- 38:25It says responsive right there in the design.
- 38:26Yeah.
- 38:27I've had people say, you know, this website is not responsive.
- 38:30I thought you were using bootstrap.
- 38:31It's like, you know, you have to employ the features of the thing that add the responsiveness
- 38:37to it.
- 38:37Right.
- 38:37It's not just pixie dust.
- 38:38You sprinkle on it.
- 38:39Right.
- 38:40Yeah.
- 38:40And there's some patterns that are, they're challenging too, like mega menus and that kind
- 38:45of thing.
- 38:45Like how does that work on mobile?
- 38:47Like that, it depends, right?
- 38:49Depends on what kind of crazy menu you've thought up in the first place.
- 38:51Yeah.
- 38:52Yeah, for sure.
- 38:53Smaller minimalist.
- 38:55That's what I say.
- 38:56One thing that you brought up is like having like named colors and things like that.
- 39:00Like, do you recommend that the dev team use something like SAS or less or one of these
- 39:06sort of more programmatic CSS super languages?
- 39:09I don't know what you really call them.
- 39:10I'm making that up.
- 39:11Yeah.
- 39:11I think it's a really good move, especially I think in two instances.
- 39:15One is where you're in a team environment where multiple people will be working with the
- 39:20CSS and making modifications to it.
- 39:22And the other reason why is when the project gets large for maintainability.
- 39:26I think SAS does a couple of things.
- 39:29So it is programmatic.
- 39:30Sorry, before we get too far, maybe not everyone knows less than SAS.
- 39:33You want to just define that real quick for them?
- 39:35Yeah, sure.
- 39:36So if you don't know less than SAS or, you know, there's post CSS as well, but they're
- 39:41CSS preprocessors.
- 39:42And so what allows you to do is use things like variables, functions also allows you to
- 39:49create mix ins, which are also kind of like functions that return CSS code, code in quotes.
- 39:54They also allow you to split up your code across multiple files.
- 39:58And so you can create something that's much more programmatic.
- 40:02But I think the most important thing isn't that it's programmatic.
- 40:05I mean, sure, you could start generating like tint lists and this kind of stuff with colors.
- 40:09But I think what's more interesting about it is the organizational aspect of it.
- 40:14I don't know about you, but I've worked on projects where you come on and you go, okay,
- 40:18and maybe it's multiple CSS files, but it's usually like one CSS file.
- 40:22And you open this up and you're like, what?
- 40:23You're like, it's like maybe being created by five people that like things are named like
- 40:29something, something like number two dash three.
- 40:32And you're like, and you're going through this trying to make sense of it.
- 40:34And it's difficult.
- 40:35Like we have a 5,000 line CSS file and one of them.
- 40:38And why?
- 40:39Yeah, exactly.
- 40:40Like, why is this okay?
- 40:42Yeah, so I think that's a disaster.
- 40:44Because like, how are you going to maintain that?
- 40:45Like, that's like opening up a single 5,000 line Python program.
- 40:51That's not any sort of order.
- 40:52Like, what are you going to do with that?
- 40:54Well, yeah, you know what I think is even worse, although I totally agree with the analogy,
- 40:58is a lot of times that file was started as like a zero byte CSS file was added to and added
- 41:04to as the site or the app has gone through many prototypes and many phases and features were
- 41:10added and then like canceled, but they're just they're all still in the CSS.
- 41:14It's like the tree rings of growth of the app.
- 41:16And you don't want to take it out because you're like, well, what if what if that one part that
- 41:22is like in this obscure page was depending on that thing?
- 41:25It's just really hard to know that you can like clean up this dead CSS code equivalent.
- 41:30Yeah, they do have a good tool for that now called un-CSS.
- 41:34It's the equivalent of if you've ever had your room be a disaster, which I know growing up
- 41:40mine was a disaster.
- 41:41My parents were always yelling at me, clean your room.
- 41:44And then if you took everything in the room and like shoved it in the closet, I think it's
- 41:49equivalent of that.
- 41:50But it basically looks at your website and what CSS selectors are being used and it basically
- 41:55dumps the rest.
- 41:55But it's still just a mess.
- 41:57It's just it's still on the file.
- 41:59It just doesn't render out to the website.
- 42:00So it's a good solution.
- 42:02But that's cool.
- 42:03How does it work with potentially like dynamic stuff like Chameleon or Jinja 2 templates?
- 42:10How does it work with like, say something behind a login versus public?
- 42:14You know what I mean?
- 42:15You're like, oh, there's that admin page thing.
- 42:18Maybe is it like, does it address any of that stuff?
- 42:21There are ways to configure it to address these types of things.
- 42:24But just like as you're sweeping things into the closet, like for me, I don't think it's
- 42:28a very elegant solution.
- 42:29Right.
- 42:31And so then you're like, okay, like, how can I program this stuff to sweep more stuff
- 42:35into like the new things that are coming into the room or something?
- 42:38I think this is where the organization helps because you can kind of keep things pared
- 42:42down.
- 42:43And I found when you keep things organized, just like in your room, if you had a clean room
- 42:47is like perhaps you get older and you're more clean or organized.
- 42:51You can find things very quickly, right?
- 42:53Like you're like, where is this thing?
- 42:54And so when you go and inspect it in Chrome, because you have a map, it'll tell you it's
- 42:59in this file on this line.
- 43:01It's like very obvious.
- 43:02And not only that, but if you name these files correctly and create a good sense of structure,
- 43:07then they're already named with the views or the names of the components or this type
- 43:11of thing.
- 43:11So it should be like super obvious, like what's going on.
- 43:15Yeah, that's cool.
- 43:15A lot of times I'll try to have like a navigation CSS file, maybe like a store CSS, a homepage
- 43:21because homepage, like the landing page always seems to have like a bunch of insane styles
- 43:25that don't appear elsewhere on the site.
- 43:28So yeah, I definitely think organization is important.
- 43:31Organization I think is important.
- 43:33And then the programmatic nature of it, what it does is it allows you to maintain design
- 43:38consistency.
- 43:39And so as you might move towards a larger app or towards something where the visual design
- 43:44is more important, it's like really key.
- 43:46Like if you're using, like I'm working on a project right now where one of the brand colors
- 43:51is red.
- 43:51So it's, you know, red in the logo.
- 43:53And so we use this branded red everywhere, but it's maybe not obvious to you if you don't
- 43:59have a design background that you're using the wrong red.
- 44:01And so this is, like I said, I went through like hundreds and hundreds of variations of those
- 44:05reds to kind of clean it up.
- 44:07And, you know, you find this like pound, like foo, you know, F zero zero, this kind
- 44:11of red.
- 44:12And it's like, that's not the right red.
- 44:14And so the other thing that's really nice with SAS or less, but I think a lot of people
- 44:18don't realize is you can create code linters to kind of prevent this type of behavior, this
- 44:22accumulation of things.
- 44:23So you can kind of create good practices and instill them in a coding conventions document,
- 44:29but also have them enforced or at least warned when they're running the preprocessor.
- 44:33Oh, wow.
- 44:33You could even like bring that into like a continuous integration workflow.
- 44:36Yeah.
- 44:36And you could either warn people or kick them out so that it won't render the CSS.
- 44:40Actually fail the build.
- 44:41That's crazy to fail the build because the CSS is like using the wrong color.
- 44:45I think that's awesome.
- 44:46Didn't know that was an option till just now.
- 44:48Sure.
- 44:49So maybe that's a good place to like touch on a few final things around methodologies.
- 44:54Like one of the things you've talked about is designers, developers working together using
- 44:58outdated methodologies that make it harder for them to do work together.
- 45:02They have to do a lot of rework.
- 45:04Want to give us some thoughts on that?
- 45:06I've been doing stuff on the web for quite some time.
- 45:08And I think like the old school way is, like you said, like the designers like huddle and
- 45:13come up with some crazy design and kick it over the fence.
- 45:15And then you're like, I know I've been panicked.
- 45:17I remember I used to work at Pulse magazine.
- 45:20It was a magazine put out by Tower Records, if you can remember back then when they were
- 45:24still around.
- 45:24Like music when it came on a physical thing, you carried it around?
- 45:27Yeah.
- 45:27It was like all like on CDs and this kind of thing.
- 45:29And so I worked at a music magazine and I remember that creative director came up with
- 45:34this design.
- 45:35And this is back in the days of tables.
- 45:37And he had this like thing that would overhang, like a flourish that would overhang the rest of
- 45:42everything else underneath it.
- 45:43And I said, this is going to be so difficult to make.
- 45:46And I like kept, you know, like this whole kind of argument.
- 45:48And he didn't buy it at the time.
- 45:51But this is like the thing, like kicking it over the fence and like developers, you're going
- 45:55to have to struggle and make it work or else, right?
- 45:58Or this kind of argument that goes on.
- 45:59So if you've been in that position, it kind of sucks.
- 46:02But there's newer ways of working, I think, than just like kicking it over the fence and
- 46:06the developers just trying to build it by some sort of weird ways.
- 46:10And part of that is one, there's this idea of design systems.
- 46:14And this is kind of like a big area.
- 46:16But there's kind of two parts of a design system that I think could be really useful for anyone
- 46:22who's approaching a large project, a redesign, some sort of like major changes.
- 46:26So like not, not like you're building the app day to day, but like you're going, like maybe
- 46:31you hire an agency or something like that.
- 46:33And it's like a radical redesign.
- 46:34And so those two things that I think you can really gain, which could become a great part
- 46:39of a design system is creating front end code in isolation.
- 46:43So you talked about building it kind of integrated into the backend.
- 46:47And so making sure you can kind of make tweaks on the color and all that stuff.
- 46:50And then you can see it live.
- 46:51I'm actually advocating a little bit the opposite, but only in the case of redesign,
- 46:56but to create the layouts and the patterns in a simplified form.
- 47:00So you can kind of share with the other developers what they look like and they can see it.
- 47:04Are you suggesting they create that in HTML and CSS or that they create that as like a Photoshop
- 47:09type of graphic?
- 47:10Put a little structure on that.
- 47:11I'll be quite specific.
- 47:12I wouldn't advocate just using like static HTML and CSS.
- 47:16And so what I would say I am an advocate of is if you're going to build front end code
- 47:21starting from a framework, if you haven't already, because why reinvent the wheel?
- 47:26Why do all that cross browser testing?
- 47:27Like grab bootstrap, grab foundation if it's more appropriate and use that.
- 47:32And then with these projects, especially with Zurb Foundation, there's all this front end
- 47:36tooling that comes with it.
- 47:37And so Zurb Foundation comes with this really interesting thing called the Zurb template.
- 47:42And what it is, is it's a bunch of tooling that Zurb used to use internally that they
- 47:47open sourced as an agency.
- 47:49Now, what they do is very interesting because they build different websites for different
- 47:53people, right?
- 47:54So last time I heard, they produce something like 100 per year, which is kind of crazy.
- 47:58I think that's like one every three days, like a new website coming out.
- 48:03And one of the things that they do is they produce front end code for these clients.
- 48:07They don't just produce like you're saying that the here's the image, build it.
- 48:10And so it's very interesting.
- 48:12So this is what they do as an agency and they're working across a lot of different industries
- 48:16with a lot of variation in the visual design, the visual branding.
- 48:19And so they've actually created their own internal toolkit to help them with that problem.
- 48:24And so that's what this is.
- 48:25And it's basically a static site generator similar to Assemble with some helpers that are
- 48:30specific for front end prototyping that make the process really quick.
- 48:33So like when you need to repeat things, like you have a bunch of images and you're like,
- 48:37I need 25 images.
- 48:38You just repeat it 25 so you don't have the pattern repeated a bunch of times in the HTML.
- 48:42It has partials, which are great because if you're building it with the intention of handing
- 48:47it off to a team, for example, like a Django team or whatever, you can understand like what
- 48:53kind of partials are they going to use on the back end?
- 48:55You can build it in the same way, the front end code.
- 48:57So it'll resemble that when you're looking at it.
- 48:59And then it also has this tooling for the SAS build, which has auto prefixer and it could
- 49:06have on CSS and other things, but you can build things really quick, live reload them in the
- 49:10browser and it's super fast.
- 49:11And so this is how I build front end code.
- 49:13But the other part of it, it's also got a thing called style Sherpa, which will help you to
- 49:18build a living style guide, which is basically this set of documentation.
- 49:22So if you've used bootstrap, if you're not familiar, go check out the bootstrap website,
- 49:27their documentation is fantastic.
- 49:28Check out Zurb Foundation, look at their documents there.
- 49:31Like, how do you use it?
- 49:33This is what style Sherpa does.
- 49:34You just put basically a code snippet in a specialized markdown format with code fences and you call it
- 49:40HTML example, instead of using, you know, just HTML.
- 49:44And what it does is it walks, it'll go and render out the live code in the browser and then have like a
- 49:49copy and pasteable version right below it.
- 49:52And so you get the same kind of automatically built style guide that you would get from
- 49:56Zurb Foundation pared down a little bit, but specific to your project.
- 50:00I think this is a great set of really concrete things that developers and any designers who
- 50:07happen to might be listening to this episode as well can take and use.
- 50:11So it feels like we've come a long way in the last 10 years, starting with these sort of front
- 50:17end frameworks, but also in the development world, we kind of moved, I'd say around the,
- 50:22year 2000 and all this agile stuff that was going on and whatnot then.
- 50:27And that maybe brought some other challenges with it, but it was quite a big shift.
- 50:30And it feels like the design world is also finding really new, interesting ways to work together with
- 50:35the developers.
- 50:36Yeah, absolutely.
- 50:37Yeah.
- 50:37Awesome.
- 50:39All right.
- 50:39Well, I guess we'll, we'll get a little on time, so we should probably leave it there
- 50:43for the design stuff, but let's go to the two questions.
- 50:46So if you're going to write some code, either Python or maybe HTML, what editor do you open
- 50:52up?
- 50:52I always open up sublime text three.
- 50:54I'm a huge sublime text fan boy.
- 50:57I've been using it since version two, which I guess doesn't sound that long ago, but they
- 51:01have a very long version cycle.
- 51:03But yeah.
- 51:05Yeah.
- 51:05And I used to work with them and some other editors and I just something about it.
- 51:09It just like, I feel like, like I don't even have to think like I could just work really
- 51:13quickly.
- 51:14As far as notable packages or libraries, what do you think?
- 51:17I would say the number one package that I use and it's super old school.
- 51:21It used to be called Zen coding, but now it's called Emmet, which I don't know that's a great
- 51:25name, but basically it does two things.
- 51:28One, what you do is you can type in a shorthand syntax, which is going to be very similar to,
- 51:34for example, like Ruby slim or Hamill, right?
- 51:36Where you have a CSS selector and you're just kind of combining them together like a UL, right?
- 51:41And then you've got the LI and then you can multiply.
- 51:44And so you can build these structures really quickly in HTML.
- 51:46Let me give a concrete example where people are listening if they haven't seen this,
- 51:49because it's really awesome.
- 51:50So imagine you want to create like a unordered list of 10 items and you're in a static editor.
- 51:56You could type left bracket, left angle bracket, UL close, left angle bracket, LI close.
- 52:03And hopefully your editor at least closing those tags for you.
- 52:06And then you could copy and paste it.
- 52:07Or you could just say UL angle bracket, LI star 10 tab.
- 52:12And it goes boom.
- 52:12And it just expands them all out, right?
- 52:14Exactly.
- 52:14And it's like, I think the first time when you do something that's complex and you see the
- 52:18speed of it, you're like, wow, this is like magic.
- 52:21And I think the thing that it also prevents is like messing up on not closing the tags or
- 52:27using the wrong closing tag or these little mistakes.
- 52:30And I think when you're using these frameworks, you start to have pretty large structures like
- 52:34this, especially like the unordered list with all the line items and all this kind of stuff.
- 52:38And so it makes those structures really easy to build quickly and then also error free usually.
- 52:44Right.
- 52:44Like grid rows, for example, or something like that.
- 52:47And you can mix in CSS.
- 52:49So you could say like if you wanted the unordered list to be products and the items to be product
- 52:56as CSS classes, you could say like UL dot products greater than LI dot product star 10 and tap.
- 53:05And it would put all those classes on the elements as well, right?
- 53:07One thing maybe I'm not sure if it's because I do design or because I do code, but I really
- 53:13like there's a lorem tag you can throw in there too, and it just fills it with lorem text.
- 53:17But it's even better than that because it's programmatic because you can say like lorem
- 53:2010.
- 53:21It gives you 10 words of lorem, but you can say like lorem one, but you know how you're saying
- 53:26you can use the asterix to multiply out.
- 53:29So what you can do, it'll actually give you different lorem text for each of those items.
- 53:35So if you're building a menu, it's fantastic.
- 53:37That's awesome.
- 53:38That's like the lorem, some sort of meaningless text to just fill in stuff that,
- 53:43those stakeholders don't look at it and go, whoa, but it's not supposed to stay there.
- 53:46It doesn't mean it's not what it's going to be there.
- 53:48This is just filler.
- 53:49So like lorem Ipsum is that thing.
- 53:50Do you know about hipster, hipster, hipster, hipster, hipster, hipster, no, no.
- 53:55What is that?
- 53:56It's hip sum.co.
- 53:58It's the same thing as lorem Ipsum, but it's hipster speak.
- 54:01That sounds fantastic.
- 54:02It's fantastic, man.
- 54:04It's, it's beautiful.
- 54:05And maybe I'll read you a little, like if I could just pull it up here, let's just do it.
- 54:10It says shabby, chic, aesthetic, subway tile, pabst, a fagetto, dream catcher, narwhal.
- 54:16It just goes on and on.
- 54:18It's beautiful.
- 54:18I've been starting to move towards the hipster Ipsum lately.
- 54:21Nice.
- 54:22Maybe we should fork Emmett and integrate the hipster Ipsum in there.
- 54:26We definitely, definitely should.
- 54:28All right.
- 54:29Well, I definitely recommend that as a editor plugin as well.
- 54:32That's cool.
- 54:33So final call to action before we call it an episode.
- 54:36Yeah, cool.
- 54:37So if you've been listening and you're interested in what I've been talking about,
- 54:41this kind of intersection between design and engineering, the best thing I have for you
- 54:46is I've got a list, but it's kind of a secret list.
- 54:48You won't find it advertised on my website.
- 54:50But what I do have is I have a free email course where what I do, like these two big wins I talked
- 54:58about using the front end code.
- 55:00And so if that sounded compelling to you or created the coded style guide, you can learn
- 55:04how to do that at design systems crash course.com.
- 55:08But more importantly, after you're done with the course, you'll get on this kind of internal
- 55:13insider circle list that I've got.
- 55:15And I send emails out daily and I talk about this stuff all the time, like how to use front
- 55:20and gold and like how to build code, how to work with SAS, like how to make sure colors
- 55:24are consistent.
- 55:25And so if you've got the kind of like design twinkle in your eye or in the back of your
- 55:30head, like it might be something you might want to check out design systems crash course.com.
- 55:34But I also have something else because I know this is a Python show and I wouldn't want to
- 55:39leave empty handed.
- 55:40I did a lot of searching on Zerb Foundation and Python and I thought, wow, this sucks.
- 55:45There's a lot of confusion and people trying to integrate frameworks and not knowing what to
- 55:50do.
- 55:50And there's some packages that have gone stale.
- 55:52So I'm putting together a resource for using frameworks with Python.
- 55:56And so I'm going to talk about the major ones, Bootstrap, Zerb Foundation, and UIKit.
- 56:01And so if you're interested in any of those three and you haven't been using them in your
- 56:04current projects, I'm going to put together a resource there for you so you can get started
- 56:09with it very quickly.
- 56:09All right.
- 56:10Yeah.
- 56:10I'll link to both of those in the show notes so people can check them out.
- 56:13James, it's been great to have you on the show and really enjoyed this design focused
- 56:17conversation.
- 56:18Yeah.
- 56:18Thank you.
- 56:18Thanks for having me.
- 56:19You bet.
- 56:20See you later.
- 56:20This has been another episode of Talk Python To Me.
- 56:24Today's guest has been James Stone.
- 56:27And this episode is brought to you by Linode and GoCD.
- 56:30Linode is bulletproof hosting for whatever you're building with Python.
- 56:35Get your four months free at talkpython.fm/Linode.
- 56:39Just use the code Python17.
- 56:42GoCD is the on-premise, open-source, continuous delivery server.
- 56:47Want to improve your deployment workflow?
- 56:49Keep your code and builds in-house?
- 56:51Check out GoCD at talkpython.fm/gocd and take control over your process.
- 56:58Are you or a colleague trying to learn Python?
- 56:59Have you tried books and videos that just left you bored by covering topics point by point?
- 57:04Well, check out my online course, Python Jumpstart by building 10 apps at talkpython.fm/course to experience a more engaging way to learn Python.
- 57:13And if you're looking for something a little more advanced, try my write Python code course at talkpython.fm/pythonic.
- 57:21Be sure to subscribe to the show.
- 57:23Open your favorite podcatcher and search for Python.
- 57:25We should be right at the top.
- 57:26You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 57:36This is your host, Michael Kennedy.
- 57:38Thanks so much for listening.
- 57:39I really appreciate it.
- 57:40Now, get out there and write some Python code.
- 57:42Thank you.
- 57:42Thank you.
- 57:42Thank you.