Getting off the Modernization Treadmill
Comments
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
And speaking of our amazing speakers, our first speaker is Alexander Petros. Okay? You probably
know him as the maintainer of HTMX. He
is also um very very interested in um the web in
like a deep core kind of way. He's got proposals uh to make HTML even better. He's got the Triptych proposals. He writes uh a beautiful blog about um writing software that doesn't rot, which is still very relevant in this day and age. He is an engineering lead at the IRS. So, if you have any engineering or tax questions, please please find him after. And he is here to talk to us today about getting off the modernization treadmill. Please welcome to the stage Alexander Petros.
>> Good morning, everyone. Thank you, Aaron, for the lovely introduction. Thank you, James and the whole Big Sky Dev Con team for having me back again. This is my third year speaking here uh and it's my favorite conference in the whole world. So, it's an honor to be here and let's get started. So, a little bit about me and my background. Aaron covered most of it, but I'll just whip through it. I'm a tech lead at the IRS. Uh I was uh working on the Direct File, which was the IRS's free tax filing program, and I also led the development of the IRS's tax withholding estimator, which is an online application that helps you estimate your taxes for the upcoming year so that you can withhold the current amount the proper amount during your pay period.
I also work on the Triptych proposals for HTML, which I'll talk a tiny bit about at the end of the talk, which are just three small proposals for making HTML far more expressive um without using any JavaScript at all. And I'm a co-maintainer of the HTMX JavaScript library. To get this away, just up top, I'm speaking here entirely in my personal capacity. My views do not reflect the views of the government or my employer, and everything I'm going to talk about today is based on publicly accessible information. So, it's it's no no internal IRS workings, just talking in general about how the government can build good websites and how it can save a lot of money doing so.
So, the title of this talk is based on something that a friend and mentor of mine said to me on the phone a week ago. Uh and he said, "When I started working in the civic technology space, modernization meant replacing systems that were built before I was born. So, you're thinking your COBOL, your mainframes, your you know, big computers in rooms, and turning those into Java VPSs." But today, modernization has come to mean replacing systems that were built 10 years ago. And there's a very specific reason for that, and I'm going to address it and come up with some ways that we can fix that problem. So, the main reason is that 15 years ago, roughly, we started building websites as single-page applications by default. And this has had enormously detrimental consequences in our ability to maintain those websites over a long period of time and update them.
And I have a very specific example here, which is the ability to apply for food stamps for the state of California, so for SNAP benefits. Until very recently, California had two web portals for doing this. One was BenefitsCal, which was the one-stop portal for a whole bunch of benefits, which included food stamps, and that was a single-page application. And then there was GetCalFresh.org, which was a traditional HTML service based on built on Ruby on Rails by Code for America, and that was specific to food stamps. And I'm going to just show what it looks like to load these two applications on a
relatively low-performing device. This is a P75 device, which means that it's a 25th percentile on capabilities for network and processing power.
>> Okay, that cost me 3% of the run time of this talk, but it was worth it.
So, what are we simulating? That was a 2024 demo, but it's 9 megabytes per second down. And it's in 2026, the equivalent kind of P75 device would be a Samsung Galaxy A series phone, an A24 4G from 2023. I did actually just went to the website myself yesterday at yesterday's venue. And at 75 megabytes per second on my MacBook Pro, it took 2 seconds to just see the login button, and 10 seconds to finish loading entirely. So, even on a relatively good web connection and a good laptop, it still is not a fun experience to use. And that's by the way, just to see the homepage. That's not to login, that's not to sign up for stuff. Goodness knows how all that's implemented. That's just to get started.
So, who Why do we care about a P75 device? Well, who are those users? They're ones with low-end smartphones, like starter Android phones. They're users in rural areas. They're users with busy home internet connections. So, if you have maybe five people at home, and you aren't paying for a super high-performing internet connection, and one of your kids is on Zoom school, and now your internet is all of a sudden unusable, that's who that That's what that delay is affecting. Those are the people that are going to be unable to access those services because of the poor-performing website. And obviously, those are the users who are most likely to need the state benefits in the first place. So, the people who develop these websites are usually doing so on high-powered interconnections and high-powered devices, but they're not using them in the conditions that the people who most need those benefits are going to be.
So, um as I said before, the first one's the SPA, the second one is the HTML web service, and you're probably thinking, "Okay, well, at least in this case, sort of unusual one where you can apply for the same benefit in two portals, well, at least in this case, uh California saw that the the better performing web that this was a problem, and they built a better performing web page that people could access those benefits." No, they turned off the good one last year. So, now you have to use BenefitsCal uh because BenefitsCal was designed to be the thing that encompassed all of these disparate web pages. So, you can't even They left the web page up, and they said, "Sorry, go to the bad one if you still want to apply."
Uh and they gave a $1.3 billion contract
to the people over 11 years to the people who built the first site to continue maintaining it for the next 11 years. And just to put that number in context, uh $1.3 billion is roughly $120
annual $220 $120 million annualized,
which is 30 times what the Sixers are going to be paying LeBron for the next 2 years. Admittedly, LeBron is 41, but he's still LeBron. So, for the price of 30 LeBrons a year,
we're getting a web page that's 22 megabytes. Uh it was born in 2021, and at some point, someone's going to go, "This is untenable. We need to do it again. We need to rebuild this thing that, yes, by the time they get around to doing it, probably will have been about 10 or 15 years old." And yes, people notice this. Uh if you ask on Reddit, you can see there's a fair amount of a fair amount of chatter about it. These are from 3 years ago, but no, not to worry, still a problem. Uh, and this particular comment I find very revealing. Um, 2 years ago somebody says, "Hey, I've been my thing's been hanging for a month.
Uh, how do I get it?" And below, somebody says, "I'm going to give you the best piece of advice. Just go in person." Just go to a physical building and they will handle your case and then you don't have to deal with this website. So, this is emblematic. Obviously, this is specific to California, but this happens the researcher uh, whose research I'm citing here, Alex Russell, is a browser engineer for Edge. Uh, and his research demonstrates that this problem is endemic to a variety of state web portals for a variety of different benefits across the country, red and blue, what have you. And the the fundamental problem here is that in the last 20 years government built a new interface. Um, for hundreds of years we had you could go in person and or you could mail forms in. And then we added phones and faxes, but fundamentally those are things that are processed during business hours uh, and have decades if not centuries of history of how we maintain those processes. But now we have to build websites. So, if you think about it, which are available 24/7 and uh, and have entirely different queuing and load mechanisms. So, on if you think about it on that perspective, it's not ridiculous that the government has not figured out in like 15 years how to completely revamp the way that it does business. But it's still a very important problem that we have to solve and that's the problem I mentioned them solving today.
Now, there's a lot of public services that are delivered via the web now. If not the only interface where you can get these, usually it's the primary one and it's definitely the one that the public sector is pushing you towards because it is fundamentally cheaper to have you apply for something on a website than to pay enough people for all of those people to process your claims. So, that's stuff for applying for benefits, unemployment, food stamps, what have you. Um, paying fines, paying taxes, reserving library books, those or renewing a driver's license or passport. These are all things I've actually I think I've done every I've done most of these online. I've done most of these via web portal myself. And all of many of these are also state-level issues because we have federalism. So, you take the problem of building all these websites and you multiply it by 50s and sometimes in the case of things like libraries, you're actually talking about municipalities that have to implement these. So, the question of well, we need
to implement food stamps and all of a sudden we're paying $1.3 billion over 11 years to build a website that can handle a bunch of benefits. That's multiplied by states, it's multiplied by municipalities, and it's multiplied by the types of benefits that people are trying that governments are trying to serve to their constituents. So, how do we end up in this position? And how do we resolve it? So, the kind of main entry point for a lot of people
who are just learning about the problem of government software service delivery is a book called Recoding America by Jen Pahlka, who was the founder of Code for America and worked in the federal government for a long time. And she identifies a bunch of cultural issues
in the way that the government delivers software that I'll just name a couple of these here. They fund the project they fund the projects as a product and then expect that funding to go down to zero. There is the so-called waterfall delivery model where giant PowerPoints and Word documents are written up to say exactly how the website should work and then there's no feedback loop where in building the website you learn things and it goes back. The hiring pipeline is a mess. At the federal level, ostensibly it's illegal to do user research because the paperwork reduction act says you're not allowed to ask more questions. This is like huge chunk of the government believes it's just illegal to do research.
And there's to consider off-the-shelf products, big contracts, etc. But I want to focus on one in particular, which is this idea of the product-based funding model. So, this is from Polka's Substack, which is called Eating Policy. And the blue line is This is how she says that the government understands uh project funding. And the blue line is what the government wants to see, which is that we spend a one-time amount of money, and then we have a piece of software, and then it the maintenance cost goes essentially to zero. Um and the product model, which is that you understand that you're on the hook for maintaining a web service over a certain period of time, is uh the healthier model, but on paper, it doesn't look that great. So, the way that she reframes this is she says, "Well, in practice, what you end up doing is you end up on this treadmill.
You end up building the wrong thing, going to zero, that thing sucks, it's a it sucks for a while, and then you go and spend even more money to build a new thing, and you just do this over and over and over again." Uh and she calls this the concrete boats approach because it's a reference to uh a saying, which is if they told us to build a concrete boat, we would do it. So, yes, obviously there is a perspective problem that is uh that needs to be fixed. However, this graph has never sat quite right with me because I don't understand fundamentally why we are paying the same amount to maintain something as we do to build it in the first place. You should be able to build something and then kind of fix it as necessary. Um you do have to spend some amount of money to maintain it, but the startup costs should be more than the actual cost to maintain. So, is it possible for us to get to this third, better thing where we spend a reasonable amount of money up front to build something, and then the cost goes low, and then sometimes we bump it up a little bit because the a new but bill has been passed, or the requirements have changed. There's an ongoing funding presence, but fundamentally, we should still be in a situation where we're not spending as much to keep something alive as we did to build it entirely from scratch in the first place, Feels very sensible to me.
Um so, her reasons why that's a problem,
uh why software needs to be updated all the time, and remember that the audience of this Substack is is policymakers who are not kind of modern software developers, but compatibility, um sometimes things change that you use, so you have to update it accordingly. Uh security, there's new vulnerabilities, so you need constant uh constant maintenance of the project in order to address those vulnerabilities. Um performance improvements, you may change the laws, uh and then something called the 100% trap, and I actually couldn't figure out what she meant by that. But I I assume it means that you have new requirements or something like that. So, this kind of the attitude that a lot of these civic tech reformers have about um building good websites is that really it's not a question of the technology we use, but it's about the attitude that we approach that technology with. So, doesn't matter how you build the website as long as you understand that you need to fund it appropriately, and you need to do research, and you need to have an agile development model, and so on and so forth.
And I don't quite agree with this.
And it's helpful to to take a step back and ask, "Okay, if we have a problem with government service delivery, what are we trying to deliver?" We're trying to deliver a reliable web service. We're trying to deliver one that's extremely accessible, and we're trying to deliver one that's cheap to maintain. And some technologies are much much better at this than others. So, if you are scoping out how long you're going to be on the hook for something, and how expensive it's going to be, well, you should choose technologies that make that much easier. And of course, if you're familiar at all with my work, there's one technology that I believe stands head and shoulders above the rest in making this possible.
And that's HTML. And to explain what's so powerful about HTML, uh we're going to talk about it in the context of those reasons that Polka provides for why products need to have ongoing project-based funding. Uh real quick, I understand that most of the audience knows what HTML is but in case you are not a web developer HTML is the code that structures and forms the basic functionality of a website. CSS is the code that styles the website and then JavaScript adds new functionality to that HTML. So if you've ever seen you know lists of a link when a tag header tags forms text boxes input what have you all of that is built with HTML.
So Let's go back to Polka's examples of why software needs to be updated all the time. Compatibility. Well HTML is backwards and forwards compatible. The very first website ever made in the early 90s is still online
and modern web browsers that are far and away more capable and on devices that Tim Berners-Lee could never have imagined are able to upload and view and display the exact same code that he wrote on the first web page in CERN in the early 90s. That's insane.
There's no other way that you can deliver software that is that it has that level of guarantee of stability and backwards compatibility. And it's also forwards compatible which means that you don't have to if there are new features you don't have to worry that they're going to that they're going to break something. So security new vulnerabilities. The browser fixes those for you. If there are vulnerabilities in HTML everybody is updating their clients regularly browsers auto update they fix those for you. If you made mistakes in your code obviously nobody's going to fix that for you but there aren't going to you're not just going to sit there with some HTML and then browsers are going to change and now you are on the hook for updating that. That never happens.
Changing needs policies change processes change. Okay, I'll give you that one. HTML is not going to save you from the law changing. You do have to keep funding your website if you want to update it based on new requirements. And then finally performance improvements. HTML does those for you for free. So, if you've coded your website in a proper semantic structural HTML style, uh it will just get better over time at zero cost to the people who built that website. Which again, is extremely important if you are trying to build a public service, if you're trying to expose a public internet interface in a sustainable way.
Uh a couple examples of these, and some of these are so basic and fundamental to how the web has changed that we don't understand that they're actually upgrades that HTML made possible. So, the entire I If you remember prior to Internet Explorer like 7 or 8, every new browser tab you had to open in a new window. So, you were just windows all over your desktop. And then Firefox said, "What if we had tabs?" Uh and all of a sudden, every link that already existed could now be opened in this entirely new invented out of thin air browser context. And that's possible because the functionality of a link is described in a semantic way. It says, "This is a destination." And so, the browsers can innovate and give you new places to open links. Open them in a private browsing tab. Open them in a new window. Open them in a new tab. Uh open them in a different profile or whatever.
It can give you all of those new features, and your website essentially updates itself to support the new features of the browser because you described it with HTML. Um reader mode is another very obvious example. There's a lot of features. Um you might call them accessibility features. You might just call them features that let the user recontextualize the web browser and the web page in a way that meets their needs. Again, without any effort from the people who built the thing. Uh and of course, tons of performance and security features, etc. And there's no upgrade pressure. There's never a situation where you want to use a new feature in HTML, and then you have to get off an old feature because it's been deprecated in order to upgrade to the new thing. This is the main thing that pushes people to do security upgrades, or sorry, upgrades to their site in general, is they want some new feature of TypeScript or React or Svelte or what have you, uh and something has changed. So, they can't move to the new thing until they provide effort to upgrade their old stuff. HTML never does that to you.
Uh and it's accessible by default. That doesn't mean that you don't have to do testing of your of your page in low-end browsers, phones, different input devices, Mac screen magnifiers. You still have to do all that, but you are going to sail through it in a way that does not happen when you have re-implemented all of that functionality in JavaScript and inherently not considered all of the different devices that people do because you, the developer, are likely developing it on a nice computer, uh and you are thinking about uh the primary interfaces that you use, but not necessarily the ones that everybody use. So, the way to fix this is very simple.
Write it into the requirements of the service of the project that you're doing that it work without JavaScript. That's it. Not necessarily that it doesn't have any JavaScript, but just that the core functionality of the website can happen without JavaScript. And if you do this, pretty much every It's a little bit like when they start cleaning up the rivers and all of a sudden the whales come back. If you do this, all of a sudden you will find that it's very, very hard to deliver a bad webpage because the structure that HTML requires is one that it fundamentally uh is good for the user and uh is performant and cost-effective.
And there's a lot of precedent for this. Uh the UK Digital Service already does this. Uh they say, "When you are building a new interactive website, start with HTML and the services should be functional using only HTML." And it's not just static sites. I want to highlight the first bullet point says, "Transactional services." So, this is I'm going to the government to sign up for something, to provide some information, and they come back to me and say, "Okay, we we saved your information in the database somewhere." So, this is 90-95% of what the government needs to do to put its services online and make them accessible to people is build transactional basic HTML web forms. And if you want to do additional stuff on top of that, go nuts. But, the important functionality should be built in a way that it is accessible to the broadest number of people.
And this is the basic architecture that accomplishes that. You do an HTTP request. All of these internal services all have incredible complexity and legacy environments, etc. Um and you don't need to worry about that for this part. There's There's a lot of a lot of effort that needs to happen to modernize those things, but the the the first layer, the part that the user sees, is very simple. Uh and this can kind of force you to uh to build a a useful abstraction layer in front of all those things. Uh so, make a website like it's 2010. Uh Spring Boot, if you're using Java, I think is a great option. Django, uh if you are using Python. Uh for a slightly lower touch, less batteries included, I like Express JS and Nunjucks. Uh and then finally, you can use Rails.
Um and just return HTML from those routes. Uh and if you do that, fundamentally you have a good structure for your website that will last a long time. And finally, do not ever use React JS. Yeah. Genuinely ever. At all. >> [applause] >> If you have put it in your website, you have not done your job. What you have done is you have built a concrete boat. Technically, it meets the requirements, uh but it does not serve the users. Uh it saddles you with a lot of ongoing problems. And 10 years later, you're going to be going, "Why doesn't this boat float?" What if we had one that did?
Um and I'm going to finish up real quickly. Uh it It's not rocket science. It's just basic web practices that we know how to do, that tons of people know how to do. Uh and uh yeah. Thank you very much. >> [applause]
[applause] >> So, I I wanted to say one thing. Um if you're interested in seeing a concrete boat after this, um the engineering department enters a a concrete boat contest, and they've got their concrete boat in the building across the street. So, I'm happy to show it to you. >> Nice. >> And just so we're all on the same page, concrete boats are bad, even though that one's awesome. So, well done. Um okay, couple questions for you. One is let's imagine um let's imagine you're
working in an environment that has a lot of bureaucracy. Sure. See if you can imagine that. >> Give me a second. Hold on. >> So, imagine you're working in a company, you are not the CTO. How do you advocate for this sort of thing in an incremental way that the suits might understand?
>> Well, the whole talk is designed around something that the suits might understand. We'll find out if I was successful. But framing it in terms of cost-effectiveness, of your ability to pass the various requirements that they do understand like 508 accessibility testing, and in general framing it around the ability to maintain this thing over a long period of time is It is a question that a lot of Let's We can call them bureaucrats, but a lot of people whose job it is to manage projects, to deliver business requirements, they are struggling to understand why it doesn't work. And
what I'm hoping to do with a lot of the advocacy work I do, but also in just explaining these things is bridge that gap. To to to help them understand, well, we adopted Agile. We're doing smaller contracts. We're doing all these things that I've read about are important, but why do the products we produce continue to have these problems? And the answer is because there are technological reasons for those problems. And if we those technological reasons
can have effects on your culture, they can have effects on the kind of services you build. And so you can't divorce the question of what technology you use from what process you use. >> And I I guess last question is um
a lot of tech we talk about is like this tech is incredibly cool. Look what we can do with it. Like how fun is that? You led for the first 70% based on
uh what felt to me like empathy for the normal user. Is that inherent in you?
Where does that come from? Is that something that's in the HTMX water? Like where does that like let's talk about the user first come from? >> There are a lot of the there are a lot of people if you people who work in the public sector usually do so not for the money and for the fame, but because they care about the people. So, there is just a disconnect between what they are being told will produce a result that helps people and the reality
of what it's like to use the things that they produce. Uh and I think there's a lot of reasons for that. Um I cut it off because uh you know, there's a time limit, but really I think it's cuz a lot of modern software developers come from websites like Facebook. They come from big tech companies. Big tech companies fundamentally have a different set of priorities. Their job is to keep you on the website as long as possible so that you consume more ads. But that's the opposite set of requirements and priorities that the government needs to be doing, which is to build something that is clean, quick, efficient, and gets you in and out as fast as possible.
And so there's just a little bit of a culture shift required in telling people that the technology they use actually comes from a somewhat ideological place, but there are different ideological places that produce different technological results. And if we start from those through lines, then we can produce services that actually help uh people who need them. >> Incredible on your feet. Y'all give it up for Alex. >> Thank you everybody. >> Well done. >> Thanks Aaron.





