- Podcasts
- Programming Throwdown
- Technical Arguments
About this episodeSunday is a non-traditional day for a new episode and this is definitely a non-traditional episode! Today we are talking about Technical…
Sunday is a non-traditional day for a new episode and this is definitely a non-traditional episode! Today we are talking about Technical Arguments. We cover the most common arguments/debates you will have on the job as a software engineer and how to make the best arguments to reach the best decisions with the least amount of friction. Patrick and I tried not to inject our own opinions, but it's hard not to add our two cents (yes, spaces really are better). This episode is the first of a potential new genre of show, where we talk about non-technical facets of being a software engineer. Listen to this episode and report back on whether we should do more shows like this one! If you want us to stick to our existing formats (technical topic and interview) let us know that too! Show Notes: https://www.programmingthrowdown.com/episodes/79-technical-arguments
★ Support this podcast on Patreon ★Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Technical Arguments
Hey everybody! So this is going to be an interesting episode. You know, we do every episode in one take, and this is going to be no exception. But this is going to have—it's going to be a pretty wild one. So you know, usually we're covering a language, we're interviewing somebody, and you know, we've talked to them beforehand so we kind of know they're a subject matter expert in X, and we know X pretty well. This is going to be something pretty different. We're going to talk about arguing—you know, not in general, although that might come up like more like philosophical stuff, but really about arguing at work. We've both been in tech for a while. I've seen a lot of the canonical arguments. We'll kind of go through a lot of them. But I wanted to talk about Bitcoin. I actually took the time to really understand how Bitcoin works, so I'll spend a couple of minutes on that—like the actual technology. And Patrick, you can kind of fact-check me on this, but basically, when we did the Bitcoin episode with Amy Juan a while back, I had just started learning about Bitcoin, and one of the things I asked was sort of how do you keep somebody from just saying, 'Oh, everyone gave me a million dollars,' right? And what I learned is under the hood there's this thing called—basically a hash list, I think it's also called a Merkle Tree or whatever. But the important takeaway is, in this chain of events, every chain has the hash of the block before it. So what that means is, you know, you take that—the let's say you're at Block N and you have to make Block N plus one. Well, Block N plus one will have a hash of Block N in it as part of the block. But then if you think about it, it becomes this sort of recursive thing because Block N has a hash of N minus one, and N plus one has a hash of N minus two, so on and so forth. Let's say you decide to change Block 2 and give yourself a million dollars, right? For you to do that, you have to change all the blocks afterwards, right? Like you have to change everything because as soon as you change something, then the hash of the thing after that is different, and that hash is part of the next hash. So it just ends up being this huge thing that you have to change. And doing that change—like adding a block—is hard, right? I mean, I won't go into a lot of details, but it's something that will take your computer a long time. So you know, people are constantly adding these blocks; the change getting longer and longer. There's a ton of machines out there, and basically, you just can't really keep up, and you can't just make a change in the middle without progressing all the way forward to the present, and you can't really catch up to the present by yourself. So for this reason, this is sort of how the system kind of heals itself. Even if I can—there's a whole bunch of things around on how to mine the block and all of that, but let's say I get super lucky and I can mine a block, you know, I can't say, 'Oh, everyone gave me a million dollars,' because other people aren't really going to validate that. And then while they're trying to reconcile all of that, more blocks are getting added, and I'm not going to be able to add blocks as quickly as everyone else can.' Well,
A simple way to state that though is you need people's identities tied to a public key and you need a private key signing the transaction that says you transferred a million dollars. So if you mine a block and put all of these fraudulent records in, wouldn't they—they wouldn't be cryptographically signed correctly. So you couldn't say Patrick gave me a million dollars because I'm the only one who has the private key that could sign such a message that you would include in your block. So if you made up one and put it in your block, and then other people fact-checked you, they would realize that that block was invalid. Yeah.
But then the Merkle Tree—the chain comes in from the fact that someone else could mine on top of my fake block, but they're disincentivized to do that because they won't get the reward if it's if the majority of nodes participating don't accept that as a valid path. If they basically say, 'Hey, somebody has an invalid block here,' and anything after that block is also invalid, then you're incentivized to make—to sort of fact-check other people so that if you complete your mining of a block, you will emit a block which is on top of one that doesn't later get invalidated, right?
But then, yeah, I agree there's the public private key thing, but then you need more. Like you also need Proof-of-Work and this whole hash tree because you could say, 'Well, if I have the private public key, then what do I need all this other stuff for?' And so, yeah, I think you're right. So let's say there's a list of sort of valid transactions at some point. You still have to decide which sort of valid transactions you want to execute in the next block, and that's where if you limit it to the scope of valid transactions—that's where the stuff I said originally has an effect. Like I can't just put all the blocks on myself and take all the credit for all those transactions because I'm having to solve this difficult problem, and there's a whole bunch of other people doing it at
the same time. Well, the reason for having Proof-of-Work is to say that—that's exactly right. Like people are incentivized to sort of continue this chain on in a way that sort of adds credence to earlier things in the chain, and they're incentivized to do that to do work. And if it was—if there wasn't a Proof-of-Work, it would be too easy to just sort of make infinitely many of these things, and you would just get lost in the noise. So you see need some mechanism for sort of controlling
the rate, right? Right. Yeah, so it kind of makes sense. I'll definitely read up maybe next month. You know, I'll post some links to the things that kind of explained it the best because I've read a bunch of them, and obviously some are better than others, but overall, yeah, it was really interesting. It was a fascinating thing. You know, I think I would love to see—you know, there is some like I think it's called Steem, but there's like a forum that's based on Bitcoin which I thought was pretty cool, and it has a bunch of really neat stuff coming from that technology. So
So your explanation of chain though also describes why you hear about cryptocurrency forks. There's like Ethereum forked into Ethereum Classic, and Ethereum Classic Bitcoin has forked several times. And this is where people say, 'You have if you had Bitcoin now, you have a Bitcoin and a Bitcoin Cash token because there was a fork.' And people talk about hard forks and soft forks, and those are basically paths where at some point in time people say, 'At Block Number N plus one, we're going to switch something in our code,' and other people say, 'We don't want to,' and there basically becomes a hard fork. There becomes two blocks minted with the same predecessor node, but but then some group of people both authenticate those chains going forward. And so now you have two paths that were common at some point. So they diverge, they fork, and then they continue on, but from that point on, they don't always have the same sort of value relative to fiat for a cryptocurrency, or they have their own set of conditions that make or don't make sense. So in the case of like Ethereum versus Ethereum Classic—whether the automated thing which had the hack whether that happened or not—essentially in one, they tried to undo that in the Ethereum, and the Ethereum Classic, they said no, that makes no sense to undo that. I'm greatly simplifying, so it makes no sense to undo that; that was a valid thing to happen, and so we're going to continue on saying as if it did happen, and so now the two chains diverge; they're hard forked from each other.
No, I mean take over isn't the right. They can't because, like, you just described these chains—there's no mechanism for sort of joining them, but one could be worth more than the other. So, like Ethereum is worth more relative to fiat, relative to US dollars or Euros than Ethereum Classic because more people think that's the right choice, I guess. Um, okay, but this has different implications of whether you're talking about a cryptocurrency on the blockchain or a different use. Um, so, so take—but then take over is anybody could you could create a fork of Bitcoin if you wanted? You could just come up with a new set of parameters, mine do the Proof-of-Work, mine the coin and you know declare, 'Yay! Verily, this is Jason's Jason Coin as a fork of Bitcoin.' Um, that's what I always—but then you have to convince somebody it's worth something.
Yeah, that makes sense. Makes sense because then some machines who don't have that change, right, will mine the wrong way and everyone else will mine it. The right way is that, right? Yes. Yeah. Well, right and wrong is perspective, but yes, the way that dominates. Yeah. The way that holds the value, I guess. All right. On to news. Um, this is pretty cool. So, this is OpenAI 5, which is basically—there's a game, you know, AlphaGo played Go better than, you know, the world champion. And so there's always been, you know, sort of the frontier of AI seems to be now, you know, playing these video games and basically passing the Turing Test on these video games. And OpenAI 5 is sort of the next iteration or the next evolution of that. So, there's a game called Defense of the Ancients 2. It's called Dota 2, and it's a five-on-five game. And so that presents a lot of really interesting challenges, right? So, you know, in theory, you know, well, depending on the rules and how the what the AI is allowed to do—I mean, you could say, oh, let's have one brain for all five players, one AI for all five players in a way. It's kind of cheating. But even beyond that, it turns out it's not very practical because that AI has to do exponentially more decisions. It's like, for example, just to keep it really simple, let's say you can go up, down, left, right, right? Well, let's say there's two players. Well, now I could go up and you could go up, or I could go up and you could go left. So now there's—there's 16 actions. It's not eight; it's 16 because all the combinations, right? And so making one AI for all five players is not actually that good. Um, so what they did is they actually created an AI that can communicate and send some signals to the other players—the other AI, or it's really to itself because it's one sort of brain that's just been replicated, you know, five times. It's really interesting. They go. You know, there's a lot of technical details, so I'm kind of hand-waving a lot of that, but basically it's—it's really amazing. Also, they ran it on a ton of machines. So, they really scaled it up and they just have all these machines like cranking through all these Defense Ancient games. And they were able to beat some amateur human players. So, I mean, this isn't like world-class stuff yet or anything like that, but it's still—it's still good. I mean, being able to beat an average, an average human is an amazing accomplishment. And they also developed some pretty interesting, you know, kind of altruistic strategies, you know. So one of the issues with AI is that it's very sort of self-centered. And so, you know, one of the ways a lot of these systems would fall apart at least early on is that there wouldn't be sort of coordination and altruism. And if one person was in any amount of danger, they would just run away, and then the humans would just pick them off one by one. Now, there's definitely some coordinated effort there. There are players, you know, the AI make sacrifices sometimes and things like that. It's pretty amazing, I have to admit. So, I'm in this field—I mean, this is what I do for a living—and so I am really, really shocked that this much progress was made in this amount of time. It's truly remarkable. And so it's going to be really fascinating to see where this all goes.
And did they—this, you know, this research they did in this paper obviously like is very difficult relative to like the amount of hidden information, the number of choices to make. But they find like any sort of what they thought was the reason to not continue to make even like not just beat amateurs but beat pros? It's just like processing power, algorithm, like they give.
Me. Yeah, that's a good question. I think—so okay, I still don't think that the game theoretic part is being handled correctly, right? So for example, if you look at—if you look at Dota, you know, the characters are stereotyped, right? So there's a carry who's supposed to—that is an association or carry the team, but basically they're the ones who are supposed to collect as much money as possible. You're not allowed to give money to your teammates, so they have to earn it. But you know the goal is to make the carry earn as much money as possible and not the other players on—on your team. Um then there's a support, and the support is responsible for buying, let's say all the items. So the idea of altruism is baked into the character archetypes, right? And I think even in the model they—they you know basically hand-tune that, right? And so then the real emergent altruism in Dota is this idea of like lane changing. So for example, for people who don't know Dota, real quick, there's three little lanes, like imagine like three little highways. All this battle is sort of going on on these three highways, and you're usually in one of them, but you can spend some time to switch lanes. And so, for example, let's say you're in the middle lane and the left lane—there's an enemy who's really weak in the left lane, maybe he got hurt or something, right? You could try to go across to the left lane and catch him, you know, trap him and kill that hero. And then you get a lot of money. And so, you know, this—there's this idea of like, oh, if if the opponent is sort of beating up on me, you know, I'm gonna kind of take some hits and things like that and let the opponent think he's sort of doing well. Meanwhile, my teammates are switching lanes, and all of a sudden there's going to be four people attacking this one guy. He doesn't really expect it. So there's sort of this like strategic—I guess I'll say strategic altruism or strategic coordination that's something the AI does not do. Um that is notably missing. And until they get that, it's not going to be very good. So so what I expect if I was to predict the next—the next thing that these folks would work on, I think they're going to you know really take a look at the game theoretic part of this and they're going to try to do some kind of, you know, approximate Nash equilibrium or some opponent modeling or something like that. So that, you know, at a high level, they can get this coordination, this altruism that they don't have at the moment. At a tactical level, they have it, which is really surprising actually. Like I watched one video where, um, you know, this player kind of got behind the enemies and then kind of trapped them, and the player who trapped them, you know, ended up like not really being able to get a lot done, but because he trapped them, you know, the other players on his team were able to go in and kill them all. And so that kind of like tactical coordination altruism—they've been able to crack that, which is a surprise. But the strategic part they're still missing. Hmm. So yeah. It's it's really cool. I mean, I wouldn't be surprised. I mean, I thought that this was way far out and now I'm starting to think that this could happen in the next like three or four years.
the stock market. And then okay, Microsoft announced this month that they're acquiring GitHub. That's wild. Yeah, this was really surprising to me when I saw the news, not because it just really seems sort of weird like Microsoft buying GitHub—like why? Um but people pointed out like there are some decent reasons. And you know, we'll see what happens long term, but Microsoft is not the company that, when I sort of—I don't even call it—when I was sort of went to college and first started working as a programmer, everybody loved to hate on Microsoft. And I guess in retrospect they did make a lot of bad decisions around that time, but they've come a long way, and they really you know, I've been looking through the list of things they've done recently, and they really have sort of seemed to kind of turn a page, which is pretty remarkable for a tech company to have been around as long as them and still be sort of in the running for, you know, impact on a day-to-day basis for people.
That's pretty close. All right, sounds right to me. But he—yeah, so he does. He's been doing a great job, and you know they've bought GitHub and continue to say like, you know, providing tools for developers and integrating, and they do a lot of open source work. They contribute a lot to, I guess, to Linux stuff. People were even saying and bringing that into Windows as well. So, you know, initial gut reaction is like, what? No. Oh, and there was some reports of, you know, projects fleeing GitHub and on to other things to avoid whatever.
Another part of this that a lot of people don't talk about, I'm kind of surprised, is—you know, GitHub made Atom, the IDE, and Microsoft released Visual Studio Code, which is a fork of Atom. And Atom is unbelievably popular. I mean, I bet Atom is really eating into their Visual Studio business to the point where they had to make Visual Studio Code. And so that's another thing is they really took a big IDE off the table, you know, or at least they own it, so they turned it into a win-win. So,
that's true. I don't know how—yeah, how speculative versus real they are. I guess maybe they have to disclose because they're a publicly traded company. But yeah, so there's a high acquisition price, and you know, I hope it works well. I like GitHub. I initially didn't really understand it or get it, but now I like it and use it, and we use it some for some peripheral projects I work on, and like the flow that they have for submitting code and reviewing code and managing projects has come a long way than when I had first was exposed to it. Yeah, so it's making improvements, and I know for open source projects—I mean versus SourceForge, which is what I used to know comparison. Yeah, yeah, this seems to be you know crushing it. So yeah, I
mean I guess some people didn't—or people think about GitHub as being you know just this bastion of open source, and I guess it really is, but they do a lot of closed source stuff as well. And I mean, I'm sure that's where all their money comes from: is selling to companies for on-site licenses, selling for companies to, you know, have private repositories. I mean, that's their—I don't even know if they have donations for other stuff, but I mean, they probably can't amount to much. So I'm sure they have a few really big companies that make a lot of money off of this, and that's always been or they make all their money off of a few relatively large accounts is my guess. That's typically how that stuff works out. And my guess is that people never really thought about that because it happened sort of behind the scenes. It wasn't the face of it, but now GitHub was a startup, you know, they were a company, and now the fact that Microsoft bought them though exposes you to this notion of, wait, but there is a company behind all this with profit motives and you know a desire to make, you know, product and sell it. And so most of people I saw were recommending going to GitLab where if I understand GitLab actually does open source their the hosting itself, like you can run for free your own GitLab instance. Oh, I didn't know.
That's the case. So they are also a company, but I believe it's more along the lines of traditional open-source companies where they open source it and then they hope you sort of like, you know, contract them for hosting of the data or for support or adding features. But I don't quote me on that, but I believe it's more in line with that style of project versus that makes.
That makes sense. Yeah, cool. My article is—this is actually families earning $117,000 a year now qualifies low income in California's Bay Area. So people probably know this. Patrick and I live in California's Bay Area. Obviously, I mean there's like your gut reaction which is, you know, that's crazy. But I actually want to talk a little bit about sort of like diffusing—not diffusing as in like shutting down, but diffusing as in you would diffuse like water or something, right? So, so you know, you're already starting to see it, but it's very slow. And yeah, I'd be really curious, Patrick, to hear you think about, you know, I mean a big part of Silicon Valley is communication over the Internet, right? And so it seems like, you know, these big companies could at least move, you know, branches of their organization to other cities and things like that. And you know, that would fix or they would address this—this income issue, traffic, and all these other issues. But, you know, you never see it. Like you always kind of say, well, this is going to happen. You know, I always kind of expected it, but it hasn't happened yet. And so now I'm starting to think that, you know, it's just maybe there's something like magical, I guess, about being physically close that makes these companies all want to consolidate in one.
spot, right? Yeah. I mean Eric Schmidt from Google—I mean, I heard him talk once and someone, you know, mentioned this like, why does Google feel that it has to have everybody in the Bay Area living or coming to Mountain View? You know, it's a tech company that makes all their money on the Internet. Like this makes no sense. Like, why everybody in one location? Um and you know, he didn't have really a great answer for it. But then they asked, like, what about this cost of living? Like this isn't sustainable. He's like, yeah, basically people have been saying that since, like, I want to say he said like the early '90s. I believe he came from like Sun Microsystems before going to Google, and so like he had been in that area for a long time. So I kind of expect he probably knows, but he's like, yeah, people have been saying that the Bay Area is overpriced and expensive and will never last for, you know, I guess three decades at least now. Um and they have gone through a couple boom-bust cycles, like obviously the dot-com crash, the 2008 housing crisis. So although that—that
so I mean there have been slight corrections, but in general, yeah, it's been just ever-increasing cost of living here. And as far as I know, and a lot of the articles around this mention this, it's, you know, which is an interesting observation if you don't live in this area. In general, in California, some things are more expensive, like gasoline is more expensive. Um but you also, in my experience coming from not in California, I drive—I don't have to drive as far. Well, California as a whole it's pretty big, but the Bay Area tends to be pretty compact relative to a lot of other areas. Um not obviously living in a big city, but so you don't need to drive as far, so you don't spend as much. So it's a little bit of a wash. Um but obviously there's a state tax that's pretty high. Not all states have taxes, but by far in a way the biggest thing is the actually housing cost. So housing is just really expensive. And the reason why you see something crazy like $117,000 a year—$117,000 per year could be considered, you know, low income is if you look most people say you're not supposed to spend more than 40 or 50 percent of your income on housing. And if the median house, I believe I saw in San Francisco, is now $900,000 for the median. Yeah. Um you know, if you sort of calculate out how much you're spending, you know, and rents are commensurate, if you look at how much you're spending, that's a large driver of that. It is strictly just
housing, right? Right. Yeah. I think um so yeah, the housing is really large, but but you know the Facebook and Apple and Google and Amazon and all these companies are building even more offices in the Bay Area. So it's pretty clear to me that that these companies see, you know, that the marginal value is still very, very, very high for having your employees local. Um And I agree with you. Like no leader has really, you know, given like a good reason. You know, I have heard things like um they say that if you're—um what was this? Oh, I don't know if this is that relevant, but they said that basically if you're in a different—if you're more than, I think 100 yards away or if you're in another city, it's basically the same like in terms of, you know, you don't walk over and talk to someone if they're in a building that's 100 yards away. Um There is a time zone issue that is very real. Um So so it may be the only way to expand is vertically, um like Portland, Seattle, Redding, LA, San Diego, like—to eliminate the time zone. But yeah, I just I can't imagine that personally. I can't imagine that the value of having your employees here is really as high as people are saying. But I'm also not leading thousand-person organizations, neither am I. Clearly know something that we don't. I mean, I would love
for some dispersing to happen. It would be great. Um but yeah, same here. Living here, being around all these people is a certain kind of interesting. Um And such a dense amount of tech people because you have a lot of concentration of people who like similar things to you. Uh so there's a lot of catering to that, which is nice. Um Yeah.
I mean just to give it put it in perspective and I don't know if the story is really gonna do that, but I'll tell it anyways. I was with my son and he was sick, so I took him to my wife was also sick, so I took him to Safeway, which is a grocery store that's open 24 hours. Um And as we were leaving Safeway, there was—I think it was—it wasn't necessarily like a bar, but it was like a restaurant that had a bar, basically if that makes sense. It was a bar. And so these gentlemen are walking out of the bar and I got a little bit nervous because really late at night. Um These people were definitely like very intoxicated. And um we had to walk right by them, and as I walked right by them, one of them basically tells like—and I'm not gonna say it's a little bit rude. I don't bother saying it, but basically told like a chess joke. It was like some like lewd chess joke, and I was like, 'Like this is like the dregs of society.' It's like it's like two drunk people telling like jokes about chess like at 2:00 in the morning. Basically what it's like here? It's just—there's just it's crazy too when you talk to the other people on your team or at your company and it's like everyone was like solidatorian of their high school at some part of the world or something. It's just like mind-boggling, yeah.
The Bay Area? Yeah, exactly. But yeah, there's this question, you know, I have this sort of hypothetical like thought—what's it called? A thought experiment, you know, if you opened a tech company in, like pick the place in America that's and I'm—yeah, I'm not gonna hypothesize, but imagine. Close your eyes. Imagine the place in America that would be the worst for a tech company. Fargo? No, I don't know. I don't know. Sorry if anyone's from Fargo. Where's what's far anyway? Um and let's assume Google opened a branch there. Well, like—you know some engineers are going to move from Mountain View to wherever that is, and and that I think is an unknown quantity. And maybe when Amazon finally builds this HQ2 we'll be able to like at least get a measurement of that of that number, right? But...
That's a different number than if you have a startup and you're trying to build one in Fargo. Yeah, I feel like that's—that's very different. I mean, because there are some engineers there, but you know most of what I've seen has either been somewhere with a reasonable size tech scene and saying that's enough, or we don't need the, you know, top 0.01% of the talent that exists in the Bay Area, or um something like that, or they're just committing to being remote team so there exist people spread everywhere. And if you're not committed to this thing Jason said of having everybody within 100 yards of each other and you're already saying we're going to build a remote company, a remote team, your options open up dramatically. But if you say, 'Hey, I need 30 really, really qualified people and I want them to all sit within 100 yards,' and I don't have to convince people to move, where am I going to go? You know, make my startup? Then your choices are much more limited. Yeah.
I mean, I think with startups there's a—there's another challenge which is most of the VCs are here and things like that. So for people to know VCs, venture capitalists, so those are the people who are going to take the risk, you know, and give your startup money before you've really built anything. But yeah, I mean there's—there's no reason why. Oh well, there are reasons, but like, you know Google could easily build a, you know, Google engineering office in Fargo, but then there's this question of like what would happen if they did that? And that's...
The big unknown. But yeah, the—that being low income is interesting because of what it really means, but also why and your question of is it sustainable is unknown, right? Everybody tends to say this time is different, and the fact that this isn't the first this time leads me to sort of bet against it being different this time. Yep. Just as a general rule, it seems like there's no obvious reason why it won't continue to be slightly worse and slightly—yeah, I mean, I think...
I do think it will sort of plateau. Like there's been crazy growth recently. I think you know at some point it will plateau, but I mean I don't really see like a big crash. I mean in general, I mean I don't know if this maybe this is just crazy talk, but but I don't really think there's going to be these big crashes anymore. I mean like in the...
And tech and real estate and just period. Just you know like like the the futures market is just so algorithmically dominated, um and I feel like that gives it just a level of resilience that that it just never really had before. And so even like if you look at the 2008 crash, it still took, you know, years or maybe at least 18 months for the crash to—it wasn't like the 1930s or even 1998 where companies lost, you know, 70 of their value in two weeks, you know. So yeah. So you're claiming is this time is different? I just think that there will be if there is going to be a decline, it will be a slow decline. I don't think that we will wake up.
Right. I mean you do. So yeah, I mean oh man, but that's your opinion, man. That's true. Five React practice projects. You can search that; it'll be in the show notes. This was a page I found, and in fact, it's actually kind of bad. I feel sad for recommending this because some of the links in here don't work anymore. I guess they referred to like an service that had some like kind of useful APIs that is now down, but this is a really good collection. I struggle with this a lot, and you know, a lot of people who are learning programming struggle with this, which is okay. I learned like how to write a for loop. I learned how to make a web form. What next? And actually coming up with well-defined beginner projects is really hard. And so for me, this has always been the case. Like I've always wanted to get into web development, get into—I mean, learn more about it. And one of the things I've struggled with is, oh, I know how to make a web page, like put HTML on a page that's cool. I can from JavaScript, from like a coding standpoint, I get, but there's a big gap in between that and making, you know, a full email client as a single-page app that runs on multiple devices or whatever, right? You know, like going from A to B. It's that how do you draw an owl meme that's on Reddit? Like first you draw like a circle. And then you finish it, and it's like, yeah, okay. Exactly. Anyways, so this site I thought had some really reasonable or at least, you know, I'm not done web, but they seem reasonable to me. Like a step of, you know, first try doing this, then you can use it in the same way to do this other thing. So the first one is like build what is it? Like a card, like a social card, like you would see someone who embedded a Twitter message on their website, and then build a weather app. And how if you build a weather widget app that you have like days of the week with some icons, and you can just sort of like fake the data, or or you know they recommend like oh maybe you go get this API. But those are like a series of those cards, so it's sort of like building upon itself. And I mean, I don't know that these particular ones are the most amazing examples, but I thought this is a good resource because I know for me it's really useful to have someone else who's already been down the path give a judgment on whether something contains an unforeseen difficulty that you won't be able to surmount.
Well, I mean. So I don't think—I guess it kind of doesn't matter. I guess it would be React Web because most of this is talking about like a card you would embed in a website, but it might be applicable to both. It's not—uh, here's a bunch of code on exactly how to do it. It's more like, 'Here's something you could go off and try to do.' Okay? Go off and have this. So the classic one for me is always, oh, I learned C, like I want to write a video game. How do I write a—how do I draw a pixel on the screen? And it's like, 'Oh well, you could learn that. It's not going to be easy or hard, but at the same time recommending you to go work with a C++ game engine isn't also a great first either.' Like it's an awkward thing, you know, which we've talked about before, like making a text-based game is much more approachable than making a full-blown graphics game.
To do one day. Nice, nice. Um, 'Book of the Show.' Show my book of the show? Really quick is 'Critical Play: Radical Game Design.' Um, yeah. So I read this book—I read this book last month, and it was the only book I read last month. Last month was an extremely busy month for me. It's all admit it wasn't that great. I probably wouldn't buy it, but you know sometimes we read books that aren't, you know, the best. And you know, we're totally honest. I'll put the link up if you buy it; we'll get some Amazon money. But I—I wouldn't. I mean, I guess part of it was I was five stars, would read again. Exactly. Yeah, this proves we're not shills, right? I was—I was expecting, um, I guess I was expecting 'Radical Game Design' to mean like really, um, like a chronology of really innovative things. Like, for example, so one thing that comes to my mind is is Tower Defense. So have you played these Tower Defense games? Yeah.
A few. Okay. Like 'Defense Grid,' 'Kingdom Rush.' There's like a zillion of them now. But the idea with Tower Defense games is there's some enemies and they're just walking across the screen. They have nothing to do with you. They just want to get from the left side screen to the right side screen, and what you could do is build these little towers. The towers don't move, but they have a little circular radius, and anything in that radius is going to take some damage over time. And the name of the game is you have to strategize and build and upgrade the towers so that the people can't get from the left to the right side of the screen. So if you build, you know, and you have to trade off like I could build three towers or I could build one tower and upgrade it a bunch, and—and you so you have to like really look at the spec sheet to figure out like what is optimal and all that. And space is a constraint anyways. So, to me was like a radical game design, and someone actually made that as a mod to StarCraft One. At least that's the first time I saw it. Um, and the reason is is StarCraft—the editor, you know, it was pretty limited, but this was one of the games that you could build in it, and so it was sort of just emergent based on, you know, the limitations of that of that editor and the fact that it was so easy to make a game inside of StarCraft and deploy it to millions of people. So that—that in my opinion like that was something I wanted to see. But instead, the whole book was all about basically games as art, and so it talked about like really things that were kind of out there. Like, there was a museum that had a game where you know you like walked through the museum as part of the game. I guess it was just more about—it was just much more connected to art. Um, it talked a lot about museums, talk a lot about different art styles. Um, there were. It was a lot of talking about like games that there's this game I guess that talked about kind of getting cancer, and they spent a lot of time talking about that. And so you know, I think I guess what when they thought of game design, they were really thinking about, you know, designing games to like affect a certain emotion. And they're really taking sort of that approach. And so in that sense, the book is pretty myopic. Um, you know, if you go on—on let's say Wikipedia and you look at, you know, different game genres and you take that approach to game design, this book's gonna kind of let you down, which is what it did to me. So if you're interested in seeing like really crazy games, like there's one game you might have heard—this game 'Patrick America's Army.' Have you heard of?
So so yeah, there was a game that was literally made by the army, and it was—it was it was basically meant to get people excited about the army or at least I was like, you know, I guess one of the goals. And so this book talks a lot about that and social implications of that and things like that. So I have to admit like I found the book interesting, but it just—I felt like the title is misleading. And so it's kind of like um, you know, if someone hands you like a grapefruit and you bite it and it's actually like an orange, like a blood orange or something, you know that's not gonna taste good because you're expecting one thing, you got something else. And that's kind of kind of how I felt with this book. Like, you know, it looked like—looked like one thing, but then when I read it, it was something totally different. It kind of let me down.
My 'Book of the Show' gets five stars? Oh wow! I'm gonna tell you what it is. No, I'm just kidding. Um unless you read 'The Bad Book' first. Hey, after you—after someone emails us a receipt of having read Jason's book. Um so I actually had a different book which I also would have probably given five stars, but I had a different book, and then somebody had contacted Jason because I'm a social media hermit. Um and this is true.
Okay, and he—this was Christian, and he messaged Jason. Was like, 'Oh hey Patrick, I have a lot of the same taste. You should recommend this book to him.' And it turned out I was like, 'Uh, of course, I've already had that as my Book of the Show.' Like, what? Why did this guy message Jason about this? Is weird. And then I said, 'Wait, I've never had this as Book of the Show.' And then I was when we were getting the show notes together. I was looking through and it's oh, the reason why is that there are two books in this series so far, and the first book came out before we started recording Programming Throwdown, and the second book came out before we started Book of the Show on Programming Throwdown. And so I've never featured either the first or second book from the series, and so I'll start off by recommending the first book, but I have actually read them—read them many moons ago, and they are really good books, but I will warn you, the series is not complete. As you've I've already spoiled, only two of the three books are out, and the second book came out before we started having Book of the Show, and this podcast is going on many number of years now. The author is unknown as to when the third book will be releasing, so if you don't like finishing an unfinished series, which is now a thing, you have to be careful. Then I would—I would recommend waiting until the third book comes out, and that is *The Name of the Wind* by Patrick Rothfuss. So very, very, very good book. Highly recommend it, but also very frustrating that the first two books and we're still waiting on a third book for going on 10 years now. No, is that no? The first book came out more than 10 years ago. The second book came out, and it is not quite been that long, but it's been a long time. I'll have to look it up here. And anyways, so it's a book about a fantasy book, and uh it was March 1st, 2011, so we're at seven years since the last book came out. And so *The Name of the Wind* is a book, a fantasy book about a man named Kvothe and his experiences that I can't—I never know what design. I want to spoil things, but there's some magic in the book. The way the magic works is really good and interesting, and I like it. That's a very sort of um it sounds bad like a realistic approach to magic. Like, is that? I think I've said that about other books surely.
Yeah, like they try to come up with some consistent rules and how it would work and like trying to abide by those rules, which I guess is an art. It's a game we all agree to play in our heads, let's say that way. But yeah, this game has interesting rules, and they're well thought through, and the world-building is good. And I definitely really, really, really enjoyed this book. I think I picked it up a couple times and didn't really—and then you know sort of had a little bit of a rough start was busy, and then but when I once I finally got in like I'm gonna read this, it was really good. And then the second book, not quite as good as the first book, but second books are always kind of hard to write, I guess. And I'm not an author, but authors say that that second books are harder to write. It makes
the third, and you're trying to set up like you're trying to wrap up some stuff, have your own story arc, but set up some stuff for the next book. Unless you're just having a two-book series, in which case I don't know, but if you're having a three or four or five-book series, yeah, that second one I think is a little tough sometimes. But I still enjoyed the second book. So the one thing I will say that is sort of a funny instance if you do read this book in the second book. So it's a book and in the book someone's telling a story, and in the story they're telling there's people like writing books and telling stories, and at some point you realize you're like four or five stories deep in this book. Nice. And so uh it's like one of the I don't know, I almost feel like I when I realized this, I sort of chuckled and felt like somebody was like challenging themselves, like how it's the Inception thing, like how many recursive stories can I have going on at one time? So like I'm telling a story to Jason about a dream I had, and in that dream I was reading a book, and in that book there was a storyteller, and the storyteller was telling a story about a man who wrote a book. And you're just like, 'Oh, what?' Okay. Anyways, that's got
it's but yeah definitely I so I'm not saying very much because I never do, but *The Name of the Wind* fantasy magic world-building definitely not short book. So if that if that seems to strike your fancy, then you've probably already heard about it and you've probably already read it, but if you haven't, then do five stars. Don't read Jason's book. My book's better.
All right, sounds good. You can also get Patrick's book on Amazon using our link, and that helps us. It helps out the show. Cool. We also, if you don't want to buy his book on Amazon, the written version, the scripted version—I don't know what the word is—you can buy the audio version from Audible, and you can go to audibletrial.com/programmingthrowdown. We have a link in the show notes, and you get a free book and you start your trial, and that also helps us out. You can also donate to our Patreon, patreon.com/programmingthrowdown. And I actually got all the thank-you letters printed out, and I'm waiting Patrick, and I have to meet up so that he can sign them. Oh, I know this is the longest Christmas present. Wait, what? I didn't really—oh no. Well, yeah. We... you have some signing to do, buddy. Oh, oh boy. So we'll meet up. We'll sign them all, and then we will send them off to you folks. And we have everyone's address. A couple of people emailed me by the way saying, 'Hey, this is my address.' You know, last minute. It's totally fine. Not a problem. We should probably.
That's true. Well, yeah, if you—I'll send them out ASAP. And if you moved, we'll send another one. Not a big deal. Our tool of the show is Visual Studio Code. I actually made this tool before we decided to talk about GitHub, but it's amazing. I actually... this is going to surprise people. I stopped using Emacs; I just switched to this. I take it back—I still use Emacs. So this is like most of the graphical IDs. It's project-based. So you know, if you're editing like a random file in your home directory, it doesn't make sense like starting up Visual Studio Code, but for all of my like projects, I'm using Visual Studio Code. I love it. It's really, really nice. It's extremely fast, which is really surprising because it's—it's much faster actually than Atom, and Atom itself is so fast it almost doesn't matter, but this thing doesn't you know burn up your battery. It's extremely slick. Now people might say, 'Oh, Visual Studio, that's been around since the 90s.' Visual Studio Code is totally different. So Visual Studio Code is an IDE written—it's a fork of Atom and it has no relation to Visual Studio, I guess proper or what have you? It has an amazing sort of plug-in ecosystem. So I was immediately able to get like a CMake plug-in, a C++ plug-in, a Python plug-in. I installed—there's actually, it was a tool of the show a while back, EditorConfig, which is a style guide plug-in. It has support for almost anything, even like Thrift and Protocol Buffer syntax highlighting. It has all that stuff. The plugin system is great. Editor is great. I actually know a buddy who switched to it too, and he loves it. And yeah, check it out. I mean, I am really, really surprised if you use like Sublime or Atom or one of these editors that's kind of in the ballpark of Visual Studio Code. Definitely check out Visual Studio Code; might be worth the switch. I used to do a lot of stuff in just Emacs, and you know, like I said, I pretty much switched. I spend 90% of the time in this now. So check it.
Fortunately, it doesn't cost that much to use. Yeah, totally free. No. So Jason and I were talking about this before, but I mean GitHub. If you know want to, and maybe there's even been a tool of the show before we try to check, and we don't think it was, but if you're trying to share your code with people rather than emailing around in a file like we used to—I mean, you should be posting it on GitHub. You should be. If you're not currently working and you're in school, and you want to get used to sort of how teams do stuff, you know, and how source control works, which we've talked about before, you can get on GitHub, make a public repository, and then you can put it on your resume. You know, fork people on GitHub, all that good stuff. We really take GitHub for granted, but I want to talk about it as a tool to show for sort of one specific use, which is going in and trying to find for projects that are in the language you're using or big and looking at examples on how to do stuff. So I found a lot of use of going in on big projects and searching for functions or things and just getting a feel for how they've decided to use something. So I'll try to find out if a project, like an example—I don't, this isn't true, but like oh, I'm using some Boost library, and I'm really struggling with like, hey, how do I? How should I really use this? Or what's the good invocation pattern for doing this? And I'll go on to GitHub and try to find a project that uses that Boost library and look at how they're doing it. So this sort of code searching ability—the one thing is that I wish they would do, which they don't. You have to already be in a repository in order to be able to search, and I wish they would let you sort of search across.
Very nice. Yeah, GitHub's amazing. You can actually see I'm in the middle of a technical argument on GitHub, actually, with the owners of HyperJS. You could—you can see I'm trying to use all of these skills that we're going to talk about on The Technical Arguments Show, and so we're going to talk all about—you know, we've been doing this for a long time, and we've seen a whole bunch of different arguments. Obviously, any job has arguments. We're going to try to—we're not going to talk about like I don't know political arguments or argument over who has the best sports team or something like that. I mean, we're going to try—we're going to keep it very specific, but you know some of the things I'm sure will translate, or we'll generalize. But you know, we've seen a lot of there's a lot of different arguments, a lot of contention, right? And as you can imagine, a lot of it centers around different sort of design decisions and things like that, but it can get all the way down to, you know, where you put the semicolons and all of that. So we're going to talk about all of that.
So we try to break it down into a couple of sections and just sort of some themes so we'll see how this goes. But the first one I have is this debate about trying to get things done versus doing the right thing. This one's really tough. I mean, I don't know that there isn't—in fact, almost all of these there isn't a right answer, which is why they're hot topics to debate. That's right. This one, I would say even more so than maybe. I'm trying to read this list really quick while I don't lose my talking pace. This one might be the hardest one. This is the heart all the time, just like on and at every scale. So you could imagine like an entire company having the debate about—and that is like when to do the right thing versus when to just get it done. And this comes up at like, you know, should we ship this product? Should we ditch it and try another prototype? You know, all the way down to just things in your code, like, you know, oh, I could just declare a global variable here and be done with this, or I could sit here and try to think about what the right way to refactor it would be. And you know, it's from the start of your project when you're saying like, let me just get something banged out and iterate it, to like let me sit down and come up with a full-on UML diagram and architecture of everything I want to build. I'll write my test first and do Test Driven Development. Like, you might be doing it right, but your first bit of code, you know, might not come out for a long time. This is really tough, and a lot of this—there's lots and lots of factors that come into here. But part of it is if you ever have a deadline, and whether you were asked for input on when what was a reasonable deadline or not. I mean, deadlines exist. They come up, and you always end up against the wall and missing a deadline often. Has sort of bad consequences, and sometimes you need to sort of not do the right thing in order to hit the deadline. The problem is if you don't strike the balance, then you build up what we call sort of technical debt. And technical debt just means exactly that: like you were trying to get something done quick or you didn't know the right answer and so you just did whatever came to mind, and now you have some bit of code which later will come to need to be refactored or will slow down programmer efficiency or increase—I always use this term a lot—the increase the cognitive burden of your code, which is like how many things you need to hold in your head to do this, or is it completely obvious on reading it. And these things is a really difficult balance to strike, but I think this one is probably the one that comes up almost continually while you're working.
Yeah, that makes sense. I mean, one thing I would add to that is—you know sometimes you have these external deadlines, right? Like let's say you have a Product Manager and or some Program Manager, and they're setting the deadlines or something like that. But then you know there's many times where you are sort of in charge of that, and even then it's not trivial. Basically, you—like you know the product itself is sort of an unknown, right? Like you don't know exactly what you know you're building and what it's going to look like and how people are going to react to it, and all of that. I mean, if you are, for example, if you are building like a chip and you're implementing the floating point operator or something like that, that's a very different environment. Those environments usually just extremely controlled and regimented, and they can be right. But if you're building let's say an app, the first few months of the app, you might just be trying to find out what people want and how to sort of reconcile the things that you want to offer with the market and what they want to consume. And so your app like on the surface it might be changing massively from one day to the next, and you're incurring a lot of technical debt, and the code is super ugly. And that is good, right? You don't want to take the approach of someone who's designing like the next Intel chip when you're making this app because then you can't—you can't really navigate that space quickly, right? And so that's that's why it's difficult. Is you're sort of trading off let's say learning and exploring with, as Patrick said, like building. Something that can allow you to scale to the next level. So if you just focus on exploring, you end up with something that's too fragile for you to use it as a platform for the next thing. And so yeah, trading that off is extremely difficult. And I think here the way to sort of resolve arguments like this is to just understand that dynamic, right? And so what that means is, if the app—if you're still trying to figure out what you're doing, then you need—then you sort of relax, right? Along a lot of these, like just, you know, like over-engineering. Like you don't overdesign things, but then on the flip side, you know that you're going to have to pay that price later. So, you know when the app is done and they say, okay, you know, the app does music now let's make it play videos too and let's do the next version of it—that's when you need to say, whoa, wait a minute. You know, we need to sort of redo this because we didn't even know. We thought that this was a dating app, and now we're a music player. And so along the way, we've made a lot of bad decisions. We need to now go through and like redo everything. So I feel like if you can kind of gauge that ebb and flow of your project, that will sort of give you the insight that you need to win that argument or make the most compelling argument when it comes to that.
Decision. Yeah, I guess this one also is difficult because it comes down to the like true cost of things, which is if you take a long time to build the most amazing platform ever and you never ship your product, you're going to go. Bankrupt. You right? Yeah. So like what is the first in different industries and in different applications? Like first mover advantage is different. So if you're building a airplane, it needs to be safe. It needs to be a lot of things. It doesn't necessarily always have to be first, um although I mean maybe there's exceptions to that, I guess. But yeah, if you're making a dating app, whether or not your reliability is 100 or isn't—you know, seven nines of uptime and you use the most advanced algorithms for distributed consensus of consistent database updates—yeah, I don't know that anyone cares.
Yep, yeah, exactly. And so you know, typically here like the worst-case scenario here is where you have someone who just doesn't get that and they want to write just extremely regimented code when you don't have a product or on the flip side, um you know that you have a really hacky system it's constantly breaking and you can't really use it as a platform for anything, and people just want to keep hacking on it, right? Um so those are the two extremes, and that's—that's, uh, um, and so I think you're getting everyone on board with why those are extremes and why there is a better middle ground is the first step. So, yeah. Another one that you mentioned here is when and how to optimize. I mean, when and how?
To—so people love to quote, I think it's a Donald Knuth quote: 'Early optimization is the root of all.' Yeah, yeah, go for it. Yeah, okay. Which like it's kind of a frustrating quote because I know what he's saying and it's true, but it gets to the heart of this idea of, you know, if you optimize some bit of your code that doesn't end up getting called very often, um you know that's not the right place to spend tons of time trying to make the most efficient selection for how to do your hash mapping, hash function, um because you only ever end up using it five times the whole time your program runs. Um and so early optimization really can cause a lot of problems. It's true, but deciding when to scale or not is—and we've talked about this a number of times on the show before—but like if you sort of say I'm going to go build a web app that scales to 100 people, um that's not necessarily a horrible thing. Or don't even worry about scale because you don't know if it'll be interesting or useful; you need to go out and try, which is what Jason was getting at. But at the same time, the first time you get featured on, uh, you know, on Reddit front page or, you know, on Hacker News or whatever and your website goes down because you only anticipated getting one user per day and you have it running on, you know, the computer under your desk, um you know that's not ideal either. But building for something that's Facebook scale when you don't even know if anyone cares about your product—yeah, this is really tough. I guess it's a little similar to doing it right before, but optimizing means figuring out what parts of the system you're going to choose to design in a way that they, you know, sort of can scale as well as making sure to try to build enough of a system so that you can start taking measurements about where your performance bottlenecks are. But this is something... That I find is often comes into a hot debate because the more optimized you make something, you normally don't increase flexibility; you normally make the code harder to read and the systems more tightly coupled, um as a general rule. Um and so you introduce a lot of—you introduce a lot of other issues the faster you try to get your processes to go, the more scalable you try to make them.
Yeah, that makes sense. I mean, I think um you know if you have this type of argument, so I guess the two positions here that that you could be arguing is one is someone wants to optimize something and you don't want them to optimize that. That's probably pretty rare. I mean, unless you're the engineering manager and—and you don't want them to optimize. Well, I mean.
I think the issue that comes up here is right someone saying, 'Oh, your design like you should use a different algorithm here.' Like, you know, you're doing something naive. Like, 'Oh, you're doing a Bubble Sort here.' Like, why are you doing? Okay, that's a bad example, but like why are you doing? Why are you doing Merge Sort here instead of using—sure, you know this new research algorithm that says it could potentially go faster?' Um when no one really knows the data and you get these, you know, sort of drive-by requests often in regards to optimization, um you know like what's going to happen when we have, you know, four orders of magnitude more data than we have today? Um And it's, you know, I guess you're right. Maybe it's a manager-to-manage employee question that comes up a lot, but yeah, I mean.
Exactly because I mean if someone comes to you and says, 'I want to optimize code X,' then of course you just let them do it unless you're the manager. And the issue there is—I mean, there's a bigger issue here which is I guess this ties into the first two questions: Is how do you really reward that kind of work? And I feel like unless it's—unless it's releasing a safety valve, you know, so in other words, like you have some critical performance problem and this fixes it, you know, but in all other cases, like if it's if it's even remotely preventative, it's very hard to justify that. And that's one of the reasons why I think the engineering leadership needs to be technical is so that, you know, those types of work—that type of work could be justified.
Yep, yeah, it makes sense. Um yeah, and then there's—there's won't spend too much time on this, but there's you know a whole bunch of arguments around languages, you know which language to use. Um that's obviously a really big one. One thing to mention there is um a lot of people don't know this, but but you know most big companies use a ton of languages and they communicate—they use interprocess communication, they use TCP. Um and so you have like a Java program talking to a C++ program and things like that. Or if you're getting really sophisticated, you could use SWIG or one of these things. Um but yeah, you know you don't have to get like your entire company, you know, revolving around one language by any means. Um But you know still I mean that's—that's going to be a hot debate right there. There's going to be people who like different languages and uh I think that's a very difficult, you know, situation. Um You know, I think uh there's obviously a ton of research on whether you should use Language X or Language Y, and people will—will refer to all of that research. Um I mean one of... The things to keep in mind here is that it doesn't matter as much as you think it does. Um I mean, I've written PHP. I've written all sorts of languages that, and hopefully this show kind of really conveys that message to people. If you've been following our show, then you already kind of know this. Um But you know if at the end of the day someone, you know, really wants to use Language X and for whatever reason, you know, or let's just make it more obvious, the whole company except you wants to use Language X, then it's—it's actually not the end of the world. It's not too bad. Um It always seems worse than it is, you know, using a language that that you that is not preferred. Um But I mean, it's a real issue. It's very difficult. I mean, we actually had this today at work. We—we uh at work, um we decided to rewrite something in another language and so we built a prototype and it had a lot of the nice features that we liked specifically. So we're porting stuff that was written in SQL to a real programming language that has unit tests and things like that. Um And so you know we kind of agreed, we had a round table, we agreed that is the way to go. Um But I think part of the reason why we agreed is that we had been through so much pain, you know, with the original approach. Um So you know if someone was brand new on the team, they might not see the reason for doing that. Um But yeah, in general this I would say this is also in the camp of really, really difficult arguments. Um Like what would you do, Patrick, if someone said we need to rewrite our whole thing in some other language?
Yeah, I mean, I'm a big fan of the right tool for the right job. But it—I guess in your contention that it doesn't matter as much as you think depends on a lot of the situation. So if you're writing, you know, code that's distributed via inter-process communication and you want to write in a language that works fine via that mechanism, then yeah, probably not a big deal. If you're writing a library that needs to be performance oriented that other people are going to call you, probably want it or you're going to have to sign up to maintaining wrappers into the language that everybody uses. So if you're working at a video game studio and someone needs a bullet physics library, you're not going to be writing that in Java. Yeah, that makes sense. So sometimes it matters. And if you're writing a script that's just a one-off like I mostly care about the data product again probably doesn't matter. But for me though, for code that is going to be needing to be maintained and sort of stable and production and known and code reviewed, you need to have at least some body of knowledge, you know, on your team or commitment from everybody that they are okay with that language choice. So if somebody decides, you know, I'm gonna go write this widget in, you know, Language Foo and nobody else really is interested or wants to do it, you end up with this problem which I see happen sometimes where that person goes and writes that tool and then later they leave the team and then you need to go use that tool and it's always—everybody dreads it because it's like, oh, it's written in Foo and nobody knows how to go in and fix it or and it breaks all the time and you end up with this problem of like you've saddled that team with something they didn't really want. Yeah, that's a
Really good point, actually. If you want to—if you want to be passive-aggressive at work as a software engineer, probably the most passive-aggressive thing you can do, like that's the most destructive, is to write something in a very obscure language. We had someone writes—we had this system and like Patrick says is meant to hook into—not necessarily hook in, but it was meant to—it was meant as a library where people would many people would add their own flavor to it, right? So think of it as sort of an SDK like OpenGL or something. And you would the plan was to build something in OpenGL or in this case in this library, in this SDK, and the person wrote it in Haskell. And the issue there was, you know, now anyone who wanted to use our system had to learn this language. And so, you know, in the context of many alternatives, most people just said, 'Well, I'm not going to learn a whole language when I could just use some alternate system that gets me let's say 90% of the way there.' But you know, I can write it in Python. And so that person after spending like over a year writing the SDK had to completely rewrite it in Python, and that was extremely painful. So, yeah, I think—I think it's a really good point is you have to really look at your audience. And, you know, if you're at a company where everyone's writing in Haskell, then you know you really need to think about that before you make an argument. Like, unless—I mean, like as Patrick said, like if you have to do a physics engine, you're not going to do that. Actually, I don't know how fast Haskell is. Let's let's say I don't know Basic or something, I don't know Python. You're not going to write like a physics engine in pure Python. But, you know, I mean once you get rid of the kind of very obvious constraints, right? Uh, you should think really carefully before you do anything other than the, you know, most common language that your team or your organization is using, right? I mean, that just don't underestimate. Like try—like try to really avoid having that argument. You know, and on the flip side, if someone, you know, if 90% of your codebase is Python and someone wants to write something in Erlang, you know, I mean there needs to be like a really solid reason for that. And
Sometimes there are, but then I think what Jason describes the right way—I think you build a little prototype, you try to shop it around to the team and, you know, say like, 'Hey, I went and did this thing. Like look at advantage X, Y, and Z.' You know that this is really going to be a game changer for us.
Tabs for spaces. Yeah. Um this is a debate just avoid it. Style you should have style guidelines. And, you know, you should—I I'm a big fan of like pick something and stick to it. And new people come to the team, they don't like them, they don't want them. It's it sucks. It's a struggle, but everyone needs to have—you don't have to make them overly restrictive, but you need some guidance on not writing bad code. And if you don't have it written down, everybody's going to argue about it every code review. So it's better to write it down and like just hash it out and hopefully your manager is technical enough to just come in and make a consensus decree. Yeah, I mean, I
don't know if if this is just a benefit of Python or if this is just the way the team works, but the team I'm on now—this the um they have a very complicated automatic style like a Prettier. And the cool thing is basically the the team philosophy is if the automatic system whatever it does is is the truth. So in other words, like if you can write now, you can obviously like, you know, uh you could write like really obscure obfuscated code and and you could trick the Prettier, right? But, you know, no one's really done that yet hasn't really come up even once. And then basically yeah, the Prettier is so sophisticated that people just they write code however they want and then once they run this it's
Exactly. Yeah, yeah, it just automatically, you know, adheres to a certain style. And um yeah, I really like that. I—I mean, I honestly used to really hate getting style feedback on my changes. And I think the reason why is I always felt like, you know, I it made me feel like just like this cog in the machine. It's like, 'Oh, you know, this should be, you know, indented a little bit more,' or something. And that kind of went away when I like Clang Format or, you know, the Py flake eight or whatever when these things came out that basically just did all of this for us. It's like, I mean, in your case, do you ever have to actually do this style manually? Like what kind of decisions, you know, but I
mean somebody has to decide which of like, you know, I read a lot of C++ code. Like there are many different C++ style guidelines. Like should—should you put a space before and after a plus operator? You know the big one that always comes up is where should the pointer, the asterisk go? Should it go on the variable? Should it go on the type? Should it go with the space on both sides?
The type, right? No, it definitely should go on the variable. We're not getting on this. Um, wait, hang on, hang on. No, stop. Stop. We will completely derail. Approve this point. Um, you can create—there are legitimate arguments for both, so it ultimately just comes down to an opinion. There isn't a logical obvious. Well, I always...
I mean, that's the most succinct one I can give. There's other more nuanced, right? Okay. We're not going to get off on. Yeah, it makes sense. Um, the you know lots of style guidelines, and I think this is an argument that gets had, and this is one of the things where when you join a new team and they either don't have a style or they have a style you disagree with—it's a really tough situation. You really got to weigh your options about what are you going to do. So if there's no style, I was in an instance where I joined a team that didn't really have a consistent style. They weren't really here to it, and I came in and you know sort of was the one who began enforcing the style, and it took a lot of goodwill out of my sale from being the new person on the team to coming in and having my boss sort of tell me that, 'Yeah, that's what I want you to do.' And you know have to go in and tell people, 'Yeah, the way you've been writing code for the last two years is bad and it's confusing. It doesn't look good.' Um, and so if you go on a team and they have a style guideline, I would say try to go with it for some period of time and try to—if there's really things you think don't make sense or are inconsistent or aren't great, like try to work on them like as small things, um, as opposed to just coming in and like erupting with, 'This sucks. This is completely wrong. You guys are horrible.' Don't do that. Yeah, that...
Makes sense. I think you know, like any, you know, uh, I guess artist, right? I mean, you can think of it as an art. Uh, you know, there's a stereotypical like the artist is super self-critical and critical of the medium and things like that, and and it's easy for people to to to be that way. And so it's really important, I think, the overarching lesson because they one thing is that it's really important to step back and and say, 'Okay, you know, but take myself out of the equation,' and and it's really, you know, think about like, 'Is this really that big a deal?' Um, so yeah. Another thing is, you know, IDEs or text editors—this is less of an issue now um that there is, you know, automatic styling because a lot of the um there might be some people who who you know where the the IDE is actually carrying a lot of weight, like you have the build system integrated with the IDE, or yeah, this depends...
might not have a choice at all. So this is not really an argument, but some cases, like you said, if there's like a plugin that needs to be hooked into a custom build system or something, and if your team is creating or maintaining that plugin, and whether you maintain it for IDE A or B, or sometimes like for people will be really into Emacs and have a complex set of Emacs plugins—is that? Yeah, I think, yeah, that's right. And you know they share that around the team and everybody uses it. And if you're trying to use Vim, yeah, that's anyways. Yeah, yeah. I mean, this is more, I think this is mostly a personal opinion thing. Like, I'm sorry, I overtalked you. Oh no, I was.
Just gonna say like, yeah, this argument is pretty rare, especially nowadays that the IDE, like before, you know, like Visual Studio would also be your build system. Um now people don't really do that anymore. And so, especially now if you want to do continuous integration or something like that, you need to have a build system that's sort of orthogonal to your or separate from your editor. And so, yeah, I mean at most jobs you should be able to use whatever IDE you want. Um so I guess the only argument would be, uh, you know, like how much work is it going to take and maintenance is it going to take to let you use the editor you want? And um you know, will everyone around you—so you might be in a position where you need everyone around you to make, let's say, a small sacrifice, like for example learning Make, um so that you don't have to be forced to use Visual Studio, for example. Um and I think this is actually—I would echo Patrick's advice from earlier that basically you don't come in on day one and say, 'Everyone, we're going to switch to Make.' Um so you're going to have to bite the bullet um and do some Visual Studio at least in the beginning. But but one thing that would be good is is, you know, take the initiative to, you know, redo your entire build system and make um present that to the team and say, 'Look, we have something, you know, I can run it on in the cloud, has all these advantages.' Um you know also I'll be able to use any editor I want.' But to kind of show up—show up with a solution. Um I think that makes a really big difference. Now that's going to take a lot of energy and and it might be wasted, but I mean if you're that passionate about, you know, using Emacs, for example, then that that's um that's a risk you want to take, right? So so showing up with a solution is always. Um a way way better. Um even if you have to sort of do it, you know, on your own time. Um you know like like you know on the if you have to come into work on a weekend or something to do it, it might be worth it because because it could, you know, kind of pivot the whole team then. So
I mean, I think we covered a lot of it, but just to summarize, um you know really, you know, and be honest with yourself and really reflect on why you want what you want. There are some people who um you could see them like they show up on day one, they're like, 'Oh, everything has to be written in Scala,' or something like that. And uh um you know really think about like what do you and be honest with yourself. Like for example, maybe you want to use Scala because you want to learn Scala. Maybe you want to learn Scala; it's a skill for you and you have a chance to learn it um while you're working. So basically like learn it for free, like on someone else's dime. And now have to be more marketable, right? But I mean that could—that's fine, you know, but but and you obviously you have to, you know, speak with some tact, and you don't just go into the meeting saying, 'Hey, I want to learn a new language on your dime, boss.' Um but but beyond but you know internally be honest with yourself, right? So know what your values are, why you want the things you do, and have clarity there. Um also, you know, think about um the compromises or the alternatives, right? Like what is alternative? What are you going to lose? Um And that's going to really tell you how much energy you need to spend or risk let's say on on getting the change you want, right? So this gets back to the whole building the prototype and Make. Right? Like if it's if coding in Visual Studio is so frustrating to you that you're going to lose uh you know a lot of productivity—it's going to frustrate you, it's going to make you not like this job—then it's worth, you know, spending an extra 40 hours off the clock porting the whole thing to Make um and trying to convince everyone to do that. Right? Um if you think about it, then you might think, 'Oh, you know, it's not that big a deal. I'll just bite the bullet and do' Visual Studio.' Right? But but figure that out kind of beforehand. Um And the second part of that is is, you know, when you have this argument, and the argument could be impromptu where you don't really have time to figure it out, right? But whether you've had time or not, um don't necessarily like force a decision right away. Like this isn't, you know, like a criminal trial or something, right? So, you know, have a discussion about it, try to keep things open-ended at least initially. Um you know go home, think about what was said, think about how that might change, you know, the state and the compromises you have to make, and then show up the next day sort of with the next sort of evolution of this argument, right? And and you know kind of slowly converge to a solution. Um That's often way better than than. And if you have that expectation that you're this is a convergence process and not like a jury, um that's really going to sort of change the attitude, and you could actually you could lose the argument and have to use Visual Studio, to extend the example, but but actually gain a lot of respect um based on sort of how you handle yourself in that situation. You know. Yeah.
Yep. Yeah, there's this saying like, uh, you know, don't be dead wrong but don't be dead right. Right? So so I think the metaphor that they use is, you know, you're driving on the highway, uh, you know some like country highway, two-lane highway, and a semi is coming the other way. They're driving on the wrong side of the road, right? You don't just like hit the semi head-on just on principle, you know. And so it's the same thing here where where uh you know at the end of the day, like part of this is just respecting other people's values. And so if as if the whole team has one set of values, that's the semi, right? And and and whether they're right or not, you're gonna have to handle that situation sort of very delicately. Right?
Another thing of I know I struggle with sometimes is be careful to pay attention to other people's demeanor, their feelings even if you're having a technical argument. Some people become passionate and are okay having a heated debate, and other people begin to have a very personal reaction in our and don't don't necessarily take well to having their choices questioned or something, even if you're well-intentioned, even if you don't mean it that way. But you know do it. And also the venue for having these discussions, you know, if you have a weekly whole team meeting, some people might be fine discussing stuff in that. Other people might rather you talk to them at their desk or schedule a special meeting or have this discussion over email where they can think about their responses um and be slight, you know, be sensitive as you can to how other people prefer to have these exchanges.
Goal. Yeah, that's right. Oh man, we actually just moved, and um the new desk area we got there, we're like this is amazing. We're all super excited, and it's even a new building, so we don't really have any bearings. Um we're so unbelievably excited, and then we realized that we sit right over the restaurant—a restaurant—and around noon, it's just like a total madhouse. You can't hear. Oh no. And I never realized it. It's the first time I've really been in this position, but yeah, noise pollution is like actually a huge problem. Yeah, yeah, yeah. But yeah, so don't have your big arguments in the middle of the room. Also, like as I said before, like you know, converge slowly. You know, there are very few things you actually rip the band—like, yeah, you don't need to decide whether you're going to rewrite the whole thing in Java today. Like that never almost never needs to happen. And so, as Patrick said, some people—I mean, it might be a combination of shyness, but it also might be some people just they don't have—they just need to think about things, right? And everyone, you know, when they sleep on things, they come back with sort of a slightly different perspective, right? And so you want to take advantage of that latent perspective, right?
Yeah, you know. Yeah, if you have the majority, they just try to close the deal right away. I'm sorry. It's like buying a used car or something. Um cool. Well, yeah, let us know. I'm really curious to think to hear what you think about this episode. You folks out there, you know, we—this is, I would say, this is like a completely different style of episode for us because this is just very ad hoc. We're really just kind of relaying life experiences, and let us know what you think. So, you know, we have the interview format. We have the something where it's like a very specific subject format, like Machine Learning or C++ or something like that. This is almost like—I look at this as almost like a third format. And so I'm really curious. This is sort of us dipping our toe in this. Let us know what you think if this was interesting to you. You're based on the time, we can clearly talk about this forever. So that part was good, but let us know if you found it entertaining. Till next time, see you later. Intro music is Axo by Binar Pilot. Programming Throwdown is distributed under a Creative Commons Attribution-ShareAlike 2.0 license. You're free to share, copy, distribute, transmit the work to remix, adapt the work, but you must provide attribution to Patrick and I, and ShareAlike, and Kind.
