Jonathan Schneider 🚒

Jonathan Schneider 🚒

/jonathanschneider

Jonathan Schneider 🚒

Jonathan is co-founder and CEO at Miami-based Moderne which automates software modernization at scale through source-to-source transformation.

User Avatar

Jonathan Schneider 🚒

3y ago

The Law of Conservation of Developer Resources
Jonathan Schneider 🚒

"For every improvement in developer productivity, there is an equal and opposite increase in business requirements for developers to build."

I don't worry about generative AI taking developer jobs. Increases in developer productivity have arrived in fits and starts from the beginning.

  • Remember when WebSphere used to take 45 minutes to start to test some minor local change and you went to a 45 second Tomcat start for the same codebase?

  • Remember when that Tomcat app took 45 seconds to start and you went to Quarkus natively compiled apps and it took 0.45 seconds to start?

  • Remember when we had to wait for a day/week for some person to deploy our app and then we went to fully automated CD?

Don't fret, my friends. As the unit cost of producing technology goes down, we produce more technology. Worrying about this assumes that the desire for technology output remains constant and it never has.

User Avatar

Jonathan Schneider 🚒

3y ago

Making public my call to action as CEO for Moderne: "we must have the best two-hour POV"
Jonathan Schneider 🚒

I want to leave a lasting impact on engineering. I am an engineer, and I see engineering shifting further away from the creative discipline I fell in love, displaced increasingly by tedious maintenance.

Every organization has a living codebase...and much of it outside their control. It’s like shifting sands where every grain is a dependency... Not upgrading your modern apps regularly, can lead to critical security, compliance, and performance issues.

I see a market full of search and reporting technologies -- technologies that blame the developer for "technical debt" that is foisted upon them by the ever evolving landscape of third party components they have no choice but to consume. The clear opportunity for REAL remediation seems huge.

But I'm wary. I've seen it too many times... the best technology too often loses. And so I lie awake wondering what I can do better. Buyers are rightfully skeptical. Budgets are tight, vendors are many, and talk is cheap.

We show up and add valuable on day one.

We make mass commits to real production code resolving real issues in the first 2 hours of a customer POV engagement. This week, we accomplished this in an engagement. We set a new standard for ourselves.

In any disruptive innovation, early proof alone gives someone the freedom to imagine the possibilities.

If we don't do the small things right, how can we be trusted to do the big things? We have two hours to fix code quality issues, repair unit tests, update dependencies. We pick these things because they are relatively easy to review, and folks can begin to grok what we of course know -- the possibilities are practically endless. And we'll work on them together, one by one, in every additional two hours we are allowed to be of help.

User Avatar

Jonathan Schneider 🚒

3y ago

Before I say anything here, allow me to admit that this piece is not going to age well. We are constantly learning, exploring, and pushing the boundaries of large language model (LLM) applications to mass refactoring. It's worth writing something now though, because we do know some things.

There is no doubt that Copilot has increased the speed of my code authorship. I have some heartburn when I hear simplifications like "Copilot writes 30% of new code" because the reality is more complicated than that. It is above all a human-machine interaction where suggestions do in many cases save me a lot of mundane typing but are equally as often completely bogus. And that's fine!

Generative AI is best in single-point suggestive applications.

The same AI prompt applied to the same input will not always generate the same output. You can quickly test this with this unit test which successfully moves a switch default case on about 70% of the time. When I am authoring new code, success ratios like this lead to fantastic time savings, because I'm rolling the dice on practically every single word I type.

If I were trying to move switch default cases for every switch statement on 500 million lines of code, 70% success would imply a lot of manual review.

Rule-based systems are best in multi-point authoritative applications.

A rule-based approach to refactoring switch statements could be provably correct 100% of the time, but the recipe is more complicated to develop. This is the recipe using an AI prompt and this is the same recipe written for 100% accuracy.

  • Multi-point: designed to operate at many (potentially hundreds of millions) of distinct cursor positions in the source code.

  • Authoritative: Guaranteed to be accurate.

There is a tradeoff between recipe development speed and manual review time.

For refactoring operations that have a relatively small number of touches in a large codebase (say 1,000 occurrences), I believe leveraging prompt-based approaches to making the change and accepting more manual review is worthwhile.

For core recipes that are going to be used repeatedly or serve as building blocks for moving up the value chain, 100% accuracy is a surer footing.

Neither is a replacement for the other: just two different tools to use depending on the application.

User Avatar

Jonathan Schneider 🚒

3y ago

Lossless Semantic Trees: the key to restoring creativity to software engineering.
Jonathan Schneider 🚒

Regardless of our role, we are always looking to accomplish more with the finite resources and time at our disposal. As a software engineer, I could roughly divide the style of work I do into creative work (feature development) and maintenance activities (migrations, chores).

When we first learn to write software it is close to 100% a creative activity. Everything is new and interesting. As we mature in our careers, this slides to maybe 70/30 and sometimes even worse.

The maintenance activity has long been frustratingly immune to automation. I used to think St. Louis Cardinals baseball was the answer. It could occupy only about half of my attention, and so could maintenance activity. Together they were bearable.

Software maintenance automation starts with a Lossless Semantic Tree

We are familiar with the shortcomings of text of course. What engineer hasn't written large sequences of regexes to perform some menial task en masse and felt like the master of everything?

Abstract Syntax Tree manipulation feels more promising, but:

  • Typically ASTs don't preserve formatting

  • ASTs may or may not have type awareness of the syntax

  • They are heavy and not designed for round-trip serialization.

The Lossless Syntax Tree is a further evolution geared toward IDE support, preserving formatting, but also optimizing for error-tolerance since the code we type in the IDE is often in a grammatically incomplete state.

