text
stringlengths
0
2.35k
**Natalie Pistunovich:** Do you have a choice? Or is it always salty?
**Mat Ryer:** No, you have a choice. \[laughter\] Don't you have a choice? Yeah... What do you mean? Like, the police are going around saying "Hey, are you only having salty? What are you doing?"
**Natalie Pistunovich:** I only discovered in my late 20s that some other countries sell popcorn that is not just salty in the cinema.
**Mat Ryer:** Oh, right? Yeah...
**Natalie Pistunovich:** And then I came to the US, and then it's like not just two flavors, but 15.
**Mat Ryer:** Yeah, of course. Yeah. Yeah.
**Dee Kitchen:** That's a horror story there...
**Mat Ryer:** Yeah. You can choose individual bits of corn, and have different flavors, and just have as many as you want. You just program it. You do it as an app, and then it pops it on demand.
**Kris Brandow:** You say that, but we do have soda machines where you can choose your own flavor.
**Mat Ryer:** Yeah, I've seen that.
**Kris Brandow:** Those freestyle Coke things...
**Mat Ryer:** Has anyone come up with a good one yet? Because I imagine they're all terrible. Someone's like, "You know what? I've accidentally pressed these three, and I've made a brand new flavor that never existed before."
**Kris Brandow:** Well, no... I think they make it so you can't make any truly terrible-tasting ones, because that would be perhaps bad for them, so...
**Mat Ryer:** Oh, really? Clever. How did they do that? Well, we'll never know... Well, speaking of horror stories - let's get into this, shall we? Who Wants to kick us off with a spooky story? Oh, by the way, we should actually introduce Dee, because Dee, you wrote a package that I think a lot of people here will be f...
**Dee Kitchen:** Oh, bluemonday... It's named because there was a package we'll call Black Friday, which has all the best markdowns, and it's a markdown package. And after you've generated markdown, markdown can include HTML, which makes it dangerous. It's probably you're using this because you've got user-generated co...
**Mat Ryer:** Amazing. And what do you like about it, and what don't you like about it?
**Dee Kitchen:** I like that it works. \[laughter\] It's a streaming parser, it's got fixed memory, so you can use it quite comfortably in a lot of situations, and \[unintelligible 00:08:20.10\] I don't like when people tell me there's security issues with it, and then I have to go "Oh, I'm supposed to take this open s...
**Mat Ryer:** Yeah, there must be a lot of responsibility, actually, because it is a package that is used, and quite trusted.
**Dee Kitchen:** Yeah, it's used. I don't know how many stars it's got, but the stars don't portray the amount of times it's used. Like, it's used in Hugo, and everyone uses Hugo. And this is the HTML sanitizer that keeps Hugo safe. And it's used in so many things. It's got literally thousands of dependencies. Do I tak...
**Mat Ryer:** Okay, fair enough. Well, I have done that, but... Good to know. I genuinely have used it though, quite a few times, so... I like it, because it's like you opt into what you want to support. You explicitly say the things that you want to allow.
**Dee Kitchen:** Yeah, there's no way of defining what makes a good HTML sanitizer. Everyone's got a different rule, depending on their use case. But the Java OWASP, Open Web Application Security thing - There sanitize it to find this really beautiful interface for sort of going, "I want to allow images, but I don't wa...
**Mat Ryer:** \[09:58\] Nice. Okay, well, I'm gonna tell you about a horror story in tech of mine, that happened quite recently... I have this project which interacts with Twitter, and it interacts with the Twitter API... And so it polls results and then compares them, and stuff. And that's just one of the things it do...
**Dee Kitchen:** Is it tax-deductible? \[laughter\]
**Mat Ryer:** Probably...
**Dee Kitchen:** AWS famously refunds you if you get something wrong. Did GCP not do that?
**Mat Ryer:** I don't know. It's quite recent. I haven't yet tried that. Do you think I should get in touch with support and see if they'll --
**Dee Kitchen:** $1,000 would motivate me.
**Mat Ryer:** Yeah. There you go, $1,000. Okay, well, I'll try it, and I'll let the listeners know how we get on...
**Johnny Boursiquot:** It could have been worse, right?
**Mat Ryer:** It could have been $2000...
**Johnny Boursiquot:** Yeah.
**Mat Ryer:** Or just $1,001. It would be worse, wouldn't it?
**Johnny Boursiquot:** It would.
**Mat Ryer:** What would you do, Johnny, if you saw that...?
**Johnny Boursiquot:** I'd call you and say "Hey, you've got a grand? I hear you're loaded... And just wasting $1,000 here, $1,000 there, on your bugs, and stuff..."
**Mat Ryer:** Honestly, when I found out about it, I wanted to just karate-chop the air. That was the kind of spooky reaction I had to it. Just like \[Whew\] in the air. Angry. But yeah, it's a good lesson though. Like, set budgets and stuff on your things.
**Johnny Boursiquot:** Do set an alarm, yeah. Budget alarms.
**Mat Ryer:** Yeah. Observability.
**Johnny Boursiquot:** Yes, yes. And you'd know a thing or two about that, yeah?
**Mat Ryer:** Yeah... Okay, who can beat my $1,000 bill? Not $1,000 bill? Oh yeah, it was a $1,000 bill; but that makes it sound like it was one thing, doesn't it? Like a single bill that had $1,000 on it; so it's not that. It was just paid through a bank transfer. Okay, who's got another one?
**Johnny Boursiquot:** I have one that could have cost many 1000s of dollars...
**Mat Ryer:** Oh, Johnny...
**Johnny Boursiquot:** ...if it wasn't spotted. So one of the things you can do with function as a service things, like AWS Lambda, for example, is that you can trigger a Lambda when you write an object to an S3 bucket. Word of advice - do not have your Lambdas write to a bucket that they are themselves responding to. ...
**Mat Ryer:** Ohh...!
**Johnny Boursiquot:** Because that's gonna give you a very nasty bill. Yeah, and you will not like what you see. So yeah, thankfully, budget alarms came to the rescue... \[laughs\]
**Mat Ryer:** Yeah, there you go. That's the lesson there. So what happens is, an object goes in the first time, that triggers the Lambda, the Lambda then writes something into that same bucket, which then triggers another Lambda, which then writes something.
**Johnny Boursiquot:** Right.
**Mat Ryer:** And how quickly does that get out of hand?
**Johnny Boursiquot:** Very quickly. \[laughs\] Like, if you want to see how well a Lambda scales on your own dime, you can do that. And, yeah, it'll cost you money very quickly.
**Mat Ryer:** Wow. Yeah. Okay. Pretty good... But yeah, that's -- the alerts came to the rescue. Nice one. Okay, anyone else got one for us?