Podcast Lookup

Internationalization

Programming Throwdown

  • November 28, 2017
  • 1 h 7 min
  • Episode 72
Episode page
About this episodeHow can you maintain a separate version of your app/site in all langauges and locales? How do you handle right-to-left text, various…

How can you maintain a separate version of your app/site in all langauges and locales? How do you handle right-to-left text, various currencies, and a bunch of languages with non-ascii characters? We explain all this and more in Internationalization! Show notes: https://www.programmingthrowdown.com/episodes/72-internationalization

★ Support this podcast on Patreon ★

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

Internationalization

00:00—
  1. A

    Programming Throwdown Episode 72: Internationalization. Take it away, Jason!

  2. B

    Hey everyone! So this is the last show before our December prize giveaway. It's our second annual prize giveaway. So last time we gave away I think three T-shirts. So every time we try to do a little bit more, thanks everyone for donating. All our patrons, you know, we put that money to the server cost, to advertising, to get the word out—all of that. But every year, you know, we have some left over and we figure out a way to give that money back to you through prizes. So this year, we had a little bit more left over, and we also want to do something really cool. So we're actually going to figure out a way to get a prize to everybody. So it's going to work like this: To all our Patreon, we're going to give out three T-shirts, yeah? Yeah, to everyone who's signed up through Patreon and supported us. So we'll get three people get a T-shirt just like last year. I'm also going to have 3D printed some pretty cool things. So three people are going to get this really cool screw puzzle. If you don't know what that is, it's—it's basically you get these pieces and they all look kind of goofy, but if you kind of turn them a certain way, then it makes this really cool shape, and it kind of everything kind of locks into place. So I've printed three of those. I've also printed three fractal pyramids, which are pretty cool if you haven't seen them. Just kind of imagine, you know, like the Sierpinski triangle but in 3D. So so three people get that, and everyone else who is a patron of ours—we're going to figure out a way to mail you something. So we're figuring out now whether it's going to be some type of like 3D printed badge or a laser-cut logo or something like that. I'm actually going to design it tonight or tomorrow, and I will try out a few designs yourselves before December. But yeah, we're going to figure out a way to get something to everybody. People who signed up like early patrons might have not put their address, so I changed Patreon about six months ago to require an address. But if you signed up early, you might have not given us your address, so please go in and put in your address or put in something like 'Don't mail me anything,' and we know not to pick you as one of the winners. But yeah, that would help us out a lot. Otherwise, we have to kind of, you know, email you and track you down and wait for you to email us back and all of that. So that's the giveaway. Pretty excited! Oh, the last thing we're going to stream the whole thing live on Twitch, and maybe other things too, like I don't know Facebook Live, I don't know if we could do all of them at the same time. Maybe I'll figure that out. We're going to stream it live. I'll let you know more of the details when we have them, but you know stay tuned. Follow us on, you know, Google Plus, Facebook, Twitter, you know. I'll post all of them—LinkedIn, all the regular places I post the show updates. I'll let everyone know when and where we will be streaming live.

  3. A

    So you feel like a good old Santa Claus now?

  4. B

    Huh. That's right. Yeah, hopefully you folks get this in time for Christmas. It'd be pretty awesome. All right, put some Programming Throwdown in the stocking.

  5. A

    Now that everyone feels in the holiday spirit, we'll do our news. Wait, it's but it's not our December show. So okay, anyways, my first link is an SQLite sequel light three tutorial and guide. This was an article I saw recently, and as I come across stuff, I try to just sort of squirrel it away. But this one is going over how to use SQLite, and although the article is quite good, I'm sure there are many other articles as well in SQLite 3. I wanted to use it as a sort of pseudo tool of the show to be able to talk about how good SQLite is, and it's actually really commonly used. But if you've never used it before, check out this tutorial. Check out SQLite 3. It has lots of really good features, and you can find all sorts of people using it in all kinds of projects. I know like a lot of mobile apps use SQLite for database storage engine. People use it, you know, to sort of serve up on stuff on the web, you know, to sort of have a back-end server that uses if your data is not so big that you need a kind of fully distributed data store, SQLite 3 scales pretty well, and so you can use it for quite a lot of data. But I guess it's the classic 'your data is not really as big as you think it is' kind of thing, like try it until it doesn't work, and then when it doesn't work, you can invest the effort of trying to use something else.

  6. B

    So for people who don't know SQLite, basically it has the full ANSI SQL syntax. You could do selects, you could do joins, you do all that stuff just if you're writing to like a MySQL database or something like that, but the entire database is just one file on your computer. So, you know, it's super cool, super portable. It works anywhere, and actually the entire source code of SQLite is just one file, which is pretty

  7. A

    amazing or horrifying.

  8. B

    Now going with amazing, actually. I think it's—it's actually a bunch of files, but then they have an amalgamation tool which turns it into one file. Okay, I was gonna say that sounds like something you just script. Yeah, yeah, yeah. Um cool. Yeah, SQLite's awesome. The tutorial is sure really useful. Both of us have used SQLite a ton, so it's super important. Definitely take a look at it. If you're writing like massive JSON files that are like, you know, half a gig or something, you probably need to be using SQLite depending on the circumstance, I mean.

  9. A

    I guess that's a good segue. I work with a lot of people who have never used SQL before, and I actually hadn't until my previous job, and then I used it, and I realized how much I had been avoiding it, like how often it actually comes up and is important to know. So I did it a little bit in college but not enough to really understand it, and then I started using it more and more, and it's something that if you've avoided it, don't avoid it. It's actually very important to learn. It's a good tool to have, and you can probably get away avoiding it—or at least I did for a while—but eventually, you're gonna want to know how to use it.

  10. B

    I mean I probably—well, it depends on the time of year, I mean, time of the project and stuff. But there are times where I spend just all day just doing SQL because you just it's the best for organizing data, transforming data things like that. It just makes life really, really easy. Cool. My news is Mask R-CNN in TensorFlow, so I'll explain what that is. So CNN is Convolutional Neural Network. I'm not going to go into too much detail on what that is, but let's just say it's really good for handling images. R-CNN is—I think it's like a recurrent, actually don't know off the top of my head what the 'R' stands for, probably Recurrent, but I could be wrong on that. And then the Mask part is basically it's sort of think of it as sort of like a set of tiles in the image they're sort of sliding over and super super glossing over all the details. But check out this link. Basically, it's for image object detection and recognition images. So you can give it an image with a bunch of different objects—there's like a person walking on the street and a traffic light and a car—and it will say, 'Hey, there's a person and a traffic light and a car,' and here's where they are, and here's their bounding box, and this is their label. So you know, you can imagine like regular image processing where you know you give it a bunch of digits, right? Zero through nine digits, and then you give it another digit, and it says, 'Oh, that's a seven,' right? But what if you gave it, you know, a book full of digits, like a book full of numbers? That's a much, much different problem because you have to turn that page to turn that image of that book. You know, pull out all of the individual numbers—like, 'No, they're there,' pull them out and then run that first step which says whether it's a seven or an eight? Right? So it's pretty complicated stuff. The cool thing about this is that it's totally open source, and it actually comes with the data. So it's not like one of these things where you know you're just never gonna be able to run it. Like if you just follow the instructions, you actually download the data, build the model, and you'll be able to detect like cars and traffic lights and stuff like that—sheep, donuts? Pretty cool. Sheep and donuts, that's a thing. I don't know it's.

  11. A

    at the bottom of the

  12. B

    examples. Oh, okay, nice. But yeah, and it goes into tremendous detail. It's really, really cool, and if nothing else, you can just run the lines they tell you to, and you'll get this really cool thing at the end. So check it out. Yeah.

  13. A

    This seems like a like even more so than you were saying, like character recognition sort of recognizing occluded objects generating the mask for them. So not just saying is there a person in this image, but where are they and exactly what shape are they? Yep, that.

  14. B

    seems really tough. Yeah, it's pretty amazing. As Patrick said, it handles occlusion. So you could have a person and you could have a stop sign in front of the person, and it'll actually handle that. Like basically, it will, you know, remove the stop sign, or it'll just kind of like—yeah, I don't actually know. I don't—I'm not an image processing guy, so I don't know a lot about how it actually works under the hood, but it can actually say, 'Oh, these pixels, you know, probably don't belong to this person,' and so it says, 'You know, I don't know what these pixels really are.' But I know these pixels around are like this, and then it can say, 'Oh, that's a person,' because you know even though there's all these non-person pixels there, I know that it's sort of a segment, a different segment.' So it does a lot of complicated stuff. And like a lot of things—neural networks have sort of automated a lot of the human engineering, which is pretty remarkable. And that trend continues. But yeah, check this out. I thought it was pretty amazing to look at.

  15. A

    That's pretty cool. My next article asks the question: Do you have learner's syndrome? They admit right off the bat that learner's syndrome is not really a thing, and they proceed to point out something that I've thought about a fair amount, especially, you know, now that I've been working as a software engineer for too long. And you know, you see people come in and they're all excited and gung-ho and they feel like they have the solution to everything, right? Or what if we only just use this technology or use that technology? And most of what we've talked about—you know, various languages before—that are, you know, three decades old or more. Oh, four decades! Wow, I can't believe it's 2017. Anyways, it's any. And so we use like C++, and although we use, you know, C++11, almost 14—oh, even that is buggy—but you know C++ goes back many, many years; has a lot of inertia behind it, a lot of historic stuff. And people are like, 'Oh, if we could just use insert whatever, you know, up-and-coming language now, then all our'

  16. B

    problems would be solved? Sure, Rust. Um and what I

  17. A

    find myself realizing is that I think one of the desires in technology, or at least for me and I think for my co-workers, is to always be learning something new just for the sake of having an excuse to learn it. Like we have pretty flexible jobs for the most part where we have a lot of autonomy relative to, you know, if you were working on a, you know, factory assembly line or something. You have a lot of latitude to make decisions on things. And so people look for excuses to use things that they would just like to learn. And this article points out under the context of sort of web development all the different frameworks that come out and how you have to know this and know that you're expected to know, you know, all of the full stack—front end, back end, databases. You're, you know, you're kind of expecting everything. But then people even just have all this desire to learn new frameworks, but the most they ever do is probably, you know, code up an example. They never really do much with it, and so they feel like they're accomplishing all of this learning, but it really doesn't help them. It doesn't benefit anything. They're not saying, 'What problem do I have, and could I find something better to solve it with?' And so it's not a terribly long article, but it just begs the question that I think I notice a lot, which is although it's great to learn—and I mean we have a podcast where we talk about some technology or programming language every month—I think that it is important to realize that it's not always great to jump on the newest thing. And that as you're using new things as opposed to just being like, 'Oh, this is the best thing ever, let's use it everywhere.' You know, I always—I use this expression; it's not mine. I don't know where it came from though—but you know, it's another tool in the tool belt, right? If all you have is a hammer, everything's a nail, so don't only have a hammer. You know, get yourself a set of tools and then make sure you use the right tool for the right job going around and just saying like, 'Oh, Rust is cool.' I mean, Rust—

  18. B

    is cool, but like going around saying, 'Rust is cool, let's solve all the problems in Rust.' Yeah.

  19. A

    That's not going to end up any better than when we try to solve all the problems in C++ or try to solve all the problems in Java, right? Um, although any of those might work, they're probably not the best answer. Yeah.

  20. B

    I mean, I actually experienced this firsthand when I was brand new, like first job, um out of undergrad. I only really knew C++ and a little bit of Java, and basically I wanted to build this is a sort of side project of mine which um, um I wanted to build this kind of really open-ended environment where I had these agents that had different AI and stuff like that. And you know, because it was AI and they were—I was having a lot of different variables. I needed something that's really dynamic. And so I basically had this class in C++. A C++ class it just had a map from Variant to Variant, and then I had this Variant class that used the Boost::Variant library so it could be a you know an integer or a string or it could be anything, right? Oh dear. And so I had this class that was basically just a map of anything to anything, and then everything just started being a map of anything, anything. And I ended up with this sort of dynamic language. I could even script things like that. And at some point, I realized—not soon after—that I had built like just the worst version of Python ever. You know, like it was just—I mean, it was that the Python was exactly that but then a million other things too and way optimized and stuff like that. And I think the big thing about this show is we explain all these different languages to people so that they can sort of understand the context, like they can embed the languages that they know in sort of this greater context, and so they won't try and build like a very poor man's Python in C++. Um, but yeah, with that said, I kind of—I have sort of the opposite problem where I don't really like learning a bunch of different languages. To do like I don't like learning some crazy language; I would rather sort of like deconstruct something into an into a language that already exists. Like I've worked at jobs where people had sort of custom languages, and it almost always seemed like that language could have been replaced with Python. Um, but I do have times where I have sort of this maybe it's like an analysis paralysis where I want to do a project and there's maybe four or five different frameworks, and I end up bouncing between learning these

  21. A

    frameworks instead of actually doing the project.

  22. B

    If I just picked even the worst of the five, I would have got way

  23. A

    more done. Yeah. So on the exact topic of the article, I think it's—it's saying that is you know maybe a little less learning and a little more using the thing, you know, to get stuff done. Uh, but yeah, I mean, I think you're absolutely right, which is whenever I start a project and I can choose what to do or how to approach it, the going is really slow. I find it very difficult to discipline myself to sort of—I'm just going to pick something and solve it poorly and then figure out how to do it again. Um, yeah, I tend to bounce back and forth. Oh, like working on some project that is like wrote a little bit of Java, then wrote a little bit of Python, then it's like oh maybe I should do it in C++. I was just like, oh this is terrible. Like I'm just gonna pick one, get it done, and then I'll choose

  24. B

    Yeah, that's a good point. I actually—I'm working on a little game to teach machine learning to kids. I've been working on this for years, but I shelved it for a long time and now I got back into it. And there's this engine that everybody uses now; it just exploded in popularity. It's called Godot. Like the mathematician, and it has their own language called GDScript. And I just hated having to learn another language, so I kind of you know put it off. I was looking at other frameworks and things like that, and then finally I just said, forget it, let me just learn this Godot Script and get this done because—because this, I mean, if you could learn this language, the tooling on this thing's amazing. And basically, it was a bit of a pain for a few days, but I think part of you know recording this show, for however many years we've been doing it, I was able to pick up the language pretty quick in like an hour or so. And then—uh yeah, I actually have a quick, like a simple demo, like level one of the game. Um and it exports to Android and everything else, but it's like if I didn't get over that barrier, I just wouldn't have had really anything. So it's definitely it's a tricky balance, but—uh yeah, learner syndrome is kind of going too far on the other end. So with that in mind, my tool this show is Unity 3D ML Agents. So yeah, so you know the only engine that really rivals Godot is Unity. Um Unity is closed source, so I'm gonna stick with Godot for now, but it's pretty amazing. I mean a most a lot of professional game studios use Unity. Um it's got a bunch of amazing features. I think we actually did—we do a show on Unity. Yeah, we did. Okay? So so check out that show. We talk about it in great detail. Um they added this thing, yeah, ML Agents basically. Um they add a variety of different reinforcement learning agents, and it's pretty cool. So you can um you can you know give them sort of a—uh you know a representation of the world, or you could even just have a camera, and it will learn from the camera, you know as best it can. Um and uh yeah, they have a bunch of cool demos. Um they have this multi-agent so they have different sort of categories which I found kind of interesting. Um they have sort of a single agent, so this is you know imagine you're writing AI to play Frogger, like to be the frog in Frogger. So in this case, you know you have this environment with all these cars and move around and stuff like that, and the agent has to sort of you know navigate that maze, right? Um but then it gets much more interesting with multiple agents, so you can have for example 10 agents that are all sort of cooperating. They have like one mind that's controlling all 10 of them, and so they can kind of coordinate. Um you have this one where they're all sort of 10 agents but they're all against each other, and so they don't share information and stuff like that, and it kind of breaks it down. It has some cool demos, and I noticed they left out the case where there's more than three agents or more than two agents that can cooperate. Um And the reason why they left it out is that's an open research problem. So it says actually says demo coming soon for that one, and I'm wondering like it's—it's sort of like saying you know it's a joke. Yeah, yeah, it's sort of like saying space travel, you know faster than light travel coming.

  25. A

    Soon? Yeah, yeah.

  26. B

    Like as a reinforcement learning researcher, I'm just like really how soon is that? But I mean, you know they could obviously build something, but but but something that would work in that general problem is currently like an open research problem. But it's pretty cool. Definitely check it out, and the demos look pretty neat. So that's So I think it's now time for Book of the Show. Book of the Show. I'm totally cheating here, but I have to admit I've done a ton of reading in this game and took my whole month—or at least since the last show we recorded—it's called 80 Days. It's based on the Jules Verne book which I have not read because I've been too busy playing this game. But it, uh, I think it's pretty faithful to the book from reading the reviews and things like that. Basically, in 80 Days, you—there's a very small sort of shell of a game where you have to go to different cities, and you can pick which city to go to, and you could take a few actions when you're in the city. But that's basically a thin shell around what is really like a very detailed interactive fiction. So there's a bunch of sort of think of an interactive fiction as like a choose-your-own-adventure, but just a little bit more open-ended, right? And yeah, you can depending on what trajectory you take to go around the world, and there's many—you get just all these really interesting stories. And you know, I won't spoil any of it because it's like a book, you know. If I was to say one of the stories, it would just ruin it, so I won't spoil anything. But it's really cool. I highly recommend it. They have it on Android, iOS; they probably have it on PC as well. And yeah, check it out. It actually makes me really want to read the actual book. So I had always thought that 80 Days was—I knew it was a fiction book, but I thought it was a fiction book based on the real world, you know? Like I figured they'd be taking boats and trains and stuff like that. What I did not expect was there's a bunch of like fantastical creatures and things like that, and a bunch of like fantastical machines and everything. It's really cool, and it's very well done.

  27. A

    Very nice. My Book of the Show is a traditional book. All right. Although I did listen to it instead of read it: Forging Hefestus. Um so this book, I think, is relatively new, and I didn't find it to be an especially deep or engaging book, but it was a nice sort of whatever you call like pop-pop read, like pop music popular, whatever. I don't know. And it is a science fiction book, I guess, and it's about a woman who has superpowers. Oh, this is gonna sound so cheesy anyway. It's about a woman who has superpowers also likes building things, and she gets herself wrapped up into a world where lots of other people have superpowers, and she basically finds herself in league with a group of villains, and sort of talking through how the villains interact and you know how the world works with all the superheroes. And it doesn't go in depth to, you know, trying to come up with plausible science as to how all this works. In fact, it sort of pokes fun at that. But it's just a sort of a nice fun light read. And this was by a person named Drew Hayes. I've never read anything of theirs before, but I thought this was a nice easy read. Definitely didn't you know wasn't a brain burner or like whoa, we gotta rewind that. Hang on, what just happened? Just a nice easy light fun read about sort of, you know, what I imagine, you know. Well, they actually do write books about comic books, like books involving the people from comic books. It's kind of like that, like if you just have a nice like what you would read in a comic book, but someone actually wrote it with words instead of comic book pages. Cool. I'm doing a terrible job. It's so hard to describe.

  28. B

    Book? No, it sounds good. I mean, it sounds like—is it like a kind of a parody of comic books or no? It's just in

  29. A

    that vein. So I've previously Brandon Sanderson has a book about superheroes as well. What was it called? Oh man, I think it's like Calamity, and there's—I think I've recommended a couple of the books in that series. Anyways, and this is sort of in a similar vein, except a little more goofy and light-hearted, I guess. But no, it's not a parody of it. It's just sort of, you know, most—you can't write a comic book about Batman, you know, because Batman is licensed, so everyone has to come up with their own kind of stuff, and they're not, you know, making fun of Batman; they had their own characters and doing their own thing. But you can't sort of write in that without paying some sort of homage to those kinds of things. So I wouldn't say it's a parody, but it is just trying to be sort of in the same style.

  30. B

    Okay, that makes sense. Very cool.

  31. A

    I feel like I should just read the whatever the back of the book because I think that's boring. You can just go online and do that.

  32. B

    Yeah, yeah. I mean, the goal is to get people inspired enough to do that. So yes, if you're looking

  33. A

    for a light-hearted book set in a comic book style setting without any trademark infringing characters i would recommend forging hefestis uh it's the villains code book one although as far as i know there's no book two yet so tbd if it actually becomes a series

  34. B

    Very cool. Yeah, I'm reading the book of this show from last month, The Claude Shannon book. When I'm done with that, I'm actually and I'm actually—I chose to read that book like read it. So I have a really long flight coming up, so I think I will get this and I'll listen to it. Nice cool. I'll listen to it on Audible. So I have an Audible subscription, and it's been the audience knows probably better than we do, or someone in the audience knows. When I said I got the subscription, I think it's been about six months, but I've definitely used every credit almost immediately, and it's been a lot of fun. If you want to get an Audible subscription and help us out at the same time, you can go to audibletrial.com/programmingthrowdown. We have a link in the show notes, and when you sign up, you'll get a free book, and you'll also help out the show.

  35. A

    Very nice. And Jason already mentioned our Patreon, but if you go to patreon.com/programmingthrowdown, you can elect to give us a donation for each episode that we release, and we're thankful to all the people who have done Audible trials and who sponsor us on Patreon. It definitely helps encourage us to keep making shows. Yeah.

  36. B

    Definitely. I mean, you can—I won't make you feel bad if you join Patreon. You know, win the biggest prize and then leave. You're totally free to do that. But we appreciate everybody, even if you just joined for a month. We appreciate that. You helped us out. It really keeps the show going, lets us reach new people, and then all that. Good stuff. My tool of the show is Firefox Developer Edition. So one thing about this—so Firefox Alpha, which hopefully becomes Beta or becomes Firefox very soon, is amazing. And actually, I haven't used Firefox—hadn't used Firefox in years. Somebody at work just said, 'Hey, you have to check out the new Firefox.' And it was somebody who works on our web speed team. So I took it—took his opinion really seriously, and so I checked it out, and it is amazing. Like, I can't wait for this to come out. It doesn't use very much RAM. It runs super fast, and I just feel like you know Chrome was really amazing when Chrome came out, but now it's kind of especially in terms of how much memory it uses, it's becoming kind of more and more bloated. And Firefox they basically redid everything. They started kind of from the ground up, and I think a lot of it is in Rust that they rewrote it in Rust. I don't know if that matters or not in terms of like what I'm seeing, but the performance is unbelievable. And so Firefox Developer Edition is a fork of Firefox Alpha which has a bunch of really cool features for developers, like it'll do really intense profiling of your website. It does—has a bunch of really cool features like JavaScript debugging and things like that. And it's running Firefox Alpha, and it's you know even though it has all these developer features, you could use it as your regular browser if you wanted to. So definitely download this. Check it out. You'll be blown away at how amazing it is. And you could also do some really cool debugging while you're [there].

  37. A

    There I saw someone else mention that the new Firefox was pretty good, but I haven't—I don't know, I'm too lazy. Now I guess I should check it out, but will it migrate all of my like bookmarks and tabs because I have lots of.

  38. B

    Tabs. Yeah. So you know, I actually had back when I ran Firefox and Chrome kind of alternating. There's a thing called a Bookmark Box. It's an extension, and it basically syncs your bookmarks to Dropbox. And if you run the same extension on multiple browsers, it'll just keep everything in sync. Oh, I should have done.

  39. A

    I should make that the tool of the show and install it right now. Um there—

  40. B

    You go? You could do that. Yeah. I don't.

  41. A

    Know. I guess my thing is I use tons of tabs. Like I use tabs as sort of a light for an ephemeral bookmark or whatever, which makes me sad if my browser ever crashes and I lose my. Oh yeah, but I just sort of—I don't like the creating a bookmark seems so permanent. Yeah, it's true there really needs to.

  42. B

    Be better. And I like.

  43. A

    Just sort of scrolling through Hacker News or Reddit or whatever and just like you know doing Command Click or middle click on the mouse and just like clicking—click, click, click, click, click—like opening a ton of things and leaving them as sort of like a very, you know, I'll skim them later and then close it. I don't want to bookmark it, but man, I get so much flack at work when people ever come by and they're like, 'Dude, how many tabs do you have?' You know.

  44. B

    It's funny. I get—I have exactly the same thing, and everyone says the same thing to me too. It's like great minds think alike.

  45. A

    I'm gonna go with that. I'm gonna say next time someone tells me that the Great Jason said that he also runs a ton.

  46. B

    Of tabs, and I'll do the same thing, and no one will know that. No one will know who the other one is. Oh, there we go. We

  47. A

    Just need like famous Twitter accounts now or something? Be like, 'Yeah, that's right. Patrick says um we need to get the blue badge or whatever, the verified.' I've been on Twitter and I don't even know how long. I hear it's popular these days. I feel like I have to give a financial statement. I'm short Twitter, so if it goes down that makes me money. So wait.

  48. B

    Are you kidding or are you serious? No, I'm serious, but that's okay really. Yeah, I've actually, I've never shorted anything my whole life. I mean, I know what it is, but I just feel like it's for the pros, like. Oh wow. I— Feel scared or I don't know. I'm not, you know, I'm not a good person to ask investment advice. Okay? Well,

  49. A

    This will be it'll derail the conversation greatly, but yes.

  50. B

    Yeah, yeah. So we'll move on. Interesting. Okay.

  51. A

    I'm not long Twitter, so no spilt milk if they go.

  52. B

    Down. Um, there you go. My.

  53. A

    Tool of the show is a game surprise. The Witness, and yes, I know I'm really late to the party. Everyone already played this a long time ago on their computer. But I've been playing it on my iPad, and although I did start playing it without a controller—like I do have a wireless controller—and initially I was trying to play this and I saw some of the reviews saying, 'Oh, you really got to use a controller.' I was like, 'Oh, this is no problem.' I'm just enjoying just tapping. This is working well. And then I got to a couple puzzles, and I

  54. B

    was like, 'Oh, you totally have to have a controller.' Um, oh, and so.

  55. A

    Do well. If you've played The Witness, you'll know. But if you've not, it's a puzzle game by this—I think it's the same guy who made Braid, Jonathan Blow. Is it? Yeah, that's right. And so it's in the vein of kind of like I guess Mr. Raven, if you've ever played one of those where there's all of these puzzles to do, but sometimes the puzzles are, you know, very obvious, like there's a blinking thing on the screen and you need to interact with it in some way. And sometimes you need to sort of position yourself very carefully within the environment, like look in a very specific direction from a very specific spot so that you can see a clue. So if you imagine like whatever they show when they do Stonehenge, like on a certain night, if you look to a certain hole drilled in a certain stone, then you can see the—you know, for one minute the moon appears in the hole or whatever. You know something like that, like you need to be lined up at this specific spot and if the fine-tune adjustments sort of necessitate needing for me the video game controller, the sort of wireless controller, to be able to kind of move your position very slightly, but other than that, the game itself I'm really enjoying. I'm terrible at it. I think like I feel it's one of those things that makes you feel like you're missing out a bunch of things, but I've been trying to not cheat and use the strategy guide. Okay? It's not cheating, but I just try not to use the strategy guide because I know I could just look up all the answers to all the puzzles, but if I'm going to do that, I should just, you know, like watch a walkthrough on YouTube or something. Yeah, it'll ruin the game. Yeah, exactly. Um, but it's really tough to, you know, sort of play through, and some of the things I have had to look at the strategy guide a couple times because some stuff I felt like, oh, that wasn't completely obvious, and I am a not long attention span gamer, so I knew I would just give up before figuring it out. Um, but overall, I've really enjoyed the puzzles. They're very varied, and I mean, I think they're pretty well thought out. So if you've not checked out The Witness before, a puzzle game, puzzle game, uh, now it's available on, I think PC, Android, iOS, you know, everything. So, and it is a little bit of a premium game. I think it—I think when I bought it was like 15 or 20. Um, but I mean, it's a really good game, and you would pay way more than that, you know, for it on the PC when it first came out. So, I

  56. B

    Don't feel that bad. Yeah, it makes sense. I'm surprised actually that there aren't 50 games on iOS.

  57. A

    Yeah, I mean, yeah, it seems like—I mean, I'm surprised. I still feel that 50, 60, 70 games are really expensive. In fact, I

  58. B

    Don't. Maybe that's true. Maybe I don't think I've ever—oh yeah. I just like, yeah, I guess I'm surprised PC games aren't $30. I'm surprised iOS games aren't $30. Yes, I agree more with this sentiment.

  59. A

    Yeah, I'm not the kind of person. I maybe—I think I've played games when they first came out, but I don't play a lot online, so I don't feel compelled to buy a game when it first comes out. So, I always buy them when they're, yeah, like five dollars. Yeah. So, like five years

  60. B

    Later. Hey, nothing. Wrong with that? A lot of games are—I still play a lot of classics. Oh,

  61. A

    which I will say if you're into that kind of thing, I joined a subreddit. I think it's called r/PagentGamers, which is for other people of like-minded things about playing games long after they've come out. And it's all—it's kind of fun because it's all about people being like, 'I know that I've finally got around to playing this game.' Like, here's a top post currently: Finally finished The first Assassin's Creed, which who even knows how long that came out. Um, playing Zelda: A Link to the Past for the first

  62. B

    time? Oh man, that.

  63. A

    game's great. Yeah. So, um, people are just sort of talking about instead of, 'Oh, the latest greatest game,' 'the latest greatest patch,' you know, they're talking about things that, you know, came out a long time ago, and there's a lot of good stuff in here, you know, I sort of forgot about or didn't know about. That's really cheap and sales, and it also my computer is not sort of up to scratch for playing modern games. So um, there's that now. It doesn't have things like—it isn't mostly about console games; there are occasionally, but it's not like you would see on kind of an emulator or forum where people are, you know, talking about, you know, classic Super Nintendo games all the time. It's a lot about PC games, but you will occasionally see um console games on there.

  64. B

    as well? No. Very.

  65. A

    Cool. No, I guess it's a mix.

  66. B

    Maybe an even mix. Oh, that was off topic, sorry. No, no, it's fine. Yeah, I'll have to check that out. I love going back and playing old games.

  67. A

    All right. Time for internationalization. Internationalist, i18n, as they say.

  68. B

    I did not know what that?

  69. A

    Meant for a very long time. I

  70. B

    Will not lie, me too. I had no idea. So, for people who don't know i18n, it's—it's just because there are 18 letters in between the first and last letter of internationalization, so it's just the 'i' of Internationalization, then 18, and the 'n.' And they have the same for localization. It's L10N. And yeah, for the longest time I was like, what is i mean? I knew vaguely what it was about, but I had no idea the context of that. I feel.

  71. A

    Like you and I probably learned this at the same place. Yeah, yeah, exactly. So, yeah, I too—I somehow by context figured out what it was. But yeah, someone had

  72. B

    to explain it.

  73. A

    To me? Oh, really? Oh no, I never. Yeah, anyways, I actually just thought it was like because if you say i18n, it kind of sounds like it, so I never bothered to count the letters. Oh no.

  74. B

    In my case, basically, like—I just went to this meeting and right off the bat, the person was like, 'How many people here have heard of i18n?' And they just explained it. Right. Oh.

  75. A

    Okay, okay. Yeah.

  76. B

    I didn't—didn't have that.

  77. A

    So, so different. Let's talk about what localization and internationalization are and what the difference is. So I think when for me at least, I mostly hear the term Internationalization (I18N), but often people mean localization. Um, so let's talk about localization first because I think it's the one that you know, you probably think about when you hear it, which is localization is sort of translating a computer app or program or website to a different location. So you're making it local to a person's language, to their customs for things. Um, you're doing all of the stuff to make it feel as if that piece of software was written only for people in that area. So each person gets a different locale, you know? If when you install Windows and it asks you, you know, sort of where you are and what language you speak, the idea is they want to make it feel like Windows was written supporting you where you are in the world, as if local people wrote it. Internationalization is making software that can be localized, so not making assumptions in the code about which stuff we're going to talk about, but sort of the act of supporting localization is kind of called internationalization. But internationalization could also kind of mean doing things in a way such that you know the most people feel that it's kind of the right way even if you don't do localization. So you can do internationalization without localization. And I guess in theory, you could do localization even if you didn't do internationalization, but it would make it really miserable. Yeah, how would that work? So I mean, you could just for instance like take all of the byte code for a program and change the strings from English to Spanish.

  78. B

    and hope

  79. A

    that you know they're all the same length or something. Right? You could do it. Yeah, I don't know. That people do that, it would just, yeah, it would be horrible. Right? You know, or you kind of think of like you the equivalent of running Google Translate, you know, instead of having someone translate your page for you, or doing it yourself, you could sort of just scrape all the text off of a page and run it through Google Translate and then claim that was your, you know, localization strategy without having done much internationalization.

  80. B

    Makes sense. Okay.

  81. A

    Anyways, so why don't you tell us some about the kinds of things you should worry?

  82. B

    About? Yeah. So localization and internationalization is actually really, really hard. I mean, it sounds easy, but there's a lot of complexity, and it makes sense. I mean, the world—it's a big place. Yeah, there's just there's just—I try to figure out—I feel like if you say this wrong, it comes off really bad. So I'm like, I want to be really careful. But basically, like there's just several, there's many civilizations that have been around for a really long time, and so there's completely different sets of customs, and all of that is sort of reflected in the language. Right? Um, so for example, there's some—there's some languages that go right to left, like I think Hebrew goes right to left, and I don't know if that's the only one I can think of, but and there are some that go bottom to top, like I think Japanese or Chinese or something, or maybe it's just in their sign, but there are definitely some languages where when written they start at the bottom and go up. Um, so that's—that's something to think about. Like you, so if you have something left-justified in English, it probably should be right-justified in Hebrew, right? Um, there's sometimes—there's some places in the world where they use the period to separate numbers. So if you have like a thousand, it'll be 1.000, right? I think most European countries are like this. Um, in the U.S. and Canada, these commas, right? Currency symbols, right? I mean, so easy. You put a dollar sign, you know, for $100, but it's a pound, and it's who knows how many. It's probably tens of different currency symbols at least. Um, also the dates. Um, we do month-day-year. Um, actually there's like a bunch of places in the world where they do day-month-year, which actually kind of makes more sense like as from a computer science standpoint, but you know those are two sort of different standards. And even though like day-month-year might make sense, you know, logically, you know everyone in the U.S. is used to seeing month-day-year, and so we have to be able to accommodate sort of both of those standards, right? So there's a lot more going on than just replacing strings. I think other things.

  83. A

    That you know sort of thinking about this—um, and a lot of it applies, I guess maybe more so to kind of websites than to software per se, but you got to realize there's cultural differences as well. Um, like putting a bacon cheeseburger on the front of your, you know, non-food related site um may appeal to you as a, you know, American, but somebody who is sort of doesn't eat pork then they're going to see that bacon, or someone who doesn't eat beef is going to see the hamburger. You know, they're going to be—they're not going to have the reaction you wanted them to have um or that you thought they might have by looking at that thing, or someone who's vegan, right? Like everyone's going to have a different reaction based not just on where you live but, you know, lots of different things about who you are. And so thinking about those kinds of things, I think can also come into play here, which is understanding who your audience is.

  84. B

    Yeah, yeah, absolutely. Yeah, that's a really good point. I mean, it's even if you do all of this right, it's not necessarily the end. Like you also have to think about just the entire experience and the whole—the whole app user experience, you know, is it catering to the different markets that you're operating in?

  85. A

    The one that I always think about, I guess, is, and I've not spent a ton of time doing it, but I know it's a thing. Is I always came from C where a character is a byte, a char, uh, and a character is eight bits of which only 127 are actually valid. Um, and so it's the lower 127 numbers, and you can look up, you know, whatever that guy who's probably made millions of dollars when you search ASCII table, uh, and it comes up. Yeah, that's

  86. B

    Right, and I...

  87. A

    Forget. I think I saw it one time. This guy anyways, this person runs this website ascii-table.com, and every time you search ASCII table, if you're a C programmer, you've looked this up before. I know you have. Um, and so this is what I always think about when I think about character sets, but this is by no means not even the beginning of all of the

  88. B

    characters. That's right. Yeah. I mean, there's um so Unicode is incredibly complex, and I only know just the very basics. Um, but basically Unicode is at this point it's like pretty well standardized, and it can represent just so many different characters. Um, there's unbelievable like all sorts, like Arabic and Chinese and different like traditional and simplified, and it just like goes on and on and on. Um, but the really kind of cool, uh, there's different, you know, UTF Unicode text formats. Um, but the most interesting widely used one is UTF-8. And the cool thing about UTF-8 is um, you know, if you're just doing characters 0 to 128, so you know this includes all the you know English letters and digits and and symbols and you know most of the things that you're used to printing on the console, um those are actually they translate there's there's they're the same character. So in other words, if you want to print like a lowercase 'p', then whatever the ASCII value for that is, the UTF-8 value is the same thing. And so every ASCII file you have is also a UTF-8 file, right? And so the way they kind of handle that is, you know, you have your 0 to 128. And so remember this is, you know, uh an 8-bit character. So you have an 8th bit left over, right? Like you can do Oh sorry, I said 0 to 128. It's actually 0 to 127. You can do 0 to 127, and that only—that only takes 7 bits. You have this 8th bit left over, and you know with regular ASCII, that would be where your extended ASCII. would go. So if the 8th bit was set true, then it's a number that's, you know, 128 or greater, and they use that to represent, you know, like pipes and half-filled in characters, all sorts of kind of weird glyphs, right? So with Unicode, if that 8th bit is filled in, that tells the Unicode engine that this is a multi-byte character. So um that next byte in in in the in the file or whatever it is is is is a continuation of the current character, and that's going to unlock you know all those other characters. And and that uh idea actually keeps going. So in other words, even the second byte has that option where if that last bit is set, then that second byte is saying, 'Hey, there's a even another byte after me that's representing you know even some more characters.' And uh that's—that's kind of the idea behind UTF-A. And so, you know, it wastes a bit of space because you have all these all these sort of bytes that are just telling you information instead of being able to represent characters. So it takes more space than like UTF-16 if you know a bunch of your characters were were 16-bit, right? But if a lot of your characters are just English letters and only a few of them are sort of that extended format, then you're actually saving a lot because because in that case that second byte would be just empty a lot. So it's sort of a trade-off, but you know the combination of being able to represent ASCII and you know saving bytes when you're just showing regular things like spaces and whatnot makes UTF-8 just completely dominate. So I mean something like over 90 percent of the entire web is in is in either ASCII or UTF-8, I think.

  89. A

    The other thing to watch out though is that assumption where I start off with if you're sort of a C programmer, if you look at well there's no strings, but if you look at a character array that's five bytes including the null terminator because we're good C programmers, um that the that the that's not a four necessarily a four-character long string, right? So this is something that could get baked in if you're you know doing formatting and assuming that hey, I have five things in my array. I need to make space for four characters. That is, you know, kind of a bad assumption because like Jason was explaining in UTF-8, you could have multiple bytes per displayed character. Yep. Yeah, exactly. And that's part of internationalization is understanding that that can happen.

  90. B

    Yeah, you don't want to try to do Unicode yourself like you don't want to try to print Unicode characters using just printf or something like that. It's going to be a disaster.

  91. A

    Yeah, I guess like an example. And I don't I've never done this before, so I don't know how it works, but trying to think off the top of my head, I guess if you asked if you required a user to enter exactly a you know 10-character password and so you saved you know only 11 bytes for that password, and someone and and and you had the ability to enter UTF-8 values, you could end up you know sort of truncating the person's password because

  92. B

    you can't save.

  93. A

    the whole thing, right? So yeah, that's part of understanding this assumption is saying that oh what's the maximum size something can be given if I know the maximum number of characters it can be.

  94. B

    Yeah, that makes sense. It sounds like um... I mean, like I've never really done low-level programming, and so I've always just passed strings around not really knowing how many bytes there were under the hood, but it sounds like this is like very very difficult. You know, like if you're if you're trying to handle a internationalization like C or something like that yourself, it's probably going to be bad news bears. But they have I guess unit code strings and things like that, right? Even in C, yeah.

  95. A

    I mean, I think they're just handled—not in the, I don't know, I don't want to say normal way. That's not the quite right way of saying that. You just have to take a little bit of special care to make sure you have the right types.

  96. B

    Oh, I see. Got it. There's like a unit code string STL type or something cool. So yeah, we'll talk about basically some tools that make this very easy. Like most things—I mean, this is going to be kind of a common motif, but you don't want to be doing a lot of this yourself. This is one of these things that there's been a few tools that have kind of risen to the top and kind of occupy, let's say, 90% of the internationalization effort, and they handle all these different complexities for you. And if there's some very esoteric need, someone just goes in and fills that need in in one of these libraries. So the most famous is Gettext. Gettext is—if you run any type of Linux, you already have Gettext. It's almost impossible to not have Gettext on the Linux machine. I think even OS 10—Patrick, you'd probably correct me if I'm wrong—but I think even OS 10 has Gettext. I've never tried it, so I don't know. Probably. Yeah. So I'm pretty sure. So Gettext does a bunch of different things, but basically one of the things is whenever you have a string literal. So imagine if your program just says, you know, C out bracket bracket, you know, 'Hello, I'm a dog,' or something, right? So I don't know what made me think of that. So see what you do is with that string literal, you would put underscore parentheses and you would put that string little literal in parentheses. And what that's going to do actually is—that's going to invoke a compiler macro. So Gettext has a compiler macro that's the—the macro is underscore. So they've kind of taken that macro and that is going to allow us to sort of swap out that string with something else. And so there's a bunch of other utilities. It's not entirely done at runtime, but basically you can write your code with this style, and I think it's underscore. If you have a number, there's a couple of other macros for different things. And then it will generate what's called a PO file, like a Portable Object file. And what that's going to do is it's going to say, 'Hey, here's the string as you put it,' which let's say you're an English programmer, you would write the string in English, like 'Hello, I'm a dog' in English. And so this PO file will have your string in whatever language you did. And then the next line, it'll have a placeholder for you to put the string in a different language. So you'll have a PO file for—well, assuming you're writing the code in English, you have a PO file for French and Dutch and German and all these other languages. And each of those PO files will have all of your strings the way you wrote them, and then in between them there'll just be these empty lines where you can write the string in the other format. And then when you build your code, you say, 'Hey, I want to build the French version,' and Gettext will do all those substitutions as it's building the code depending on how your build system is set up. So it's in that sense it's pretty straightforward. It handles numbers. It does all that pretty well. And yeah, it's—it's basically the standard. So that's the first thing you should try. It's built into Python. It has bindings for PHP and Java and all the other languages, and that's like the go-to thing. So if—if for whatever reason you can't use Gettext, check out ICU. ICU is—it's actually pretty common in Java to use ICU instead of Gettext, but this also supports other languages. And yeah, those are the two big ones I can think of. They kind of dominate, so Have you ever had to do any internationalization?

  97. A

    I'm sure I am. Probably—done the opposite. I've probably done horrible bad assumptions in my code. I am.

  98. B

    Exactly the same way. No.

  99. A

    I—I don't know. Like it's always something. I've—it's forever on my list of 'I should do better at.' Um we did briefly talk about it at my previous one of my previous jobs that we were going to sort of release some stuff in another language, and that we needed to, you know, what was it? Going to take to support it. But we were also on a very low-resource device, and so the thought of having all of our strings take twice as long—you know, twice as many bytes—would have put us in a really bad spot already. So we sort of got away with not having to do it at that time. And so makes sense, but yeah, I can imagine it's anything from very simple to very complex. Um I also—yeah, I think oh, go ahead. No, no. I was going to say—I mean, the other thing we tried to do on that project was just eliminate as much text as we could from being necessary, so using a lot of

  100. B

    Like good point. Like icons instead of words. Yeah, that totally Makes sense. Yeah, I mean, I think you know Gettext is pretty simple. I think as you said, it gets way harder when you have to deal with like right-to-left because even—you know, people don't think about this, but like, you know, even like you have the close button on the top left if you're running OS 10. Anyways, you have the close button on the top left that's actually on the top right if you're if you're in the right-to-left mode, like because in other words it's not just 'Oh, draw the text and not like reverse order,' but it's really like people are used to what we're used to seeing on the left, like table of contents—all those things they're used to seeing those on the right. And so the entire user experience has to flip. Um you know, almost like flipping the screen, but you can't—you can't just do that because then all the glyphs will be backwards. So it's pretty complicated. But yeah, I also—I've done almost nothing in this space. The only thing that I've had to do is deal with Gettext problems like when packages won't compile and things like that because of Gettext. But yeah, I mean, it's you know it's super important especially now people are, you know, you can release an app on the App Store today and sell that app in like 20 or 30 different countries. And sometimes it's amazing—you know, there's been things like Orkut. Orkut's a good example of something that's just insanely popular in Brazil kind of almost randomly. And that could happen to your app, and you might end up where your biggest market are people in a different country. Didn't they finally shut down Orkut? They did. Yeah, took a very long time. Sorry, I didn't mean to interrupt you, but yeah, I think

  101. A

    you're right like having a strangely popular in another place thing yeah

  102. B

    yeah totally makes good problem to have yeah i mean as long as you have the get text then you're good to go cool so yeah i think that covers internationalization um you know just a as a summary you definitely want to uh you know look into one of these libraries if you if you know how they work in advance that really is useful because you can kind of even if you don't internationalize on day one you can kind of structure your app in a good way um uh and uh yeah we'll see you guys to uh next month with our prize giveaway we'll go live for that and i'll give you more details about that later on

  103. A

    hey guys this is patrick in the editing bay or uh we got some submissions for new theme songs so we're trying them out as outros this first one is the tube by parker knight falls Thank you. Thank you. Thank you. Thank you.

  104. B

    Thank you. Thank you. Thank you. Thank you.