The Lossless Semantic Tree has a different set of characteristics:

  • It preserves formatting. In fact, it infers the local and global formatting preferences from observation.

  • It preserves the entire type awareness that the compiler possesses in its intermediate representation before producing its final output.

  • It is designed for round-trip serialization.

  • It is not optimized for grammatical error-tolerance, but is designed for incomplete type information.

The Lossless Semantic Tree is the data model upon which we have begun to build recipes or transformations on that model. Recipes progressively encapsulate our desired outcomes from simple method renames all the way to full major framework migrations! OpenRewrite is an Apache-licensed Lossless Semantic Tree and set of recipes that are paving the way for engineers to focus on creative rather than mundane tasks!

User Avatar

Jonathan Schneider 🚒

3y ago

In the weeks leading up to joining Netflix as a member of the Engineering Tools team in 2014 (thanks again, Mike), I wasn't sure whether to believe the Netflix culture deck, specifically as it related to "freedom and responsibility."

Regarding engineering (specifically, the source code), I'd only ever seen centrally initiated efforts backed by executive sponsorship defeating successive waves of organizational resistance through sheer force of will.

That's the only way, right?

The best solutions emerge when centrally forced change is anti-cultural.

"Freedom and responsibility" allows platform teams to test the value of solutions without the effectiveness bias that being able to force a solution causes.

I saw this first-hand when I unwittingly stepped into a migration engineering role. How do we get teams from Java 6 to 8? Gradle 2 to 5? Framework version 1 to 2?

Diffusion of responsibility causes mass communication as a tool to falter.

I could only imagine code search and reporting. The problem seemed to be one of visibility and communication; the solution was to have more of both.

Some of my colleagues went so far as to create a hack day project that discovered when an engineer made a breaking API change and discovered what other teams would be impacted. They automated the production of one-off videos that began with the title "Here's Who You Hurt Today," followed by a series of profile pictures of engineers on impacted teams, with background music by Sarah McLachlan singing about angels.

All the communication in the world generated minimal action. Why? The diffusion of responsibility leaves nobody with a sense of urgency, which is why we experience internal resistance, even in top-down organizations.

"Do it for me, and I'll accept your suggestion."

Being required to negotiate ("beg" might be a better word?) with product engineers for a change, I heard the same refrain: "Do it for me, and I'm happy to accept the change." But how can I, as a small team member, "do the work" for everyone else?

It led me to an entirely different solution, one I wouldn't have imagined without "freedom and responsibility." It led to mass automated refactoring first with OpenRewrite, which some years later grew into a completely independent company Moderne.

How could other platform engineering functions similarly benefit from this crucible?

User Avatar

Jonathan Schneider 🚒

3y ago

Continuous innovations β€” ones that do not force a significant change of behavior by the customer

Crossing the Chasm is a classic enterprise product marketing book introducing a model called diffusion of innovations. In the book, Everett Rogers argues that for products that are designed around discontinuous innovations, there is a chasm between the early adopters of the product and the early majority. Furthermore, many early-stage companies do not survive the navigation of this chasm.

Category-defining products don't have to be discontinuous innovations.

I'm beginning to believe that with enough intentionality, there are ways of purposefully building businesses that introduce even category-defining products using continuous innovation instead. It requires careful planning and a system of aligned incentives from customers, partners, and your own team.

Case study: Continuously modernizing your source code.

Problem: My source code always falls behind the latest and greatest versions despite my best intentions to keep up.

Proposed solutions:

  • Discontinuous innovation: Build applications with Model Driven Architecture so different cartridges can rewrite the business logic from an abstraction (e.g., a UML-like diagram). Update the cartridge and you update all the apps at once.

  • Continuous innovation: Write code directly against a framework of choice, and write tooling to mass refactor the source code to either update to the latest version of that framework or migrate from one to another.

Case study: Software supply chain visibility.

Problem: I don't know what's running where, what versions each thing contains, and whether a particular code path is executable/exploitable.

Proposed solutions:

  • Discontinuous innovation: Rip and replace some set of steps of the software delivery lifecycle with a vertically integrated suite of products that communicate with each other to maintain visibility as software changes pass through the SDLC.

  • Continuous innovation: Leave the existing tools and components of the software delivery lifecycle in place, but emit enough data as a byproduct of these existing processes. This is the approach Moderne is taking.

User Avatar

Jonathan Schneider 🚒

3y ago

"The SDLC is a relay race between systems of record and automation."
Jonathan Schneider 🚒

Today I'd love to pull out something I heard years ago from the insightful Pat Johnson. You already know it, but you've never heard anybody articulate it so clearly!

My history with the SDLC

My first professional software development job was at Shelter Insurance in Columbia, MO. I inherited the additional duty of "deployer" from my friend Ben Johnson when I joined. "Deployers" were responsible for checking out source code at a particular commit, building it in Eclipse on their local workstations, and manually deploying it. Today, Shelter Insurance is super advanced in its SDLC practices, but such was the era.

Tooling connects this race in perfect alternation.

Wow, times have changed. Along came CI, build tooling, binary integration, artifact repositories, CD, testing automation, application monitoring, etc.

  • Source control (system of record)

  • CI (automation)

  • Artifact repository (system of record)

  • CD (automation)

  • Runtime (system of record)

No one company can own the race, nor should they

I'm deeply skeptical of any attempt to "own" the whole race. I think that the SDLC is a "business process of software delivery" (I first heard this from Olga Kundzich). The business processes that are attached to particular tools along this relay race are both complex and entrenched. Yet we crave end-to-end asset visibility. The winner of end-to-end asset visibility will work alongside the SDLC rather than seeking to replace it (though I think Sid Sijbrandij wouldn't agree).