In short
The Changelog Podcast Episode Summary
Episode Information
- Podcast Title: The Changelog: Software Development, Open Source
- Episode Title: The Best, Worst Codebase (Interview)
- Host: Jimmy Miller
- Guest: Dylan Fox (CEO of Assembly AI)
- Duration: Approx. 1 hour
- Release Date: [Insert Date Here]
Episode Overview In this episode, Jimmy Miller shares his experiences working with a massive legacy codebase during his first job as a programmer at a credit card processing company. The codebase, which contained hundreds of thousands of lines of C# and Visual Basic, proved to be a complex and often frustrating environment filled with technical challenges and quirks. The discussion highlights the lessons learned from navigating such a chaotic software landscape.
---
Key Topics Discussed
- Introduction to the Legacy Codebase
- Size and Complexity: The codebase was enormous, featuring hundreds of thousands of lines of code across C# and Visual Basic, and a database with over 1,000 columns.
- Internship Experience: Jimmy entered this environment as an intern, tasked with maintaining and debugging features in this legacy system.
- Initial Shock: Transitioning from personal coding projects to a large corporate codebase was a challenging adjustment.
- Code Quality and Management Issues
- Leadership Conflicts: Constant changes in leadership led to a lack of coherent direction for the codebase, resulting in inconsistent naming conventions and confusion.
- Clever but Terrible Code: The code often displayed clever but impractical solutions, creating long-term maintenance challenges.
- Legacy Structures: The discussion addressed how some systems, like the merchants table and session state storage, exemplified the chaotic nature of the codebase.
- Learning Through Challenges
- Self-Discovery as a Developer: Jimmy describes discovering what good code looks like after experiencing bad code, reflecting on his initial naivety as a new programmer.
- Autonomy and Problem-Solving: He was given the autonomy to make small improvements, which contributed to his growth as a developer.
- Working with Munch: A charismatic coworker who served as an informal guide for understanding the complexities of the codebase.
- Cultural Reflections in Software Development
- No Agile Process: The absence of a formal Agile process provided a certain freedom that Jimmy appreciated, contrasting with his later experiences in more structured environments.
- Human Aspects of Coding: Discussion on how interpersonal dynamics, such as communication with sales, shaped the success and failure of the software.
- The Role of Legacy Code in Career Development
- Appreciation for Messy Code: Jimmy reflects on how messy code can lead to valuable learning experiences, emphasizing the importance of understanding the history and context behind legacy systems.
- Navigating Company Politics: The complexities of corporate environments often lead to decisions that prioritize immediate business needs over long-term code health.
- Conclusion and Broader Takeaways
- Perspective on Coding: The episode ends with reflections on how the past experiences shaped Jimmy's views on coding, emphasizing the importance of doing what is right for users rather than simply following orders.
- Lessons for Future Developers: The conversation encourages current and future developers to engage critically with the code they inherit and to strive for better practices without losing sight of the human element in software development.
---
Key Takeaways
- Embrace Complexity: Working with messy code can lead to growth and deeper understanding.
- Value Context: Understanding the historical context of code can provide insights into its design and functionality.
- Communicate with Users: Direct communication can bridge gaps between developers and end-users, fostering better software solutions.
- Explore Freedom in Code: Lack of structure can sometimes lead to creative solutions and a unique work culture.
---
Additional Resources
- Jimmy's Blog Post: The Best Worst Codebase (Details not provided in transcript)
- Future of Coding Podcast: [Listen Here](https://futureofcoding.org)
---
This markdown document summarizes the key themes and discussions from the podcast episode, providing insights into the world of legacy code and software development culture.
Written by AI. May contain mistakes. Listen to the episode to check what was said.
Transcript
Automatic transcript. May contain errors.0:23What's up friends, welcome back. This is the changelog. On this show, we talk to the hackers, the leaders, and those working on the best, worst codebases. Oh my gosh. Today, we're joined by Jimmy Miller to discuss his experience working with a legacy codebase at his first job as a programmer. The codebase was massive. Hundreds of thousands of lines of C Sharp and Visual Basic and a database with over 1 ,000 columns. Let's just say Jimmy got into some stuff. There's even a guilfoyle involved. And today's episode is all about Jimmy's adventures while working there. A massive thank you to our friends and our partners over at fly.io.
1:07Yes, that's the home of changelog.com. Launch your apps, launch your databases, and even launch your AI near your users. Fly is the public cloud built for developers who ship. Launch your app in five minutes at Fly. dot io okay let's do this
1:33what's up friends i'm here with a new friend of ours over at assembly ai founder and ceo dylan fox dylan tell me about universal one this is the newest most powerful speech ai model to date You released this recently. Tell me more. So Universal One is our flagship industry leading model for speech to text and various other speech understanding tasks. So it's about a year long effort that really is the culmination of like the years that we've spent building infrastructure and tooling at Assembly to even train large scale speech AI models. It was trained on about 12 and a half million hours of voice data, multilingual, super wide range of domains and sources of audio data.
2:17So it's a super robust model. We're seeing developers use it for extremely high accuracy, low cost, super fast speech to text and speech understanding tasks within their products, within automations, within workflows that they're building at their companies or within their products. Very cool. So Dylan, one thing I love is this playground you have. You can go there, assemblyai.com slash playground, and you can just play around with all the things that is assembly. Is this the recommended path? Is this the try before you buy experience? What can people do? Yeah, so our playground is a GUI experience over the API that's free.
2:54You can just go to it on our website, assemblyai.com slash playground. You drop in an audio file, you can talk to the playground. And it's a way to, in a no-code environment, interact with our models, interact with our API to see what our models and what our API can do. without having to write any code. Then once you see what the models can do and you're ready to start building with the API, you can quickly transition to the API docs, start writing code, start integrating our SDKs into your code to start leveraging our models and all our tech via our SDKs instead. Okay, constantly updated speech AI models at your fingertips, well, at your API fingertips, that is.
3:31A good next step is to go to their playground. You can test out their models for free right there in the browser, or you can get started with a$50 credit at assemblyai.com slash practical AI. Again, that's assemblyai.com slash practical AI.
4:09So we're joined today by Jimmy Miller, host of the Future of Coding podcast. Jimmy, you wrote the best worst blog post. It was amazing. Nice little play on words there. Yeah, I recently wrote a blog post talking about my first job in programming. And it's the best worst code base I ever worked in. And so, yeah, it was a really fun post and kind of blew up. I mean, you know, way more than any blog post I've written and got like Primogen on YouTube, like doing a video on it. It was really cool. Really neat to see. Top of Hacker News, all that stuff. Yeah. It's really fun. Definitely resonated with me.
4:49In fact, I was like stopping to check the technologies that you listed because I literally thought maybe I had been on the same code base. And then I was like, I was all C sharp and VB. I was like, OK, mine was over here in Ruby land. But I was just like bringing up PTSD or something, you know, because I've been in a code base like this. Well, first of all, let's let's lay some groundwork here before I start to get into the details, because this was your first job coming out of college. Is that right? I did not go to college. OK, coming out of schooling. Yeah, yeah. It was a couple of years after high school.
5:25But yeah. And successful business that you went to work for, I assume. Yeah, it's a big credit card processing company that's now been merged or bought out or something. But, you know, pretty, pretty big company. This was like a small branch of it that was like the customer support center. But, you know, fairly in the grand scheme of things, a medium sized company, but fairly large, you know, for actual software development. Right. And so lots of money being made, of course, credit card processing, a core piece of the world's infrastructure, if you're getting fractions of a penny of every transaction.
6:01I mean, there's just a lot of money coming in. And money hides problems, right? Like the success just hides problems. And this thing had so many problems, it's just hard to fathom that it operated. Yeah, it was honestly pretty crazy. Going from the only code I had ever seen was code I wrote myself, to diving into this kind of code base where we got hundreds of thousands of lines of C Sharp and VB with just crazy database configurations, all this wild stuff going on and just realizing like, oh, this is what real world code looks like. And of course I had no other point of comparison. I now realize it was a little unique, a little bit of craziness there.
6:45But yeah, it was one of those things where you think like if you're a successful company, the code's got to be good and i i i've found out that that's not really the case there's something about the naivety also of being fresh out of school or young to the industry i think i told this story before which i had a similar experience where i inherited some bad code but i didn't have that perspective and just knowledge enough to realize it was bad code i thought it was good code and I was a bad programmer. And I probably, I mean, I was, but still I gave it too much credit because I think this must be what good code looks like.
7:23It's so hard to understand, you know? Yeah. And it took me a couple of years of just maintaining that. And thankfully I had autonomy. So I just did it by myself, like slowly changing a thing here or there, there without a major interruption from bosses or anything that I realized what good code actually looks like. and that what I had inherited was actually just clever but terrible. And oftentimes clever is terrible. And there's some clever stuff in this code base you're talking about. Things that you're like, oh, that's kind of clever, but it's also so dumb. I think that was one of the lessons I had to learn was just how clever you can be and how much you can solve a problem with the most complicated code you could possibly imagine.
8:08And yet, for the end person, they don't care. it doesn't really matter. But like for me, I don't know, I've never been like a businessy person. Like I like coding because I think coding itself is really interesting. And so for this first job, it was kind of a shock of like, this is what I have to deal with. Like this ugly grossness. But I think that that's changed a bit. You know, I look back on those moments quite finally. So yeah, maybe I should talk a little bit more in detail about, I'm assuming most people haven't read the blog post or whatever you know happy to fill in some some background of like what was this code base look like what are the weird things going on in it or yeah absolutely i think i think we can drill in on specific aspects and uh just enjoy them as we as we do but you can definitely paint with broad strokes in terms of i already said it's a big visual basic c sharp thing the database was massive it had lots of columns you go ahead and fill out some of the big picture aspects of what this thing was and then we can dive into some of the details because there's a lot of just enjoyable tomfoolery going on yeah so let me paint a little picture of like the you know the company so this is a big uh you know like i said a big credit card processing company but the actual office i'm at is almost all staffed by customer support people there's just this like one room that's developers probably like 80 developers or so in this one big huge open office and they're all we're all writing this software for these customer support people.
9:38It's like totally separate off from like the rest of the credit card processing business. This is all like bespoke software built up over like the last 10 years. You know, it's, this is like 2012 is when I joined this company. So it was a little bit like behind the times, even for then, you know, very stuck in the past of how software is being done. But like, I don't know, it's your typical, like the customer support people are all really serious, have to dress a little nicer. And the developers are all, you know, kind of chilling, shooting each other with Nerf guns and, you know, being a little bit more wild.
10:16But the code was the kind of part that everyone wanted to ignore. The stuff I was on was I started as an intern. It was like the legacy code base that the professional developers didn't want to touch anymore. There were all these teams who were going and redoing the big rewrites. And then turns in like a couple developers were kind of shoved on this old legacy project that was just massive. So the database itself, I talk about in the articles about we ran out of columns. The database is this massive database with the merchants table, which has 1 ,024 columns, because that's the most you could have in SQL Server.
10:58the code base is tens or hundreds of thousands of lines of C-sharp and VB. And the reason it's kind of split is they decided halfway through to change from VB to C-sharp. But the whole way it worked was session state got stored in the database every single time you changed pages. So it could swap back and forth between the VB and C-sharp world. It's this crazy bespoke IIS setup that takes days to get running on your machine. the whole thing was just uh yeah uh kind of duct taped terrible code base every javascript framework you could possibly imagine and the task is like an intern was here's a big list of bugs and features that we don't want to actually spend developer time on this is your job now you gotta ask yourself how does a code base get to this point like is it because there was no leader is it because no one cared is it because it was sort of siloed off the seemingly primary application which ran the processing this was as you said customer support maybe it's a side card to the business and less important but you talk about sales folks putting their wins in there and logging in because you've got a the calendar and stuff like all these like how does that even happen is it because there's no leadership what do you think yeah uh it's a good question so like In some ways, it's less important because it's customer support.
12:28But it's also, yes, the sales organization is kind of in this code base. That really matters. But also, shipping out payment terminals all happened from this site, or at least a lot of them happened from this site. They might have had other locations. But shipping was also a big part of this. So it's not like it was completely to the side. Based on my time there, obviously, and all the stories I heard, it's really leadership conflict. constant changes in leadership, constant people coming in and out at the top level, different directions changing. One of the things that was a really, the kind of annoying aspect of these code bases was the names for every product had changed a hundred times.
13:11The names for every like, there's like this big sales hierarchy and it really, really mattered what the sales hierarchy was. Like there's the regional manager and the district manager and the, you know, all these different terms. and they were just abbreviations in the code base. It'd be like the DM, the RM. But those abbreviations had changed over time to mean the same things. Like it would be like district manager versus like direct manager. And so you'd actually have to look to know like what those entities refer to. You'd have to look at source control and then go talk to Munch, who was, as I put, the resident shaman and ask him what things in this year did this refer to?
13:51So it was just this constant change, right? and constant change in direction, constant change in leadership that just made the code base go in so many different directions as well. I think Conway's Law ends up winning out on all code base organizations. When you think about it, you knew Munch, obviously, but if you didn't know Munch, would you think he's like a Dwight? This reminds me of The Office in a way. Instead of paper, it's a software package or program. It's like just getting the job done, basically, is the mission. Yeah, no, I can totally see that. I don't think I would call Munch a Dwight.
14:26Munch was a very charismatic person. He was somebody who has management wanted him to be in charge so many times, and he just refused to go be promoted beyond that. So he was like the de facto leader of so many things, but his job title never reflected it. I think his job title was just like systems analyst or something like that. He wasn't even technically a programmer by, you know, the org chart, but he did so much. So I could definitely see, you know, the Dwight comparison, but I think that'd be selling him a little short. He was just a really kind-hearted, really nice person. At any time you needed help on anything, he was the one who was willing to, like, sit with you and explain it.
15:12He was a great storyteller. I mean, I think Shaman is the best descriptor I can give for Munch. Was his name actually Munch? I mean, who names a kid Munch? Okay, so his name was not actually Munch. Apparently, there are only two people in the world that know why his nickname is Munch. These were two high school buddies. And he tried to get rid of the nickname when he went to college. He tried to just go by his normal given name. But then there was somebody else in his dorm with the exact same name. And one of his friends knew him as Munch. And they just said, oh, we can just call him Munch. It's fine.
15:48And then a second move, he moved to like a new town after college and tried again. And yet like some, he ended up running into an old buddy who called him Munch and then it like spread. And so even his wife apparently didn't know how he got the nickname Munch. That is hilarious. Some names just find you, you know, you just can't, you can't escape them. They just stick. Yeah. I remember the day where we got a new system for being able to like naming. like we got a new like 80 setup or whatever so that you know kept your your emails and your names or whatever and it turns out that it had a little lower permissions requirements than the last one and munch went and changed his name and everything to to munch uh so instead of actually having to be like oh yeah that guy that's munch uh now in the system was properly munch which was wow was fun he finally embraced it huh yep nice so let's go back to these columns okay yes okay So there was a merchants table.
16:48It hit the max number of columns, 1 ,024 at the time. Apparently, was it SQL Server has got more memory now? You can now add 4 ,096 columns. So good for them. But because this arbitrary, I mean, it's not arbitrary, the memory constraint forced them to either stop making new columns or create a second table in which you can just shove some more columns. That was the choice that was decided. So now there's merchants and merchants too. And I assume every time you look up a merchant, you just got to pull both tables in, don't you? Yeah, I mean, it depends on what columns you're grabbing, right? You have to know what things are where.
17:26And most applications, I mean, most of these columns were completely pointless. I am sure if you actually looked at them, they were completely not used for eight years or something, right? It's just like somebody decided, oh, I'm just going to add another column. All of our SQL schema was not actually in any source control. You just had to submit forms to the DBAs who would manually run them for actual like stored procedures of which there were hundreds or thousands. You had to like manually check them out in different environments and then write your name like I am editing this. Please don't edit it.
18:06And then you would like leave a little like change log of what you did. And you end up finding out like someone didn't do it in the lower environment. So by the time you get to production, it's wrong and all sorts of fun things there. So, you know, adding a column, as long as you can get one DBA to agree, you're good to go. Which they did thousands of times, apparently. I just wonder, how can you possibly have that much information about a single entity in the world? Obviously, there's probably a lot of foreign key relationships, which is probably a lot of those columns. But I mean, how much can you know about a single merchant?
18:39Like more than a thousand twenty four things matter? Yeah, it was, I think, you know, a lot of it were, was things like, are they involved in this promo? Do they have this kind of equipment? You know, there was all sorts of different iterations of this product or like, you know, who is their salesperson? And it's, so there, there was honestly like the domain itself was very complicated. I never got a full picture of all of this domain of what's going on. now as we now know of course and even then it was happening like stripe is simplified payments to like a a nice minimal thing and i actually remember at the time there was a group that was supposed to be doing like open source work and trying to take on stripe and uh i was so excited i was you know gung-ho 20 year old uh first job i was like i'm gonna join the the cool group doing open source uh and they had some python code that looked straight up like c-sharp code and i made a PR to like fix their indention and they got really mad at me.
19:44They're using tabs instead of spaces. You know, it's Python, like four spaces. And yeah, no, it did not go well. But yeah, like I think, you know, for me, a lot of this was just like, I didn't know anything about like the broader tech ecosystem. Like I never even realized that I could do this as a job. like growing up i just kind of learned programming on a whim and had no idea that people the stuff i was doing was what people actually did really yeah yeah uh the the way i got into programming was a bit weird uh i grew up relatively poor you know not always having food on the table poor but you know by i'm still have a roof over my head still electricity you know the u.s poor right?
20:30Obviously there's people who have it much worse in the world, but we did have a computer. Luckily we were gifted a computer from some family friends, but my brother would always hog it, my older brother. And so one day he decided that I got my own computer because he found one by the trash with mud on it. It was this old Dell with windows ME on it. And he just gave it to me and said, this is your computer. Now this is the one you have to use. It didn't work. I didn't know the password for windows in me but luckily i had a friend who was uh whose dad was a system admin and he had mentioned linux to me uh one time and so i got ubuntu running on it and uh it was you know i was 12 had no idea what i was doing just burning cds trying to get some software to work on it i ended up getting ubuntu on it ended up getting wireless car drivers working for it Wow, that's an accomplishment.
21:23Yeah, IndusWrapper was this like taking Windows. It didn't have a wireless card. I thought, okay, I can buy this and install it and it'll just work. But IndusWrapper was this way of like wrapping Windows wireless drivers and trying to make them work for Linux. And I now know what I did was I compiled from source IndusWrapper by burning CDs to get the dependency tree. is the only way I had to transfer data from the computer to between computers. And so I like burned these CDs and compiled from source in Diswrapper and I got it working. And that was when I was just hooked. Like this was so exciting that I got my own computer working by doing a bunch of magical incantations.
22:03I didn't understand at all. That's amazing. So you would download them on your brother's machine? Yeah. And you would rip them to a disc to a CD, which is a one. One time. ones but yeah you pretty much have one shot at it right oh yeah i didn't have readable writable i luckily had gotten some some yeah right once and you sneakernet that sucker over to your machine yep and then are these just tire balls or how did you do you remember yeah yeah i when i when my brother was gone to a friend's house this is when i would go and you know sneak on and go do this and get things working uh so yeah i mean he was he was nice if i really asked him to let me have computer time it's like it completely kicks me off but you know your older brother right like you when you're when you're that age it's like ah i can't i can't bother him too much uh so yeah i got it working and that was my computer for probably five years it had like 128 megabytes of ram uh it was you know at that time it was quite a bad machine but with linux it ran super smooth it was great.
23:08Linux is the best. So this was, this was your first gig, really, this, this place. And you said that you were self-taught as a programmer. So how much experience did you have before this job doing programming to know that this was bad? Like not the way. Yeah. I had only really, I mean, I'd written a lot of my, a lot of code in my spare time. You know, I did a bunch of like project oiler.net. I don't know if you all are familiar with it, but it's like, uh, for anyone who's not listeners, it's a bunch of math problems that you do have to use programming to solve. So it's a bunch of like number theory kind of stuff I'd solved.
23:46They're like, they get really difficult really fast. Like I think I've solved all of them. I will ever be able to solve in my lifetime. Cause like, as they continue on, it's just like graduate level math. And so I had done a bunch of those. I had played around with like Mozilla had had a new extension method called Jetpack that they were playing with. I'd made some of those and released some and people used them out in the wild. They were all like super small programs. I'd written a program for my school. I had a great programming teacher. Miss Johns was her name. She was fantastic. I love her.
24:21She did not know programming but she was a great like great person who would teach from a book and recognize that like i knew more programming than her so i just was a tutor in the programming classes like i i technically i took the java ap exam never took the class got a five on it like i i did a bunch of stuff in my spare time so like i learned java i learned python i just i just loved programming it was my main hobby i'd skip my calculus class to go program you know that was the kind of failed a lot of my classes because I would just skip them to go programming. So. Well, it paid off. Yeah.
24:56Miss Johns was actually the reason I got this job. A few years after high school, she had reached out to me and said, Hey, there's this company looking for interns. And she told them about a story that I'm happy to tell about a time that the secret service busted in my door for hacking. and they were impressed enough to give me an interview despite you know not going to school so right um so yeah happy to tell that story but i also you know no we're here to talk about the code base so no uh secret service knocking down the door i think is a worthwhile diversion don't you think adam yeah is you got more to the story what's the story i mean were you i mean you You shallowed it, deep it.
25:39Okay, so yeah. So for people who don't know, the Secret Service also deals with internet security. You think of the Secret Service as just being the president, which is what I thought when they busted in my door. I worked at a local or regional grocery store as a cart pusher when I was in high school. And the system to check your schedule was the most convoluted, annoying system you could possibly imagine. You had to get on a VPN. Then you had to log in like four times. And then you could finally like traverse these links to go check it. And they would publish the schedule Saturday night for like the Sunday morning.
26:19And I just got so annoyed with having to like spend like 15 minutes logging into this system. But I was like, I'm going to write a program. It's going to do all this for me. And it's just going to email me my schedule every week. so i i go to go to write the program and i start you know it's a simple little python program making some http requests and i was like all right let me figure out if i don't send a password like whatever i get and then i can you know continue on from there i got the schedule i didn't send in a password username or password and just got the schedule and i was like that's a little weird did i somehow like i don't have cookies set there's no way that it knows my credentials so i I visited in the browser and I was like, oh, actually that inner iframe there doesn't require auth at all.
27:08And, you know, it's a schedule though, is what I thought. Like, it doesn't really matter. It's just like someone's schedule. So I pushed the back button on the browser. Or I clicked the back button in the app. And it takes me back to another page with my social security number and my bank account information. and I realize every single employee's social security number and bank account information is just on the web, unauthenticated. And all you need is this employee ID, a sequential number to find them. So I try to reach out to the company to tell them, like, hey, this is a problem. Because I knew my local branch is not going to know anything about this.
27:47I try to reach out to corporate. I filled out an employee survey and stuff. and my they respond back to me this is the customer support person my older brother told me well you can't give it to them for free like you can't tell them the security vulnerability for free like they should pay you for this okay me being the dumb 16 year old i was his advice i was like well you know you'll have to pay me didn't hear back for several months all of a sudden at 6 a.m i hear a bang on my door i sleep like on the second story but like my room kind of goes straight down the stairs to the door. So I'm like the closest to the door of my family.
28:25And I hear this like really loud bang on the door at 6am. I go downstairs and I hear police open the door. Like it was like that, like pitch. And I look outside and there's no police cars, nothing, not a single one that I can see. Cause like we have a big window and I look out, there's nothing out there. And like, there had been a break in and a house, not too far from us, like a week prior and i'm just like this does not sit right to me i was like how do i know it's the police and the guy responded very confused and he goes um well we're busting in the door i back up battering ram into my door immediately throws me on the ground puts me in handcuffs and in walk secret service agents the wildest thing i have a i i don't know if i sure still have the picture but they like left a big huge mark in the front door they had the battering ram ready they didn't even wait very long they just came busting in came busting in uh and so i asked the first secret service agent that is coming in like can i know what this is about as i'm on the ground and handcuffs and he goes no that's classified next secret service agent which i'll just call b i'm not gonna give his name even though i know it uh which secret service agent b goes what no oh, of course he can see the warrant.
29:46Hands me the warrant, which shows the grocery store name. And I know, you know, okay, that's what this is about. I tell the whole story to the Secret Service agent about what happened, what I found. And I kid you not, he goes, well, I think someone overreacted here, but you're facing pending charges of 30 years in two states and at the federal level. Wow. I think my favorite moment from that though, one, so I had this, you know, computer that I, that I had gotten, I still was using it at the time and I like changed out all the parts in it. And I had this like backpack full of old hard drives. They like tore up my bed, like flipped over the whole room.
Read the full transcript
30:30Like it was absolutely insane. There were eight local police and two secret service agents and they don't take the backpack full of hard drives that was sitting right next to the computer, which is just like top notch police work. Yeah. And then the second was we had gotten an iMac at that point. And I watched as two local police looked around and they're like, where's the rest of it? And one had to, another guy to be like, I think this is the whole thing. That's hilarious. It's just all in one. It was great. So yeah, I didn't do any real hacking. I just found something unauthenticated. It was not complicated.
31:08I was not some massive hacker. just uh i ended up getting interrogated by the company for like eight hours they just dismissed the charges or how did it yeah no charges were ever filed it was just a search warrant you know pending charges based on what they found which of course there was nothing i didn't do anything i just found a security vulnerability but my mom made me tell the company because she was worried i wouldn't have a job or whatever and i knew they didn't know i worked for them which was true they were a very disorganized company but i ended up getting interrogated by some lady from corporate who when I asked for a lawyer to sign documents, she stood up and screamed that I threatened her and I got fired, not for anything I did there, but for threatening her.
31:50Wow. Yeah. So that story plus Miss Johns together got you this job. Because they're like, well, you must be good at what he does if the Secret Service is after him. Yeah, yeah. I don't think she even knew the, you know, like technical details or whatever, but it was enough they were intrigued that they let me get an interview and luckily uh yeah i got the interview i think six weeks into my internship i got hired on full time and yeah were you actually good i mean you know i could fake modesty but yeah i was good i mean i wasn't good compared to now right like i was awful like if you look back at all of that stuff i was terrible but you know for where I was at as a junior developer, right?
32:36Like as a, like basically like a recent grad, I knew my stuff, right? I was able to, like when I joined, uh, we took the backlog from like 60 items in the queue that had been there. And I, I was able to get like 40 of them solved pretty quickly. I mean, that's why I got hired in six weeks from intern to junior developer. It turns out like all the stuff I had been doing in my spare time was actually real software. I just didn't realize it. Huh. That's cool. Yeah. He's the kind of kid who has got a backpack full of hard drives. Of course he was good at what he did. You don't just accidentally end up with a backpack full of hard drives.
33:14I really didn't. And I think I'm sure like part of the reason I want to share this is not like to brag about myself. It's like I, because I grew up, you know, like none of my family had gone to college. It was a very, you know, working class family. Like I had no concept. that this was something I, you know, I read a bunch of tech articles, I'd seen all of this stuff. And I knew some people out in California did this. But as a kid growing up in a small town in Indiana, I just thought what I was doing couldn't possibly be the real thing. And so like, I was two years out of school, I'd never once considered like programming as a job, because like, I just didn't think I was good enough to do it.
33:52Right. Then you find this code base, and you realize how many hundreds of thousands and millions of dollars in labor have gone into this monstrosity. Exactly. And I've realized my worst code is, I write bad code. I wrote tons of bad code at that company. Zero question. I mean, they had to scrap a whole project that I did. I made all sorts of mistakes. But you can not be perfect and yet contribute quite a bit. And these people, yeah, they created value for the company despite this code being awful.
34:36Okay, friends, here are the top 10 launches from Superbase's launch week number 12. Read all the details about this launch at superbase.com slash launch week. Okay, here we go. Number 10, Snaplet is now open source. The company Snaplet is shutting down, but their source code is open. They're releasing three tools under the MIT license for copying data, seeding databases, and taking database snapshots. Number nine, you can use PG Replicate to copy data, full table copies, and CDC from Postgres to any other data system. Today, it supports BigQuery, DuckDB, and MotherDuck with more syncs to be added in the future.
35:18Number eight, Vect2PG, a new CLI utility for migrating data for vector databases to Superbase or any Postgres instance with PG Vector. You could use it today with Pinecone and Qdrant. More will be added in the future. Number seven, the official Superbase extension for VS Code and GitHub Copilot is here. And it's here to make your development with Superbase and VS Code even more delightful. Number six, official Python support is here. As Superbase has grown, the AI and ML community have just blown up Superbase, and many of these folks are Pythonistas. So Python support expands. Number five, they released log drains so you can export logs generated by your Superbase products to external destinations like Datadog or custom endpoints.
36:06Number four, authorization for real-time broadcast and presence is now public beta. You can now convert a real-time channel into an authorized channel using RLS policies in two steps. Number three, bring your own Auth0, Cognito, or Firebase. This is actually a few different announcements, support for third-party auth providers, phone-based multi-factor authentication, that's SMS and WhatsApp, and new auth hooks for SMS and email. Number two, build Postgres wrappers with Wasm. They released support for WASM WebAssembly foreign data wrapper. With this feature, anyone can create an FDW and share it with the Superbase community.
36:50You can build Postgres interfaces to anything on the internet. And number one, Postgres.new. Yes, Postgres.new is an in-browser Postgres with an AI interface. with postgres.new you can instantly spin up an unlimited number of postgres databases that run directly in your browser and soon deploy them to s3 okay one more thing there is now an entire book written about superbase david lorenz spent a year working on this book and it's awesome level up your superbase skills and support david and purchase the book links are in the show notes that's it super base launch week number 12 was massive so much to cover i hope you enjoyed it go to superbase.com slash launch week to get all the details on this launch or go to superbase.com slash changelogpod for one month of superbase pro for free that's s-u-p-a-b-a-s-e.com slash changelogpod
38:05you didn't introduce the calendar did you no yeah so this is uh there was a calendar table which was literally a hand filled in calendar that my understanding at best was that when contractors logged in versus when employees logged in there were certain days that employees were allowed to log in but contractors like on weekends and holidays could not log in. It was supposed to be completely forbidden. And this was the system that was doing it. And so one time, they filled it in for a few years and it actually ran out. And they had to scramble to figure out how to log in and then just had an intern fill in another five years.
38:47Had no idea which. There were so many services, so many programs running in the background, so many cron jobs. They had no idea which one had been locking people out. I love it. So just filled it in more. Just one row per day and you just got to fill it out. And it's going to check against that row for the day. And if there's no row, then they can't log in. Exactly. I also had a task that I don't mention in the article where there was this like 5 ,000 line Pascal program that had been apparently like very mission critical for the last eight years. And all of a sudden had started failing. And they had no idea why.
39:23and I was told to rewrite it in C Sharp because they didn't want to support Pascal anymore. I looked at this thing. It was just, it was only 5 ,000 lines because it was copied and pasted. Like they unrolled a loop by just like copying and pasting code over and over again. So my end code was like 200 lines and I get it. I make sure that like everything I'm seeing is like identical. I was like really thorough to make sure I got the program right because apparently it was really critical. I was given a week deadline. Okay, I get it. We put it in service. And what it was doing was sending a bunch of emails about some process or other.
40:03I didn't know the details, but reading from a table, sending emails based on reading from the table. Not complicated. And I immediately, the day I turn it on, my manager comes over to me and says, please turn that program off. We are getting constant emails from people. Apparently, this program hadn't run in eight years. It was about something that was eight years old, and it was spamming people's emails every half hour because it couldn't find the data it was expecting. Wow. So it was defunct, basically. It had been not running. It had been running incorrectly for eight years. They just finally turned on alerting, and that's why they started noticing that it was failing.
40:44Oh, okay. Yeah. So you did implement the correct behavior. I've implemented it exactly right. It's just that, yeah, nobody knew that it was failing because that program, that part of the business had been gone for eight years, but those people were still there. Who knows, man? That's wild. I think the other one that I loved was there were whole programs in source control that were just decompiled sources. so they were c sharp but they had lost the the source code to them so they just took the binary ran them through a decompiler and checked them into source control okay and you had to make changes to this application and i don't know if you've ever worked with like c sharp decompilation but it is imagine it's unreadable right it is completely completely unreadable it is compiler output.
41:44It's like if you had to work on JavaScript minified code and I had a person, one of these was our time tracking system. The way we tracked all employees was a custom built application, but we had lost the source control, lost the source code. So it was decompiled. And there was some list that was wrong according to a business person. So I go in there and I'm looking at this like Boolean logic that's been like optimized by a compiler. And I finally like get it i write down like the logical formula and i plug it into wolfram alpha and it it tells me like the simplified form oh cool it was great i was so proud of myself for thinking of doing that because it was really complicated it turns out to be like this and that or this and that or this and that that was like the whole entire thing and i figured out what each of these variables came up with i was so proud of myself i go to the business person i'm like all right here's all the variables here's the Boolean logic, you know, what does it need to be instead?
42:41And she's like, oh, uh, I don't know. I don't know what any of those variables mean. I don't know what any of these terms mean. Instead, I had to, I had to go change a variable, print out a new list on a piece of paper, bring it to her desk and she would mark which ones were right or wrong. Oh, wow. That's in check. And then I would try to figure out based on her marks, what the bullet, and we, we did it it took like you know 10 rounds of printing out pieces of paper and letting her mark on them but uh yeah and then did you decompile that and throw it in source control or like how how did you how did you recover from the circumstance or did you just perpetuate it yeah i mean there was no you just now edited that sort that was the source code right that's the only thing we have is this crazy decompile thing i cleaned up that little bit there made it a little cleaner and added some human readable terms to it but there's no way you can fix it was probably a 30-40 ,000 line application no way you're going to rewrite all of that in the time given why did you stay here?
43:46why did you keep doing this job? was it just like a weird conundrum slash challenge? like this cannot be real and I must stay to see what happens I mean you gotta realize I didn't stay there super long but that was, I probably would have, but I met my now wife and moved. But like, I mean, there were tons of people who'd been there five, six, eight years. This was one, a small town, you know, with a big city near it, but like there's not a ton of programming jobs and all of them are kind of equally crazy. Like I knew people who had worked at other companies now, you know, and come here. And I think this kind of stuff exists a lot more.
44:27I mean, you know, there's tons of comments, right? Being like, I thought, just like we had, you know, here, it's like, I thought I worked on this code base, right? Like, this sounds very familiar. But also, like, I didn't know any better. I just assumed, like, this is what code looks like, actually, in the real world. You know, I'd seen some open source stuff, but never really dived into it. But I'm like, oh, maybe open source is better. But a company, this is just what you have to deal with. And while it's definitely the most story-worthy code base I've worked in, all of the things that were bad were just so obviously bad, it was not a bad place to work.
45:04I would actually rank it on one of the better places I've worked. Not the best, but one of the better places I've worked. Part of that was definitely my position in there. I had a great manager. He was just so supportive, so nice, always made sure that I got the growth opportunities that I needed to become a better developer. He saw the potential that I could do and made sure to help me and get more senior developers to help me learn stuff and challenge me. That was really good. But also, this will show my very strong bias here that I know you all might not necessarily agree with, but there was no agile process or none of that stuff, which I have found to be like the main factor in job dissatisfaction for myself.
45:54So like the lack of process was so freeing and so nice. Yeah. Well, you're not going to get a disagreement from me on that one, but maybe. We don't do agile around here. We do whatever we want, basically. We do code stuff. Yeah, I wasn't sure. You know, I don't know your exact thing, but like with the Kaizen and all of that, you know, obviously. Well, the Kaizen just means continuous improvement. You know, that's something that I'm sure you're into, right? Like let's make things better all the time. Yeah, I do like, I mean, your Kaizen episodes are great. You know, just wasn't sure. I know it's always contentious when I say like, not a fan of Agile, even with a lowercase a, just not a fan.
46:30So it was a good company to work for. You know, the biggest problem really, why I wouldn't have stayed there longer is like being underpaid. You're in a small town. There's limited talent. There's limited places that you can go though. So it can pay you way less. It turns out like I was making the same Famous people who had been there like eight years, which is just, and who had job titles way over me, which was just wild. Wow. But this is programming in the Midwest, you know? I know tons of people who are at companies like this with equally crazy code. I mean, even like Salesforce has a branch here in Indianapolis and all the code I hear out of Salesforce sounds similarly wild to this.
47:10Mm-hmm. Well, when you have so many people and so much, I guess, momentum, you have to make progress. and sometimes progress is like just duct tape that part you know and that's kind of what like the employees table this seems like duct tape like why in the world do you have to drop this table at 7 15 every morning and then repopulate it with a new injection and then people can't log in like why is that the way or the same thing with the sales numbers like why do they have to like claim these wins and then put it on this board and they were able to subject these interns to doing all this minion work basically to get their seemingly their numbers projected properly i don't know it's hard to decipher exactly what's happening there but yeah yeah it's a little complicated but yeah i mean it is the basic idea for that one just to be clear is like sales people you know obviously there's like the real accounting i know there were some comments on hacker news of like that just sounds like fraud there's like the real accounting system and then there was the rewards system where they get bonuses and stuff this was the reward system and you know yeah they were trying to get bonuses every month and if they made a big sale at the end of the month and they had already gotten their max bonus they would just move that to the next month so they could get their bonus for next month right so they had a cap on commissions and things like that and this was moving it around that's funny because i was encouraged when i was in sales back in the day like hey let's just move that sale to next month because you've already reached your quota this month like good good for you yeah and it got encouraged here but the way that it was implemented was interns manually writing SQL statements.
48:46Take that hourly wage out of your bonus. It costs a little extra. There's some intangible cost there on that bonus system. There were people who the whole internship they were there, they never got to write any code other than these SQL updates. And I think that's a shame. That's not how you should treat your interns. But that was one of the things. I just refused to do it. I just never wrote one. Every time it would be assigned to me, I would just go find something else to work on and do that instead. I wasn't a great employee also, to be clear. I was 20. I was a little bit more prideful than I should have been, a little bit more arrogant than I should have been for sure.
49:31But yeah. What about these hard drives and guilfoyles? Is this a Silicon Valley nod? or is this a real Guilfoyle? It can't be really a Guilfoyle, right? No, no. It's definitely a Silicon Valley reference. Okay, good. Yes, yes. I did not do it as bait for this show, but I guess in hindsight, I should have thought of that as a benefit too. Yeah, it definitely was like, when I saw that, I thought, Adam's going to love this. There's someone named Guilfoyle? Well, you say, let's call him Guilfoyle. So I figured, and then I immediately command F'd and typed in S-I-L and found nothing for Silicon Valley.
50:04I thought maybe at least referenced it. Like, let's, you know. No, I figured it for anyone who knows, you know, is a good reference. And anyone who doesn't, it's a good enough name, right? It's kind of a fitting name, I feel like. Sure. So, yeah, no, his actual name, I never, I wouldn't, I felt a little awkward, like, using his actual name. Because I never met him. I have no idea who this guy was other than through his code. And so, yeah, he was, he now, I don't think, I looked him up. I don't think he's a programmer anymore. he sells exotic pets. So yeah, I thought Guilfoyle just seemed like a fitting name, especially if you know the reference, right?
50:44It was, that was always the sense that I got of this guy. And yeah, he was, I mean, the most prolific programmer I have ever seen. The amount, the sheer amount of code in that code base, that was his. And the sheer amount of like applications that random customers or customer support people would have that were just from scratch Windows applications that he wrote with complicated logic. Any time, because he refused to use source control, which was why we had his hard drives raided on Munch's desk, he refused to use source control. If a person asked for a code change, a feature change, he would just rewrite the application from scratch.
51:26And he was apparently, from everything I heard, that fast that pumping out a brand new like 10 ,000 line application in a day was like not unheard of for him. But the code. This is like a legend. This is like a legend. Yeah, total legend. Yeah, absolutely. And like, yeah, I don't, because he didn't use source control, I have no idea how fast he actually wrote this code, right? Like, so you don't get any history on it. But like. That's how the legend continues. You know, he can't have a trail. No paper trails. Yeah, I wrote this in a day. Maybe he just anticipates needs way in advance, right? or puts his code through some obfuscation every single time.
52:04So it looks like it's slightly different, right? I don't know what it was. But yeah, his code was, it was a trip to try to understand though. There was just every time, there was never a consistent pattern to the craziness. It was like he just woke up every day and thought, what new weird programming pattern can I abuse here to write this application? services that were pure functions that like i literally do not understand why they existed clients that were just like these these super thick clients that like i mentioned the article completely empty classes classes i i did not exaggerate in the article they were empty classes they had a class definition method definitions but there was no code in any of the methods and it was it was all to like build up a structure and they're like you know hierarchy would go like 10 layers deep of inheritance.
52:59And it was all to build up the structure that then would become a pipe delimited string sent over a socket. What? That was all driven by the database. And so like, when you looked at it, you were like, okay, what is even happening? Like once you even figured out like, oh, this is a data structure, not a class hierarchy. It was like, wait, what do they turn into? Oh, well, it's like dynamically choosing which column of which table to go grab this field from. And now it's custom there. And then the table would encode like, How do you encode the value? So you could infinitely configure how the delimited string would be created.
53:34But there was no reason to do that because it's an old application that hasn't changed in 15 years. And the same message was written every time. It was wild stuff. But I actually debugged that bug for a year. It manifested itself as like 15 different cases in the system where things would just go wrong. And I thought it was like a memory leak for the longest time. I thought it was all these things. And like finding out that it was just some legacy third-party application reused unique IDs every month was like the most exciting and most letdown bug find I've ever seen in my life. Yeah, not exotic.
54:18I thought for sure it had to be Guilfoyle's fault, right? His code was too clever. I really wanted to blame him on his cleverness. I was going to say, it's convenient sometimes to have a Guilfoyle. It's like a patsy. When something's wrong, you've got someone to place the blame on because he's been prolific and he's done all these things and he's not around, so surely. Yeah. Gosh, Guilfoyle, what's wrong with you? But no, this was a third-party system. What about ops in this case? You're talking about the code base, but somebody's got to keep that database up and it seems like he's getting hit in wild ways.
54:52Like this chain function, for example, it's probably got the database spinning. The disks are spinning. And I'm assuming that's the day of hard drives. Yeah, so the database was definitely, we had quite a few DBAs. The DBA to programmer ratio was pretty high. And we had some very beefy machines running this SQL server setup. On-prem? On-prem. Obviously. So yeah, we had everything. We had a, like actually at the office I was, there was like a data center area as well as like a shipping area. So it was on-prem, it was local. There was some talk about like the company building a private cloud system and things like that.
55:34But, you know, it's a little early for them to actually do that. Nothing ever came of it. Yeah, there was definitely some beefy things. Most of Ops, though, really ran through one guy who was really good at his job. He was the Ops guy. I mean, there were technically other ones, but everything I ever dealt with, it was him doing it and maybe delegating some tasks occasionally to other people. But it was a pretty bespoke kind of setup. Deployments were all done by hand by him late at night, so that way it wouldn't affect anybody. you know it was it was that kind of place that kind of setup where you know servers had pet names and and all of that right it was well before there was some early maybe looking at puppet maybe doing some of that but nothing really came of it so yeah it was a it was a pretty this is this is honestly one of the things that like was so strange is it's the scale of the actual code base, the scale of how many people are using this is small, but not completely trivial.
56:44And yet, this legacy code base, especially, the other applications that were the big rewrites had not seen production use. And we were able to, with me, an analyst, a QA, one senior developer, and four interns, were able to out-compete all of this rewrite where we were adding new features, fixing old bugs, and doing all of that in this system while they were off doing their big agile processes and doing all their story pointing and all of that and never getting anything done. So it was fun. When you actually think about it, if you're not one of these big web-scale companies, servers are simple.
57:31Code's not that complicated. even if the code's complicated. You can make changes if you just don't get in your own way. So yeah. It sounds fun. I mean, I would like to work on this code base for maybe like a month and then move on. But I'd like to visit. As a game, maybe. Yeah, it is a game. And I mean, it's got to feel like that to a certain degree. It did. It felt very much like a game. But I think that's how I approach most of this work. Like I said, I think the job I'm at now, we've got a big, massive old code base. I now work on a fork of RhinoJS. Okay. I don't know if you all remember Rhino.
58:08I do, but I can't remember what it does, but I remember RhinoJS. It was like involved in my cappuccino days. I think they were using it back with Objective-J. Yep, yep, that sounds about right. It is a JavaScript implementation written in Java. So it is a compile to JVM bytecode and an interpreter all written in Java. It was abandoned years and years ago, but I now work at a company that has a long-term fork of it that runs millions and millions of lines of customer JavaScript. Really? And it's got some custom features. Say more? Sounds good. Yeah, so we're now trying to refactor away from it, But like, for example, in our original version of JavaScript that people still use to this day, if you did dots, it was like doing question mark dot.
59:08So if it was undefined, it wouldn't throw an error. Okay. Just return undefined. This was a choice by the founder of the company. Like, I guess I just have a knack for finding these code bases. I don't know what it is. Where things are just crazy. and I think a lot of developers work in these kinds of things, right? They just don't talk about them publicly. Totally, totally. I've had similar experiences, all I think at smaller scales, both in terms of company size and code base. My craziest one was I inherited, I did a rescue project for a boat shop somewhere in Georgia where they just needed, like basically it's a Ruby on Rails application that ran back office for a boat shop.
59:52A lot of merchants, a lot of sales, a lot of this kind of stuff. So similar tables and stuff, which is why it's probably resonating with me. And they had lost the original dev team. It was like a contract team came in, built this system and left. And then the IT guys who are also third party kind of took the system over because they were just nice guys who are helping out the company. That was a successful boat retail shop and relied upon this application to run their business now. And this was like really early Ruby on Rails day. I think it was like version 1.2 or something. And so there's a lot missing.
1:00:24And this team came in and wrote a lot of very clever code, basically implemented a meta framework on top of it. And it was insanity. It took me a very long time to unravel. And then they left, you know, and these people were left kind of high and dry. And so I was happy to help out. And I had the challenge, the game, like all these things. There was no development system. It was like production. And I copied the code down and tried to get it running on my machine, you know. So you're very much like doing crazy stuff, very small increments at a time, trying not to break things. And so that experience just resonates with everything you're saying, like the meta programming, specifically when you're talking about the thing that generates data structures from classes and the database kind of is the programming system as well, if you want it to be, but no one's using it.
1:01:14Like all that stuff was there. And it took me a very long time to be able to unravel it and understand it to the point where I was like, oh it's kind of clever once you know how it works but that's terrible thing and so i think and i didn't you know i didn't write up about that at all i think there's tons of code bases like this out there yeah i wish i had finished this write up i i haven't actually done much ruby although i did work at shopify on yjit the the ruby jit compiler okay a little bit before getting laid off sadly uh you know it happens but the one ruby code base i worked in there was just this little bit of like super clever metaprogramming which of course ruby loves you know lots of people love their metaprogramming and i i could never find the reason i never wrote it up is i could never find a non-circular starting point every time i would want to explain something i would have to like it would because the code like meta looped on itself every single time there you go see that's the problem yep it's like a time travel movie which was we talked about pre-show so not a Good callback, but yeah, yeah, yeah.
1:02:19That's one of the problems with metaprogramming is just too meta sometimes and you can't unravel it. Yeah, I mean, I think this is, you know, not to self-promote or whatever, but this is one of the reasons that I really enjoy the Future of Coding podcast, because I think there's a lot of code out there that people aren't happy with, and I don't think we talk about it. In some ways, I think looking at this legacy code base is the same thing for me as looking at the shiny new stuff. I think oftentimes we don't appreciate code for what it is. We don't look at what's come before. We kind of look at legacy systems like they're all bad and there's nothing good to gain from them.
1:03:01I've seen a bunch of blog posts talking about crazy code, but one of the things I wanted to do in this article was talk about crazy code, but in an endearing way. I loved this crazy code. I just love code. I think no matter how bad it is, it's one of those things that code is a medium to put information down that is unlike writing. You can get a sense from this application, like from my blog post, what writing code in this code base was like. But like you said, go and do it for a month. It's fun. It's interesting. And I think there's so much more code out there and so many different ways of writing code that we just haven't really unlocked yet that I want to see us do more of.
1:03:44Yeah.
1:03:50Well, our friends over at Speakeasy have the complete platform for API developer experience. They can generate SDKs, Terraform providers, API testing, docs, and more. and they just released a new version of their Python SDK generation that's optimized for anyone building an AI API. Every Python SDK comes with Pydantic models for requests and response objects and HTTPX client for async and synchronous method calls and support for server-sent events as well. Speakeasy is everything you need to give your Python users an amazing experience integrating with your API. Learn more at speakeasy.com slash Python.
1:04:35Again, speakeasy.com slash Python. And I'm also here with Todd Kaufman, CEO of Test Double. TestDouble.com. You may know Test Double from our good friend, Justin Serles. So Todd, on your homepage, I see an awesome quote from Eileen Yucatel. She says, quote, hot take. Just have Test Double build all your stuff, end quote. We did not pay Eileen for that quote, to be clear, but we do very much appreciate her sharing it. Yeah, we had the great fortune to work with Eileen and Aaron Patterson on the upgrade of GitHub's Ruby Rails framework. And that's a relatively complex problem. It's a very large system.
1:05:15There's a lot of engineers actively working on it at the same time that we were performing that upgrade. So being able to collaborate with them, achieve the outcome of getting them upgraded to the latest and greatest Ruby on Rails that has all of the security patches and everything that you would expect of the more modern versions of the framework, while still not holding their business back from delivering features, we felt was a pretty significant accomplishment. And it's great to, you know, work with someone like Eileen and Aaron because we obviously learned a lot. We were able to collaborate effectively with them.
1:05:48But to hear that they were delighted by the outcome as well is very humbling for sure. Take me one layer deeper on this engagement. How many folks did you apply to this engagement? What was the objective? What did you do, et cetera? Yeah, I think we had between two and four people at any phase of the engagement. So we tend to run with relatively small teams. We do believe smaller teams tend to be more efficient and more productive. So wherever possible, we try to get by with as few people as we can. With this project, we were working directly with members from GitHub as well. So there were full-time staff on GitHub who were collaborating with us day in, day out on the project.
1:06:28This was a fairly clear set of expectations. We wanted to get to Rails, I believe 5.2 at the time, and Ruby like 2.5. Don't hold me to those numbers, but we had clear expectations at the outset. So from there, it was just a matter of figuring out the process that we were going to pursue to get these upgrades done without having a sizable impact on their team. A lot of the consultants on the project had some experience doing Rails upgrades, maybe not at that scale at that point. But it was really exciting because we were able to kind of develop a process that we think is very consistent in allowing Rails upgrades to be done without like providing a lot of risk to the client.
1:07:10So there's not a fear that, hey, we've missed something or, you know, this thing's going to fall over under scale. We do it very incrementally so that the team can, like I said, keep working on feature delivery without being impacted, but also so that we are very certain that we've covered all the bases and really got the system to a state where it's functionally equivalent to the last version, just on a newer version of Rails and Ruby. Very cool, Todd. I love it. Find out more about TestDouble's software investment problem solvers at testdouble.com. That's testdouble.com, T-E-S-T-D-O-U-B-L-E.com.
1:08:01It's very easy, especially when you come into a code base, to, you know, Guilfoyle the thing, in the sense of how I was talking about Guilfoyle earlier, where it's like some other who was dumb or incompetent or malicious did this. But as you actually start to like work with it and talk to people and learn about it, okay, there are politics and there are power struggles and stuff. There are things that happen because we're humans. But a lot of it is like they made the best decision they had at the time with the information that they had. And I'm staring at it with completely different perspective years later.
1:08:36And like that stuff is fun to learn. and you actually realize like, yeah, that duct tape was really reasonable considering all the things they considered. I just don't know those things. And so I really do appreciate code from that perspective, especially legacy systems that are still powering businesses and bringing value to people is that we want to be smarter than everybody else, but those people just had different contexts lots of times that we just don't have. And you start to learn those contexts and it gives you a new appreciation for the code that you're looking at. and that's cool. Yeah, Peter Nauer of Bacchus Nauer form, so BNF.
1:09:14Peter Nauer actually has this great paper called Programming as Theory Building and one of the things in there that I think is really interesting is he talks about code bases dying and by that he doesn't mean that the code isn't running anymore or no one makes changes on it. He means that the people who knew the original context of the code base are no longer there. They're no longer working on it. And so everyone else that is having to make changes to this code base is working on a dead code base that's no longer alive because they've completely lost the theory of the code base. Why is this here?
1:09:51Why put these lines in the way that they are? How do I make these kinds of changes? And he argues in there that you can't revitalize a dead code base. Once a code base dies, you can create a new theory about the code base, but it's impossible to ever recover the original one. And I feel like I've worked a lot on dead code bases where the people who, yeah, the people who knew that context once are long gone, don't work at the company anymore. And in some ways, like this code base wasn't dead because of Munch. Because Munch could always provide that like little bit of context, right? Breathe some life back into it.
1:10:33And had Munch not been there, the code base would have been completely dead. No one would have had any idea what was going on. Is Munch still there? I haven't checked. I don't know if he even has a LinkedIn or anything. Maybe he does, but probably hasn't updated it, even if he did. So I'm not sure. I know the company now doesn't have that name anymore. I don't know if that, you know, I don't know if that code base is still running or not. You know, it might be, but it also might, because it was customer support and sales, that when you know you get a big merger like that that's one of the things that often gets like they just choose one right credit card processing code i'm sure is still running but customer support might not be code that code base might literally be dead now merchants might be gone merchants three if they ever got to that point right might not have any more data and i don't know yeah i do like the way that you compliment it though you talk about the the beautiful mess that section there where you talk about which is kind of what you're talking about here where you there were no overarching design systems to work in there was a lot of freedom there was no documented design system you mentioned that there was any concerns of co-duplication were out the window you can sort of carve out your own little section because trying to fix the big mess was impossible so you just gave up and just worked in your own little world of insanity, as you say here.
1:12:02I think that's kind of cool that somehow, some way in this mess, you found beauty to enjoy. I think it's something that we should do more of. I've worked in systems since that are a mess, but everyone's always trying to fix it. I get that impulse because I hate the mess too, but sometimes it's just beyond fixing. This is why people give the advice of don't do the big rewrite because it's much bigger than you think it's going to be and it's probably going to fail. And I think the same could be said of trying to make sense of a 10-year-old, hundreds of thousands of lines code base. There's just no way you're going to be able to hold it in your head.
1:12:49And when you try to come up with some overarching scheme of what the code base is really doing, and now I can come up with the perfect abstraction and it will do all of this. I just think it's a losing prospect, right? It's just not going to work. And so, yeah, I think we should embrace more, even in good code bases. I think we often want uniformity. We want everyone to have the same coding style. We want everyone to follow the same coding rules. And I've found that often that, to me, that ends up causing more problems in the long run. because once you have to have everything consistent, as soon as there's a big change that needs to be done, it actually becomes harder because you can't do the big change all at once.
1:13:33And if you require consistency, it's harder to do those small changes each time. Even the connection to the users is interesting where you put in the after section where you describe it as a ragtag of juniors, essentially. All the serious senior folks have gone away. even like we mentioned this as a game it's kind of interesting to think about this like as a thought experiment of this ragtag of juniors just like figuring it out talking directly to the users talking directly to the support rep who's got the problem how can i make your life better to me that's like in the grand scheme of things it seems kind of interesting because i said hey why'd you stay there and you're like well because and i think i can kind of see that light now in the after section.
1:14:17Yeah. And the next job I took actually had the exact opposite thing where we were actually completely forbidden from ever talking to our users, not just as developers, as a company. I worked at a big, a company that was a, it's a big private company. They buy a bunch of companies and we were building an application for a sister company in this big group. And they hired a contractor to be the go-between. And they were scared of us ever talking to end users because they were worried those end users would think that their job was in jeopardy if we were rewriting this application. So we were never allowed to talk to them.
1:14:58And I worked at that company for a little while. And then I left and then went to a startup that didn't do very well. And I came back as a contractor at the original company. And at that point, they had changed this rule where they now were allowed to talk to their users indirectly, not directly. How so? Well, okay. So there are actually now users who are in the exact same building, two doors down from where the developers were, but they couldn't go talk to them. What they could do was those people would write three by five cards of feedback and they would post them on the wall. And I came back as a contractor and I was so interested to see what is the feedback on the system that I knew was not a great system.
1:15:44It was a completely greenfield, brand new system. And because of organizational issues, as you can imagine, it did not meet user needs. And I looked at a few of them. They were all like, please fix this UI element. Please do these things. But one of them will always stand out to me. And it was very simply put, it was, remember, you're supposed to make our lives better, not worse. Wow. That one hits hard, doesn't it? Yeah. Yeah. And that's what I had done. The whole application I had been building with this team of 30 people was making these users' lives worse. That sucks. I mean, that's... that's not how it's supposed to work.
1:16:34Yeah. Yeah. And so like, that's what I, you know, looked at like the contrast between this first job where, yeah, things were an absolute mess. Whereas there, I mean, there was no tests, right? Like they just literally didn't exist of any sort, not unit tests, not integration tests, not anything. We had manual QA that sometimes did some things. I had one really good QA for a while. She was fantastic, but like, you know, by all standards, it was wrong. Whereas the next job, by all standards, it was supposed to be good. It was right. You know, it was, you know, yes, everyone has different opinions, but it was spring and it was angular and it, we had a hundred percent test coverage.
1:17:16That was the rule. Every line, every, if everything had perfect test coverage. We had a end to end test coverage suite. We had dedicated technical QA that did all of this. And yet it was a way worse code base. It was plagued with constant problems. It didn't meet the company needs. It didn't meet the end user needs. It couldn't scale. Everything about it was wrong, despite on paper, we followed all the best practices. Obviously, 100 % test coverage is not actually a good metric. I know that. I did get that one changed to 70 at some point. I guess what's your broad takeaway from that circumstance?
1:17:56I think that one of the things that I've come back to over and over again in my career, and I think this first job really did teach me this, is as programmers, it's very easy to give up on our responsibility and say, I'm just doing what the business wants me to do and that's what my job is. My job is to do what I'm told, it's to complete this story. yes, I can maybe sometimes give input, but ultimately I make it happen, but I don't decide what we do. I'm the how, not the what. And I think that that's always been the problem I've seen at these companies when things went poorly was when developers just kind of gave up on doing what was good and what was right for the system and for their end users and for the code in order to just do what they're told.
1:18:50I think that as programmers, we have to accept the fact that we're not hired to do as we're told. Otherwise, we just wouldn't have the salaries we do. They wouldn't pay us this much just to not want our opinion. And even if they say they don't really want our opinion, we got to do what's right. If you're a good friend with somebody, you don't always do what they ask you to do, but you always do what's right for them. And that's how I think that we have to approach these things. And every company I've been at where the software made people's lives worse and not better, programmers had kind of given up on doing what was right and just did what they were told.
1:19:28Well said, Jimmy. Well said. Anything else, any stone that we've left unturned? I'm sure there'd be dragons elsewhere, but anything you'd like to highlight before we call it a show? No, I mean, yeah, there's tons of other stories. There's tons of other craziness, like the time I had to split the code base in half and all sorts of weird things like that. But they're a little long. So yeah, yeah, yeah. Fair. Well, great best worst blog post. Love that you wrote that up. I think there's a reason it was popular. And I think because it's a shared experience, well documented. And it's fun to laugh at these things.
1:20:06You know, we laugh so we won't cry. Or maybe we laugh at you and not with you because I didn't have that particular problem. But I appreciate you coming on the show and talking to us about it. and for giving us some big picture ideas and hope for the future of coding and also for the current state of coding and code itself. And a love for it that I share at least, even when I despise it sometimes. I still love it, and I think that that's just the way it is sometimes. Adam? I agree. I agree. All right. You never know when you're the best of times. That's right. Right? this seemed like from the outset like maybe not the best of times but actually it kind of was absolutely are you talking about our podcast or are you talking about his experience his experience his experience that was fun Jimmy thanks for sharing thanks for going I think deeper than maybe is necessary to share a story that may not even matter to anyone else besides you and you just shared it with the world and now you can reflect on some of those key attributes that really reflect back on a good time.
1:21:15Really. It's cool. Thanks. I enjoyed it. Yeah. All right. Bye y 'all.
1:21:22So Jimmy looks back on this time, this beautiful mess, as he said, the best worst code base as one of the greatest times in his life as a programmer. It's kind of funny how you can look back on times when you're in the moment and things kind of suck or they're not seemingly so awesome. And it's actually one of the best times of your life. It's kind of funny, right? As one wise person has told me before, these are the days. Okay, so that was a fun show with Jimmy. Very fun adventure. Very deep context we got to dive into. I hope you enjoyed the show today. Make sure you check out Jimmy's podcast, Future of Coding.
1:22:03you can find that at futureofcoding.org so I want to mention this here in the post show because we're still not quite there yet but we have definitely dove deep into the Zulip rabbit hole if that's even a thing I don't know maybe there's an analogy there I could have came up with but I didn't but we love Slack for many years and then recently we tried Zulip instead and so if you're already in Slack there's an invite there in the main channel you can take advantage of. To come over to Zulip and to test the waters, many of the folks who have done so already have said never go back to Slack, that Zulip is the best.
1:22:44And I think that's how we feel. We've talked about it on a recent episode of Change Login Friends, Jared and I. But I want to invite you. Go to the show notes. There's a link in the show notes for you to join our Zulip. Everyone is welcome. There are no imposters. Hope to see you there. We had some really awesome sponsors for today's episode. Assembly AI, the leader in speech AI. Check them out, assemblyai.com. Our friends over at Superbase, check them out at superbase.com. Our friends over at Speakeasy, check them out at speakeasy.com. and of course our friends over at test double test double.com just have test double build all your software and you'll be good there you go okay last but not least our friends our partners over at fly yes that's the home of changelaw.com and that is the public cloud built for developers who ship deploy your app in five minutes at fly.io okay those beats by break mess of cylinder with Banging.
1:23:56Gotta love BMC. That's it for today's show. We'll see you on Friday.
From the publisher
Jimmy Miller talks to us about his experience with a legacy codebase at his first job as a programmer. The codebase was massive, with hundreds of thousands of lines of C# and Visual Basic, and a database with over 1,000 columns. Let's just say Jimmy got into some stuff. There's even a Gilfoyle involved. This episode is all about his adventures while working there.
