We're talking addendum's and corrections, updates on Chris' text game, browsers built for designers, saying farewell to Firefox?, the best way to spin up a brochure website, and how Gutenberg in WordPress is these days.
Time Jump Links
- 02:22:12 Addendums and Corrections
- 08:53:18 Text game update!
- 12:03:17 Sponsor: WordPress.com
- 14:25:12 Browsers purpose built for designers
- 25:51:10 Firefox farewell
- 38:15:10 Sponsor: CodePen
- 47:56:12 Best way to spin up a brochure website?
- 56:26:00 Any experience with Gutenburg
Episode Sponsors 🧡
If you can host a site for yourself, a friend, or a client on WordPress.com, you should. Not only is WordPress powerful, flexible and easy to use (to the tune of powering a third of the internet), using WordPress.com means never having to worry about dealing with servers and software yourself.
Your website has a unique look, so why should the code and demos you provide there look generic? The CodePen Embed Builder allows you to build themes to completely customize the look of Embedded Pens. Change the look of your site? Just change the theme and all your Embedded Pens change too.
As a PRO, you'll be able to build unlimited themes, remove the branding, and even use your own totally custom CSS.
MANTRA: Just Build Websites!
Dave Rupert: Hey there, Shop-o-maniacs. You're listening to another episode of the ShopTalk Show. I'm Dave, at home with the kids and it could get especially rowdy today. A neighbor kid is coming over.
Chris Coyier: Fun!
Dave: Anyway, we'll see how it goes. Anyway, and with me is Chris.
Chris: What do they do together? Do they play blocks or are they too old for that? TV, the iPads?
Dave: Too old. They just run around and yell Zelda things, I think, is sort of how that work now. [Laughter]
Chris: Oh, I'm looking forward to that phase. Yeah?
Dave: Yeah. Yeah.
Dave: They just kind of run around and yell, so that's a fun--
Chris: Yeah, and they--
Dave: --a fun game for kids.
Chris: They need dad sometimes, but not all the time, right?
Dave: No, no, the irony is, and these current times sure have changed it but the irony is having kids over is the best thing because your kid is now entertained without your assistance. You may need to provide--
Dave: You're on snack duty kind of at that point, so it's kind of--
Chris: Yeah. Yeah, "make sure nobody breaks their leg" duty or whatever.
Chris: Yeah, but the dishes can be done or whatever.
Chris: Love that.
Dave: Always be closing. Let's do it.
Anyway, let's kick the start of the show. Do you have anything that's on your mind, like super strong, this week?
Dave: Well, we do have a slight correction we need to issue.
Chris: I'm aware that having a good GPU is good for video games. That's the number one fact I know.
Chris: The number two fact is that, in CSS, sometimes the goal is to get things to render on the GPU. I remember you used to use a 3D transform to trick--
Dave: You know I don't know the technical reasons but, historically, the reason it's good for graphics and video games was because it just says, "Okay, tell me. Describe the space to me. Okay, here are the vertices or whatever. I know how to do all the math for vertices, and so I'm just going to do it. It was very good at calculation. As a result, cryptographers and people like that and machine learning have picked it up, too, because of its ability to do math, whereas a CPU is maybe optimized for, like -- I don't even know operations. I wish I had a really good explanation here, but it's more like -- yeah, I don't have a good thing.
Chris: Yeah … thing.
Dave: But it's basically like there are certain tasks, like a GPU really excels at and that can be math or big, heavy computation.
Dave: Whereas, maybe a CPU is optimized for other stuff.
I remember we talked about the idea, as much as possible, off thread is ideal. It's just a little hard to know what and when to do that.
Dave: Yeah, and I think we kind of came up with, any time you do async code might be a place where you could spin off a worker.
Dave: That then runs code. GPUJS over at gpu.rocks is somewhat similar. But if you think about, like, you have a four-core CPU or, maybe if you have a fancy computer, an eight-core CPU, you have eight potential threads that you can run. Probably more but, basically, eight CPU cores you can do math on.
If you do a GPU, well, now you have access to a whole other chip that can do math on, and so you can get very fast.
Dave: You now have a whole other -- you're not even on the main chip. You're on the, like, other chip inside your computer that can do math. I think my GPU has 3,000 CUDA cores or something like that. I have 3,000 cores or something on that GPU.
Dave: If you think about I in those terms, it's different, right? [Laughter] I can do a lot of threads over here, a lot of math over on that GPU.
Chris: Gpu.rocks is the URL for this. It's probably something that you could do anyway, but it's a library that abstracts it away so that you just constGPU=newGPU and now you have this thing to talk to that has an API for running stuff over there. You still need to know what you're doing. This isn't going to allow you to do anything out of the box without -- you know you don't -- you're not benefit without knowing what you're doing over here. I would have no idea what to use it for, but I'm sure there are people that have a very strong idea of what to use it for.
The website itself has this, like, jellyfish at the top that's doing something that very much looks like it's going to slow down my browser. It looks like a GIF rendering or a movie, but it doesn't do anything. It hardly affects the memory usage at all on the page. I do think of your -- I know you've brought this up many times is the paravel.com page.
Chris: Where you're doing some -- that's not Paravel.com. That's the medieval castle.
Dave: Paravel, yeah. Paravel.com is somebody who does not want to sell their domain. [Laughter] Paravelinc.com is my website. Yeah, we have the big background image that we're kind of cycling colors. Yeah, they're looking like they're doing--
Chris: Are you already doing it as a worker?
Dave: In worker, yeah. I've optimized it a little bit. I could probably get better because, again, I don't particularly understand array buffers and stuff like that. That's all, like, I could probably make it better doing that. But this GPUJS, I don't know what they're doing here, exactly, but they are glitching out this image pretty big. Oh, they're just replacing different PNGs and GIFs, so I don't think that's actually math they're doing. They're just swapping image sources.
Chris: Well, what's funny to me is then it's still -- oh, and some of them are GIFs.
Dave: Yeah, yeah, yeah.
Dave: It would be for more like intense calculations or something like that. One common thing that people do is Bitcoin mining through the GPU. If you were going to create a client-side miner, this would be the tool to do it. [laughter]
Dave: Not that we really condone that, but--
Chris: You know I have -- here's another -- in my little text game, text game update, there's a highlighting, so there's just constantly text just streaming into this field. Imagine, you know, almost like the matrix view or something but it's like bottom-up. Like if you're on a Slack channel with 10,000 people and everybody was talking. It's just, whoa, it's just flying up from the bottom. But it's syntax highlighted too. It's not just, like--
Chris: You know what I mean? Certain words are there and there's a function to be like, "I want to highlight this word whenever it comes up," because let's say you make a friend in the game and you want to highlight them in special friend pink.
Chris: Then you can add that as a storage thing and then that's -- so there's a highlighter. The highlighter has work to do to do it. I wonder if that's the kind of thing where you could be like, "Okay, I got the text from the game. I'm just going to render it. But then off-thread, I'm going to run the highlighter over it because that might take a minute because it could be a big chunk of thing. it's got a RegEx over it. Then when it's done, I'll DOM replace it in the feed so that then it's highlighted. It's kind of like async highlighting. I wonder if that would be a use case.
Dave: I think that would be a great place. You kind of just send it a brick of text and say, "Come back with a highlighted brick of text," or something or, you know, stuff like that.
Dave: Or just tell me yes or no if this thing exists in there. Maybe that's all you're trying to do there.
Dave: You know?
Chris: Actually, that would be interesting too. But it would be a little weird to have a flash of unhighlighted text, in a way. It's kind of nice, but you wouldn't want to slow it down either. Like all games, it's very time-sensitive, so rendering is absolutely fast as possible after you get that piece of text is paramount, you know?
Dave: Yeah, but maybe you have to do a pre-render operation, sort of. Yeah.
Chris: Yeah, you might have to.
Chris: Anyway, it's just kind of interesting to think about. It's not every day that you're going to have this type of stuff. My dream, of course, is that this technology improves and then libraries start taking advantage of it in a way that we don't have to think about.
I think Redwood has pretty good potential here, to be honest, with just how they've broken up the component lifecycle into those cells, I think is what they call them, but they have loading, success, error. They have those different cells. Those could all kind of behave intelligently. You know? Because it sort of assumes the data is coming from somewhere.
Chris: This is all related to, you know, React has suspense now or whatever.
Dave: Yeah. Yeah.
Chris: That's related, too. It's like you'd think anything suspense related to could make use of off-thread stuff.
[Banjo music starts]
Chris: This episode of ShopTalk Show is brought to you in part by WordPress.com. You might know WordPress.com as the hosted version of WordPress, so you need nothing at all. You want to spin up a site, you go to WordPress.com. You spin up a site and it could be for anything.
It could be an e-commerce site. It could be a landing page site for your business. It could be a portfolio site. It could be a photography-based site. It could be a blog, of course. I love all those ideas.
Please have a site for the things that you do, including a personal website and those for your businesses. That would make me happy and it'll be a site that you don't have to worry about because it's totally handled by them, right? There's no performance concerns or getting hacked concerns or all that. I really like it when people choose WordPress.com for sites with zero technical debt. Let them handle the stuff.
This is something that I don't think a lot of people know. It's a relatively new thing is that you can have -- and you've got to be on the business or e-commerce plan to have this -- SFTP access to the site and you have database access as well. It's really similar to any other host, right? You sign up for a hosting plan and they're like, "Here's your welcome email with your SFTP credentials. This is how you SFTP in and put the files here. That's how you operate a website."
A lot of us these days--I know this is how I do it--have some kind of deployment system set up that has access to those SFTP credentials so that I'm working locally. I'm working in Git. I'm committing to branches and all that. The deployment software is like, "Oh, somebody pushed something to master. I'm going to go ahead and deploy that to the live site." That's how I do things. I think that's a nice kind of DevOp setup that even somebody like me can do without extreme DevOps knowledge.
There's no reason those SFTP credentials couldn't be to your WordPress.com plan. You're just using it like a WordPress host, which I think is really neat. It's like you can still have this modern developer workflow be working locally on your WordPress site and then shipping it up to WordPress.com. You could have your own plugins, your own theme. You can mess with the functions.php file.
It's still your totally custom WordPress site. It's just hosted on WordPress.com. It's kind of a mind shift because I don't think people think of WordPress.com in that way and that's because it's new and you can do it now, so try it out.
[Banjo music stops]
Chris: I am just talking out of my depth here. Maybe we should cycle onto something where I actually know what I'm talking about a little bit, but not too much because that's limited.
I was starting to collect links because I feel like every time I see one of these type of apps get linked up, people are like, "Oh, my god. This is so cool. I've never heard of anything like this." Then I see a different one. Then I see the same type of sentiment.
It turns out there's a little submarket around these types of browsers that are purpose-built for developers. It's not just Chrome and Firefox or Safari or whatever. It's like Blisk or Sizzy or whatever.
Chris: The idea is mostly responsive design. One of them is, yeah. Sizzy is the--
Chris: I'm trying to evaluate them right now. The point is, you get this really big browser and then, instead of just showing one thing, it shows you--what do they call it--a device wall, kind of.
Chris: But it's a live device all and it's within one browser. As you're developing, you could have your mobile app open and your desktop open and just work away like you normally do. It's just, you're looking at both "versions" of your site at the same time. Kind of cool, isn't it? It's a clever idea, but then somebody took that idea.
These apps are that on steroids because they're like, well, I know who is using this browser. Its designers and developers are using it to do their day-to-day work. Why not put a dark mode toggle right in the UI? You click it. Now you're in dark mode. If you unclick it -- you don't have to go over to system preferences or whatever you do on Windows to find the toggle and change it. It's just right into the app.
It has all these little features built into these apps and they all have different features but it's kind of clever. Now that I'm actually looking at them, I'm like, "Hmm." I wonder if my day-to-day work would actually benefit from actually using one of these because, to be honest, I don't. Do you? Have you heard or seen these?
Dave: Well, you know, Electric Pulp, a very talented agency, they did the Stephen Colbert websites and stuff. But they had this thing called Duo a long time ago. It used to be on the Mac app store but I don't think it is there anymore. I liked it and I've actually built something similar called Double Wide that would give you a mobile column and a desktop column.
Dave: It was just a plugin with some iframes and it would try to scroll match, but then it'd bottom out. But, yeah, these tools are cool, especially if that's the piece you struggle with. Does that make sense? Understanding or visualizing the responsive flow is hard. I think you need something.
I think, too, in teams, if you redesign the homepage, it'd be great to demo this with that app so that you could just be like, "Hey, here is the thing on 12 different devices or different screen sizes. Let's poke holes in what's wrong," or something like that. I think that would be a great use of the thing or a tool like this, a browser like this.
Chris: I kind of like your idea and the Duo idea. There was one more I looked at that encouraged that, like, just look at the two. They're really small, the small and the big.
Chris: A lot of the rest of these were focused on showing you eight at once and you're like, "Hmm. Maybe." I could see that mattering sometimes but probably, for most of us, it's the two or three.
Chris: You know.
Chris: Not eight.
Dave: Well, and yeah. Ideally, I think you need the two or three. I vote, for a long time, the code editor space is so precious, but I've wanted the mobile view in my code editor. I think you can do that with VS Code and Edge now. I think there's some interface to make that happen, like where you get a browser window in your code. I don't know because that could be kind of cool, like you're building it out and it's building automatically in your browser or in your editor. That would be kind of cool.
Chris: Yeah. There's got to be. Has nobody done it yet for VS Code?
Chris: Slap an editor in there. I bet they have.
Dave: Yeah, yeah, I think it's Edge. There's an Edge browser for code, which I have it, I think. I just don't use it but, ideally -- I don't know. I just -- I don't know. [Laughter] Just old habit, Alt-tab and go to the stupid -- [laughter] go to the browser.
Chris: Yeah, it's funny. What would you gain out of it being in there? Is there any integration that would matter? I don't know.
Dave: A debugger straight in, so dev tools or whatever straight in. If your code is barfing, it'll barf in the error console and code, if that makes sense. There is a benefit.
Chris: Oh, because of source maps or whatever? If there's an error in the browser, it could open up the file the error is in and show you that line? That would be pretty--
Dave: Yeah, it could maybe reference where it actually fell apart. That's kind of cool.
Chris: That is actually really cool because, at first, I wasn't even using the terminal in VS Code, really, because I was so ingrained in the other terminal I use and then slowly, but surely, I think it kind of pulls you into using the terminal in it because even just little things like you open a project and hit Ctrl backspace. The context of that console is the folder that you're in.
Chris: If you need it in a subfolder, you can right-click on that subfolder and go, "Open new terminal," and it'll open in that folder context. It's like, whoa, that's nice.
Chris: I almost use the console in VS Code more than a separate console.
Dave: Yeah. No, I--
Chris: But I'm not totally converted over yet. [Laughter]
Dave: Well, yeah. I mean I kind of still have a foot in both worlds but I use the Code console quite a bit. What I don't do is the launch. You know how you can set VS Code to launch the code. It's F5 on Windows. I'm not sure what it is on Mac.
Chris: I've got it set up. In mine, it's a .code workspace file.
Chris: Then that then has stuff in it. How does this work? I'm trying to remember. The idea is that you can tell it, though, to launch some commands when the code workspaces open up. For example, if it's an 11ty project and you have NPM run start as your script, if you open that project, it'll just open a terminal and run it because it's like, "I know what you're doing. You're trying to work on this project. You might as well spin it up as soon as it's open." You know?
Dave: You can type debugger in your Node thing and it gives you a step-in debugger for Node apps. If you're like 12 levels deep on a for loop, you don't have to just console log-out stuff in a terminal that then disappears. You can just stop the debugger in there and you get dev tools and stuff. It's pretty cool but I don't really use it that much.
Chris: Yeah, it's called tasks.json is the thing if you wanted to run your tasks here.
Dave: Okay, and it'll infer your task too. It can read your NPM scripts too. It's weird, so anyway.
Chris: Oh, really?
Chris: Yeah, I mean in my case, I have a task and I have a label of run Gulp. I use Gulp to spin up CSS-Tricks, for example, because--I don't know--I just do. I'm just fixing it right now because I've had one little problem with it where I spin it up and then the terminal opens and runs the command but then it says, "This is not supported by this version of Node." Something happened to my Node where it's always on the wrong fricken' version of Node.
Dave: That sounds right.
Chris: [Laughter] I NVM, you know, because that's obvious. Then I think this is just a good practice in projects anyway. In your package.json and/or in a .nvmrc or whatever file, you can say what version of Node you want, so you can just type nvm-use and it will automatically go to that version of Node.
Dave: Yeah, it'll remove it.
Chris: Then my command can just be nvm-use and Gulp.
Chris: When I open a project, it just gets on the right version right from the get-go. What do you think of that? Hmm?
Dave: That's smart. Hey! Solve the problem upstream, you know, using the least possible effort. I am into that.
Chris: Day-to-day, you just use Chrome or Edge for you, right?
Dave: I just use Edge, yeah. You know when Edge went Chromium, I considered going to Firefox or whatever, just kind of to support the open Web and whatnot. My coworker Trent did and a guy I work with, Joel, went over to Firefox. But I think he uses Safari, too.
I like some of the features of Edge like its read-aloud feature. I kind of have bookmarking synced. Then they have this new profile feature where it'll detect, like, "Oh, you're going to a Microsoft SharePoint. Do you want to use your Microsoft ID?" or something like that. You know? It's like, "Oh, yeah, that's what I want to use."
It kind of intelligently detects what email profile or browser profile you're trying to use.
When I was on three different clients with three different active directory things, I was like, "Oh, this is great," because I was losing my S-H-I-T logging and logging out of everything all the time. Anyway, yeah, now I'm good.
Chris: That's cool.
Dave: I spelled my curse word, so it doesn't count against me. [Laughter] But, yeah, so anyway, there are some good features of Edge. It's still the most well-designed browser to me, but that's being really snooty, but you know. Hey.
Chris: Yeah. Yeah. It's a weird world. We should at least acknowledge the fact that Mozilla had terrible layoffs, 25% of their workforce, which was about 100 people, so that's interesting that Mozilla is only 400 people.
There's speculation being flown around, you know. A lot of the speculation was, hey, they got a big contract with Google coming up. This contract represents 90% of Mozilla's budget. That fact alone, Mozilla and Firefox only exist on the--
Dave: Charity of--
Chris: Not that they couldn't scramble really quick but, yes, it's charity. I mean--
Dave: Well, it's antitrust protection insurance. You know what I mean? It's antitrust lawsuit protection service.
Chris: Yeah, right.
Chris: It looks like you're a little bit more like, if Google doesn't have any competition that that's not -- the law doesn't love that.
Dave: Yeah, yeah. It's going to end up like Microsoft and IE. It's not going to end well for them, I don't think.
Chris: I'm sure they see other advantages. I'm sure there are tons of nuance to this deal, you know.
Chris: I don't have all the facts here. I'm not a journalist. I haven't talked to lawyers. Whatever. But still, that's wild. There's an actual article quoting it's some $400 million to $450 million a year. That's a lot of money and you can definitely pay 100 employees with $450 million a year.
Dave: I hope so.
Chris: Oh, my god. That's not even in the ballpark here. There was another -- and then, right after they fired all the people, the contract renewed.
Chris: So, it wasn't the contract. That was, you know, it was something else. But they got rid of dev tools people, MDN people, and anybody that works on the platform. They got rid of David Baron, who everybody regards as this, like, he's a principal developer at Firefox. He knows everything about CSS and browser internals. Yeah.
Dave: Netscape, not Netflix.
Dave: He's been there since Netscape.
Chris: What kind of company is like, "Oh, this guy was just an absolute knowledge treasure who is actively participating, has ideas for how to solve container queries that he needs to get out to the world. Nah, we'll let him go." What?!
Chris: Then you're stopping development on dev tools, which is the one thing that developers kind of preferred in Firefox is they had some pretty interesting tools that people liked. That will never be worked on again.
Without getting too deep into any weird conspiracy theories here, it's dead. It's dead.
Dave: Well, yeah. You can't wholesale your team and just be like, "Well, we'll just hire new people to work on it when we're ready."
Chris: You can't re-staff. No way.
Dave: Yeah, you basically nuclear optioned your knowledge repository, you know, like the working knowledge of the system, and so that's bad for that. You know I'm sad about the Web VR. The Web XR team, I think, got cut and they were doing the coolest stuff, like really genuinely. I know that maybe speaks more of VR, actually, to flop potential VR, but they were doing cool stuff. They were coming up with cool ideas and interfaces and A-Frame is excellent. It's a declarative VR framework. You write HTML and create VR. It's ridiculous and it's gone or it's not gone, I guess, but those people are now looking for work.
I don't know what they're doing. You know when somebody--? It has to be they're moving to Chromium. I don't know because, like--
Chris: That's what I would guess, too.
Dave: How do you just cut a whole giant piece, a whole heart, like the community stuff, I guess, goodwill building portions of your company out, and then your blog post is like, "We're going to focus more on the community"? I don't see it because I'm just kind of curious. You got rid of the parts I liked, so what's left? The VPN? I guess I like the VPN.
Chris: If you tell me, "We are the privacy-focused browser. We care about--" and then some new Web technology comes around that needs to look at privacy, who is going to work on it? Well, not browser people because you don't have any of those any more. I don't trust you anymore to be the privacy-focused browser because you don't have anybody to work on those things.
Dave: Yeah. You got rid of all the people, so what? I don't know. Yeah, I can't see -- I read the blog post, but I did not understand the plan. Does that make sense? It was like, "We're going to be better."
Chris: Yeah. Right.
Dave: It's like, I just don't understand the plan here. I get times are tough and running a thousand-person company or whatever is a lot or whatever, but I just don't understand how you can -- I don't understand how the browser goes forward with the wholesaling a huge core of the team like that.
Chris: Yeah, well, show us. What are you going to do?
Chris: Let's see. Is it going to be interesting to me or am I not the target audience? You've already lost me, maybe, which is fair, so maybe they just don't care. You know?
Dave: Right. Maybe they're just following the money. I don't know. They're like, "Oh, we've got to build this VPN product because it's the only thing that actually makes money, or whatever. I don't know.
Chris: Yeah, maybe. That could be it. I don't think that the VPN, there's enough of a market there to replace that kind of budget. The other thing, if you're this privacy-focused browser, part of the job is to laugh and snicker at Google a little bit and be like, "Ew, big brother. Their ad tech is so gross." That's part of the narrative. You have to say that. Otherwise, nobody is going to care.
Chris: That's why you exist is to be the anti-Google. Yet, 90% of your budget is Google? What do you slap their wrist a little bit in a blog post and be like, "Sorry, daddy. I didn't mean it"? You know?
Dave: [Laughter] Yeah, I mean I don't know how you enforce the person who pays your bills or pays your rent, so you kind of can't bite the hand that feeds you.
Chris: If I sound salty, I am a little bit. It just seems like -- and this, but the thing is, this has been true for a long time. This happened to be the big kind of moment thing, but the fact that their budget has been from Google, that's just the way it is at Mozilla. You know? It's just now the tech is gone, so I think they know what they're doing. You don't fire all these people with fundamental knowledge of how your browser works if it seems like you're not going to have that technology for very much longer.
Chris: You don't need David Baron if your entire stack becomes Chromium.
Dave: Yeah, you don't need a dev tools team if you're hiring Paul Irish by proxy. [Laughter]
Dave: You don't need it because you already have a dev tools team at Microsoft and at Google. I hope that's not it, but if I were to--whatever--be a betting man, I think it would be -- I'll bet all my XRP Ripple Coin on the fact that they'll switch to Chromium, but I don't know.
Chris: They still own MDN. It's just the people because a lot of talk has been about MDN, too, like, "Save MDN! Oh, no! It's going to die." They're saying, "It's not going to die. We still have it. There's still at least one or some people on the team." I think it was mostly gutted.
Chris: But I think the original dude is there. Then some people will be like, "Well, it's a wiki, so it's fine." There's a lot of pushback about that, like, "No, it won't be fine." [Laughter] That's not--
Chris: That's not how those things work.
Dave: That's how -- [laughter]. You know? That's what I would do. Oh, we're talking about clamp in CSS? Link it to fix text. That's what I'd do. I'm always be closing Dave Rupert. That's marketing for me.
Chris: Oh, I think Rachel Andrew had a good point about, like, anybody can write an article about some brand new thing that they're super excited about right now, but things like that need a bunch of very boring writing too. They need writers who are willing to dig in very comprehensively to technology that isn't necessarily all up in their brains right now anyway. They're like a technical writer of a different ilk, you know?
It needs a paid team. Somebody, you know, but it's not really for sale. We can speculate about where it's going to go, where it should go, what we can do. It's not up to us. That stuff is not on the table. They are not soliciting ideas for where MDN should go and how it should be handled. Not happening.
Dave: Yeah. It's such a weird move, and that's the thing. I don't get the moves, man. I don't. It says, "Oh, we're focusing on community." You know? It's like MDN, that's where everyone gets their information. What you do mean? That's the community. That's probably your biggest goodwill builder. How do you just let that go? Anyway, there's a lot of talented people looking for work and we do wish them the best. I'm pretty good at….
Chris: Yeah. Mozilla themselves made this lifeboat website or whatever to help them get hired. It just feels so strange to me.
Dave: Yeah. I don't know. This is salty. Again, salty Dave Rupert here. My company makes a Web -- lets me go and then makes a website for me? I don't want it. You all did enough. [Laughter] Don't talk to me. I'm done.
But I guess it does help people. You know it's such a big organization. A lot of contributors probably aren't recognized. You know what I mean? And they want them to land on their feet, so that maybe is a good thing. But if an employer just was like, "Goodbye," I would just be mad.
Chris: I have raised my hand, by the way, everybody. Just be aware, I'm willing to take on MDN personally.
Dave: Perfect. Let's do it. Let's do it. We'll call it ShopTalk DN.
Chris: Yeah, mdn.shoptalkshow.com.
Chris: I'm willing to give you one subdomain.
Dave: ShopTalkdocs.com and ShopTalkdocs.com is where you get all your latest function news, APIs, all of it happening over at ShopTalkdocs.com.
Chris: I kind of wonder what their traffic is because I know what my traffic is at CSS-Tricks. We get some pretty good, you know, search engine results traffic on CSS-Tricks. And I extract every dollar I possibly can from that traffic. That's the business I'm in.
Chris: I know not everybody loves that. Too bad. At least I'm an example right now for what that can be and I know how much money I make on CSS-Tricks, which is all right. If I didn't pay anybody, it could be my full-time job, maybe, almost. That's one person.
But I know that the way search traffic works is that it's really exponential as you get higher up. If you're always the first result, you have 10x, 20x more, at least, traffic than the third result, for sure.
Dave: Yeah. Yeah.
Chris: MDN is always higher than me, so it's a lot more traffic. Is the cache potential there from advertising, which probably would be rejected by the community anyway to sponsorship on there, but still, meh, it's still not amazing. I don't know that there's a noncorporate sponsored way to do MDN with just regular old ads on the site.
Chris: I think you could hire a couple people, maybe, but is that enough to keep it going?
Chris: The business model of MDN is not easy to solve.
Dave: Right. It's not. It's maybe buy a boat money. It's not--whatever--buy a building and fill it full of people money.
Chris: Exactly. Exactly.
Dave: Well, and you needed skilled people. You need people who know how to read a spec, you know, and can translate that to English. It's tough. I know. It's hard.
Chris: All right. Well, that's the Mozilla talk. We don't know anything that you don't know. We read all the same blog posts, for the most part. I heard from a couple of Mozilla employees, though, but nothing juicy that I would even be wanting to paraphrase, really, but just generally some confusion and a little anger, I'd say.
[Banjo music starts]
Chris: Hey, ShopTalk listeners. This show is brought to you in part by CodePen. That's me, your host, Chris, Co-founder of CodePen also. Sometimes I like to sponsor our own shown and tell you about CodePen. It's a freemium app, so you can use CodePen for free. But I hope to compel you with the features of CodePen Pro.
One reason you might upgrade is just because you like this show. That's fine with me. I'll take your support that way but, ideally, there's some part of pro that makes you want to upgrade.
One of the little things you get with pro is that you get unlimited embed themes, so you might build something on CodePen in which to then use somewhere else, like use in a blog post or documentation or whatever. It's nice because you change your theme and then it changes on every single embed where you use that theme.
Of course, that's very important to me on, like, CSS-Tricks, for example, where I might want to change the look of the embed because we're redesigning the site or just want to freshen things up or something and have that theme change over the entire site. Of course, I do that.
If you need several, a bunch of themes, just go pro and you have unlimited of them, which is cool. Just one of a dozen or more features you get for upgrading to pro on CodePen.
[Banjo music stops]
Form input validation: Before a form can be submitted, a validation script loops through all associated inputs, checks their values against the set of rules, and either allows the form submission to go through or prevents it.
A strong tag mistakenly left open may not result in the prettiest page ever, but it isn't likely to completely prevent someone from using it. When CSS and markup errors do cause major issues, it's apt to happen in a visible way. If HTML or CSS do completely break the page, we're likely to see it in our testing.
This combination led to a lot of flaky, site obliterating scripts making their way into the wild. Meanwhile, some of the Internet's more unsavory types suddenly found themselves with the power to influence the behavior of users' browsers, held back only by boundaries that were inconsistent at best and nonexistent at worst. This was not, as one might expect, always used for good.
In the next chapter, we'll start getting a feel for the development tools and debugging environments built into modern browsers and we'll set up a development environment who are ready to start writing some scripts.
Chris: All right. What did you think of that, folks? We're thinking of doing more of that kind of thing on the show with people reading blog posts of themselves or others just to--I don't know--have a little segment; hear a different voice on the show.
Dave: Like audible RSS, in a way, and I'm looking forward to it on many levels. Yeah, we've solicited quite a few friends here to hopefully read their posts or their books or things. Hopefully, we'll have that but do let us know if that's something you're interested in or how that's all working for you.
Chris: Yeah. Cool. Craig Rosenberry writes in, "You know with all the different ways to build a site, I wonder if you have any good suggestions on spinning up an information only website. It's not e-commerce." There are all these different site archetypes, but we're talking info only. He's saying, "That WordPress and Squarespace seem to be a little much for that kind of thing. Any advice you could give me would be great."
Client work and they're brochure sites, let's call them. I know we've talked stacks. That's a little light on information, perhaps, to be making the technology call right now. But let's say, you know, take some guesses as to what these type of sites are like and what would you reach for?
Dave: I've done it both ways. You can write an index.html, chuck it up to GitHub, and you have GitHub pages. You don't even need to use Jekyll. You can just do that, index.html. Chuck it up to GitHub pages. I've done that.
Dave: It works pretty good. The problems, I guess, are just normal Web problems. Somebody is going to have buy a domain and then forward the DNS and do all that stuff. That's not fun. But I've also had a friend who runs a trailer park, like an eatery here in Austin, in south Austin.
Dave: Called the Thicket. I helped him--
Chris: Does it have a Torchy's at it?
Dave: What's that?
Chris: Does it have a Torchy's at it?
Dave: No, but it does have pretty amazing food. Their Instagram is, like, I've moved up to north Austin and I'm regularly like, "Ah, man. I'm going to have to drive down to eat this chicken sandwich, aren't I?"
Dave: It looks too good. But you know, and so it's a website for, like, seven, eight trailers. They have events. They kind of want to advertise the eateries or the facility. They do outdoor yoga and stuff like that.
I got them up and going on a Squarespace just because they were like, "You know, we're going to want to manage some of it. Our trucks change kind of somewhat irregularly, so we'd like to be able to handle that." I got them set up on Squarespace and it was okay.
Chris: It was all right?
Dave: Yeah. Again, it's not my favorite thing. I could probably say that about a dozen things I've built stuff with. It's not my favorite thing but it works and it gives them a little agency to kind of build stuff. Occasionally, they'll have to call me in for something more complex. I think it tends to work. I would recommend those.
Webflow is another good one if you just wanted to do a little one-pager in Webflow, something like that.
Chris: Yeah. I was surprised. I hadn't looked at this particular feature until I did a screencast with them a couple months back. They have a CMS that's built into Webflow too, but it's like a two-faced CMS. One of it is for you to set up the fields and all that. Then you're using the Webflow itself and you're editing. But then they have this face for the CMS that's for clients.
Chris: You get this bar along the bottom and you open up and change stuff and stuff. It's kind of like it was designed with clients in mind. That was my first question with these brochure sites. It is just one and done, get it done, put it up, move on, never touch it again only with minor updates? Or is it the kind of thing were you're trying to hand off editability to the client? Now, that's always been a thing forever and ever and ever and ever.
Does this site need to be client editable or not? If it does, it totally steers the direction of what technologies you're going to use. You can't just do an index.html file only because clients aren't just going to edit HTML. That's still a specialty skill set and that's fine. It's much easier to use some kind of UI to do it.
There are still a million billion choices. Even as technology evolves, like with JAMstack and stuff, that's still a thing. Because it's a website and because clients need to edit it, everybody wants to be that source. That source can be all kinds of different stuff from headless CMSs to JAMstack purpose-built CMSs that are UIs for essentially editing, the static files that power that site. But then it's like, you could have just picked Squarespace, too, or you could have picked WordPress, too. Even though it's a bit much may be feeling, at least it solved that problem, which is a honker of a problem, so maybe that's good. You know?
Chris: I almost err that way from the beginning. As much as it appeals to me to make just an index.html file, I would only do that under pretty extreme circumstances where I knew it would never need to really be edited in a significant way.
Dave: Yeah. Yeah, all that updating falls on me and that's the least best thing. Yeah, WordPress, if WordPress is too much, like setting up a whole install, WordPress.com might be the solution too. Just get there.
What I always tell people for these small, kind of one-offs, or very tiny sites, build something in the cheapest way possible to get something up and then iterate from there. Squarespace is what, about $17 a month or something? You can build it and then, if you hate it, then start planning what you're going to do after that. At least you have a website up and customers can get information. That's what I would say.
Dave: If you're a technology company and you have tools for this stuff to build out little pages or microsites or event sites or something for a client, that's another. You may want 11ty and Netlify CMS or something like that. That's another good option but only if you have dedicated--
Chris: Stackbit also has a bunch of fancy tools they're building around in this space that look interesting, too, just for the record.
I was going to mention, just in case Jeremy happens to listen to this particular episode, I saw on his blog post the other day. The Clearleft now has a podcast as well. Have you seen that?
Dave: I have heard of that. They haven't invited me on, but that's beside the point. It's fine.
Chris: It's like a six-episode series. I mean to read it too because it looks really, really good. Here. I'll read from Jeremy's blog post.
"Design-wise, it's a riff on the main Clearleft site in terms of typography and general layout. On the development side, it was an opportunity to try out an exciting tech stack. The workflow goes something like this. Open a text editor and type out HTML and CSS."
Chris: That's it. Then he writes, he says, "Comparing this to other workflows I've used in the past, this is definitely the most productive way of working. Some stats. Time spent setting up build tools: zero minutes and zero seconds."
Chris: "Time spent wrangling pipeline to do exactly what you want: zero minutes and zero seconds. Time spent trying to get the damn build tools to work again when you return to the project after leaving it alone more than a few months: zero hours, zero minutes, and zero seconds." [Laughter] Which I enjoy and you can go view source on the site.
Now, it's a podcast site and it has an RSS feed, for example, so I'm imagining Jeremy, as old-school awesome as he is, just opening up feed.xml, copying/pasting the last episode, pasting the new one at the top, and hand-editing all the values in that podcast field. I'm almost sure that's what he does. You know?
Chris: Because there's no build tool at all, so God bless you. That's great. [laughter] I struggle with that. I like the automation. There's no way that I could let my fingers do that. I would 11ty up that thing in a second. You know?
Dave: Yeah. Yeah, yeah.
Chris: But -- [laughter] -- but, you know, I appreciate it and it's relevant to this question, for sure. Good luck, Chris. There are lots of ways to go. None of them are particularly wrong, I'd say.
Dave: Yep. Magnus writes in, "I've been messing around with Gutenberg this week and I'm actually enjoying it." Huh.
Dave: "I know it had a rough start with some developers but it seems to have matured. Have you all used it much? Pros? Cons? Experiences?"
I have not really used Gutenberg, so I am out, but I do think it's--
Chris: Well, I think it'd give you an opportunity on ShopTalk Show, but that's the one site I'm not using it on for us because we use all Advanced Custom Fields, for the most part, and it doesn't--
Advanced Custom Fields has a bunch of really, actually wonderfully powerful stuff. You probably heard spots on the show in the past of things. You'll hear more.
Dave: But our data is very structured, very granular. Yeah.
Chris: Yeah. We don't have a field that's like, put a bunch of blocks in this area. That's what Gutenberg excels at.
Chris: I don't even have it turned on there but, yeah, the block thing for me has been going super, super well, I'd say. I'm a big fan of Gutenberg. Just from a day-to-day authoring of blog post experience, which is very important to me, like what does it feel like to be an author and editor on a site, I really like it. I really like it. It's very different than that.
I've written in the past. If you're going to blog, blog in Markdown. I like that concept too because your Markdown is just going to last forever. It's going to be able to swap between technologies really easily. It's encouraging you not to put div class equals Dave left face header red on it or something.
Chris: Because it's Markdown will work.
Dave: No classes.
Chris: Yeah, no classes in Markdown. Gutenberg is kind of the opposite in that it's like, "Get fancy in there! Make that background green. Get weird, brother." But it's doing it -- it has the same spirit, believe it or not, because you're not writing those classes. They're abstracted by the parent technology involved here in a way that's like you're not going to -- I don't know. It feels like you're buying in too strongly. I'm not going to just turn off Gutenberg necessarily. Even if I did, there would be stories that would kind of make that okay. I don't know. I feel like that wasn't a very coherent thought but I don't worry about the content that I'm authoring in Gutenberg.
Dave: Yeah. Well, you know, the thing I always think about in client services, you know, or something, you know, somebody is like, "Oh, our About page. Write a little blurb. We're going to show the top five people that work here." [Laughter]
Dave: Then we'll do some testimonials. It's like, okay. I know how to do that. I'm going to write the Advanced Custom Fields, blurb.field.
Dave: Person1.field, that's a repeater.
Chris: Exactly. Yep.
Dave: Then testimonials. That's a repeater, maximum of three. Done. I did it. Here's your website. I program the template to render the fields in the correct way. Then what happens? They come back and they say, "Oh, we need a video in between two of the testimonials," or whatever. I'm just like--
Chris: Oh, sure.
Dave: Fridge, man. This is not easy. Or like now it's a mess and I knew it was going to be a mess and now I know it's a mess. Fridge.
As I understand Gutenberg, it's just like here is your content. You just chuck blocks in there. Staple the blocks together however you think it should work and we'll just do the rest, and it does it. That seems great.
Chris: Yeah, exactly.
Dave: It's like custom -- kind of more than just a blog post layout. It seems really helpful for that. You know?
Dave: You can do that on Squarespace, Wix, or whatever the full designer, Weebly, Weblfow, all these full designer tools--whatever--and browser designer, but I feel like -- I don't know. I feel like it's a step forward from programming content the way you want it. You know?
Chris: Yeah, I think you sold it really well, especially for somebody who doesn't even use it, Dave. Good work. [Laughter]
Dave: [Laughter] I mean that's intuitive, you know, so.
Chris: Well, and they're trying to get to a site builder level, too, which is very interesting building the whole site that way. But you're kind of saying, like, for anything that's more than just a blog post. I think that's very true. It's very good at managing landing pages. But then, once you start using it, you're like, well, why not blog posts too? It's all the same Gutenberg editor.
I think it opens up possibilities for your blog post too. I'm going to get fancy in here too, man. Why not? You're kind of like, oh, then I was listening to a podcast by blah-blah-blah. Oh, let me just pull in the podcast block so you can listen to it too. Oh, that's convenient.
Oh, a testimonials block? Those are just built-in. Oh, where do I want the header? Do I want the avatar for the testimonial on the left or the right? Oh, that's just an option. I can just pick one from a dropdown and it'll scoosh its way over there.
And it looks like it's going to look on the front-end of the site, for the most part. It has a nice visual styles inside Gutenberg but, if you want, you can queue up your same CSS from the outside, inside. That way it looks exactly like the front-end of the site does. It's WYSIWYG for real.
Dave: My cool, Saved by the Bell, blockquote that I made, that's just going to look like a Saved by the Bell blockquote.
Chris: Yeah! I blogged for most of my life not in Markdown because I never did that on CSS-Tricks. I do on most other sites, and it was just HTML, but weird WordPress HTML, like HTML without the P tags because WordPress always had this weird auto-P function, which is eh. I know. I know. I know. I know.
But it was nice, almost. At least there was one nicety that I could avoid writing some HTML in there. But I was so used to, like, "Oh, a video goes in this post?" You know how I do that? Left angle bracket video source equals.
Chris: Drop-in URL quote controls end video tag. You know? I was like, okay, I can read this -- I can see what's happening here. On the front-end, there'll be a video. But when I'm editing the post, I just have to imagine that, whereas now in this Gutenberg, I can see the post as it's going to look and it gives me a more appropriate, like, what is this post going to feel like?
Chris: With this big video block here. If I put in a CodePen embed, it's there. If I imbed a tweet, it's there. If I make something look like a blockquote, it looks like a blockquote. I think that is just nice and it's just not to be -- like, I don't care about that. It's easy to be like, "What Chris is describing, I don't need that. I don't care about that." I didn't think I did either and now that I use it day-to-day, I just enjoy the authoring experience more. I think it's making blogging easier for me.
Dave: No, I would agree. I think, again, if that's where you spend your time, kind of back to the first question. Are people going to be spending time on this? If people are spending time on it, make a comfortable thing.
The same reason you install a theme on your code editor is because you're just like, "I want this to feel better." You know? So, I think it has value. Well--
Chris: That was just a quick one there. But, yeah, we could -- let's wrap it up.
Dave: I would like to talk -- I mean we should wrap it up--
Dave: --because we're out of time, but I'm curious about the authoring of plugins with React inside Gutenberg or WordPress. I'm curious how that goes, so maybe we can touch on that in the next show.
Chris: Yeah, real quick. I used one from a third party guy.
Chris: Gosh. Anyway, it was like a Create React App, but it was called Create Gutenblock, I think. I thought it did a tremendously good job of doing that but I think it became a little out of date and probably not a top priority for said person. WordPress has not taken that over but made their own.
I think if I was going to do it again, you'd use their block scaffolding pattern. It comes with all the niceties involved. It has a little Webpack builder and you just type NPM run start or whatever and it starts watching your little folder. It's hot reloading and yadda-yadda. It's got all the niceties of React development in there.
It's a weird type of React development. It really is just JSX and you can use state and use ref and whatever crap you want to in there.
But there's this other aspect to blocks that, to me, got complicated. There's a thing called block transforms, which may not matter to you with a new site or anybody else. It mattered a lot to me because when you turn on Gutenberg on a site, all your old content doesn't just become blocks. It's still in the old format.
Chris: When it loads up, the whole thing just -- there's a liner on the whole thing and it says Classic Content or Classic Editor or something. You can convert it to blocks. It's a one-way tripsky there.
Chris: You click the little hamburger menu and you open it up and say, "Convert to blocks." I think it does a phenomenal job. It's amazing that it works as well as it does. It looks at content, which is just this arbitrary string of HTML blah or Markdown or something.
Chris: It figures out what it should be in a block and does it. For me, I do enough weird crap over the years at CSS-Tricks that it's not the cleanest journey. At least it wasn't by default. I had to write some of these transforms myself. As the parser is going through the text, if it sees a tag that happens to look like this tag, then I want you to transform it to this type of block and put this type of content in here and this type of setting should be set to this value.
Chris: That stuff was complicated to me and I still don't have it perfectly right. That's not even particularly well documented. I know this is just for me, but I think if you have a big legacy site and you're thinking of going Gutenberg, it's still going to be -- that's where the effort really is.
Dave: Well, that's maybe a con or some experience. Okay. Fair balance reporting here, so we did it. [Laughter] All right, me, doesn't use it at all. Yeah, I use it. It's great. You used it.
Dave: It's kind of -- you can kind of mess up your site, but anyway. [Laughter]
Chris: But you know it's worth mentioning. They sponsored before, but this show isn't sponsored that Advanced Custom Fields has a way of developing blocks that's far more intuitive to just normal classic WordPress developers. You can just make a block as a PHP file, put it in your theme, say, Advanced Custom Fields, that PHP file is a block, essentially.
Chris: And use it that way. And so, you're not writing any React code at all. It's not weird. It's just a PHP file and the custom fields gets splotched in there wherever you want them to be, which is awesome, and they have that feature inner blocks, which is cool too. It's like splat these custom fields in there but also, if you want arbitrary blocks inside of it, like native blocks, you can do that too, which that is something else.
Dave: Wow. Well, that's kind of cool.
Chris: It's mind-blowing stuff.
Dave: Yeah. All right, well, cool. Well, let's wrap it up. Thank you, dear listener, for downloading this in your podcatcher of choice. Be sure to star, heart, favorite it up. That's how people find out about the show. Follow us on Twitter, @ShopTalkShow, for tons of tweets a month.
If you hate your job, head over to ShopTalkShow.com/jobs and get a brand new one because people want to hire people like you.
Hey, Chris, do you have anything else you'd like to say?
Chris: End show block shoptalkshow.com.