Software engineering & AI
The Future of Software Engineering: Exploring the Capabilities of Chat GPT and Beyond — Part 2
Originally published on Medium on March 13, 2023. Read the original article.

You may say I’m a dreamer
As the world continues to embrace ChatGPT, there’s no doubt that the field of engineering is feeling the pressure to stay relevant. While generative AIs like ChatGPT aren’t quite ready to replace engineers just yet, the possibility of a future where they do is not as far-fetched as one might think. In fact, it’s inevitable.
So, why even allow robots to take over the engineering jobs? For starters, engineers themselves are constantly looking for ways to streamline and automate their often-repetitive work. At the same time, businesses often struggle with the cost of engineers and find it difficult to scale engineering productivity as the companies grow. And let’s not forget about society as a whole, which would greatly benefit from a productivity boost.
That’s where AI comes in. Imagine a world where all of these time-consuming and monotonous tasks are taken care of by machines that don’t need 1:1s, promotions or a raise.
The prediction of AI replacing engineers is further supported by the historical trend for software engineering as an occupation. Software engineering used to be an obscure field with a steep learning curve where one had to start early and spend formative years glued to computer terminals to become a skilled engineer. However, it has evolved into a more accessible career choice that can be pursued by anyone who is persistent enough. But the more people there are who do it, the more pressure there is to make it as simple as possible — to the point it’s as simple as just asking an AI to do engineering for you. It just makes economic sense.
But how would this transition actually happen? We couldn’t just simply swap out one human engineer for an AI counterpart and call it a day. The reality is that if we want to truly revolutionize the software engineering field, we’re going to need a complete overhaul of the entire Industrial R&D complex.
Let’s imagine first how it would look like at the end when we can say that software engineers as we know them are no longer needed. And we will work backwards from that future to build a causal chain of events that leads to it.
AI R&D as a Service
In the year 2043, the AIs, also known as avatars, are common and generally accepted as a norm. AI advanced to the point that it is indistinguishable from an adult human in all its cognitive functions (it remembers, learns in real time, has “theory of mind” for itself and others etc.) Creating AI avatars is a form of art in itself. Avatars are everywhere and seen as, depending on who you ask, as uplifted pets, soulless calculators, business assistants or romantic companions even, abominations or gods. Some countries ban AIs entirely, some others chose to be governed by an AI and proclaim that access to an AI avatar is a human right. Some people even create AI clones of themselves to live forever.
Creating and maintaining AIs is a complex industry — from the utility-like companies that provide information search and basic reasoning, to companies specializing in custom AIs trained for specific tasks.
Starting a high-tech business is much easier thanks to the emergence of R&D as a service to be done by AIs. Imagine wanting to sell lemonade or some other product or service, and realizing that automation could take your enterprise to the next level. Instead of investing in R&D and hiring a team of engineers, you simply engage with a company that offers AI R&D as a service.
All you need to do is write a detailed proposal outlining the requirements and constraints of your project. You can communicate with a human-like AI avatar or simply write it down in a letter. The AI will ask additional questions and make suggestions until the proposal is finalized. Then, the AI outputs a document in precise language describing the software system to be implemented, which will serve as the source of truth for other artifacts.
Once the fee is paid, the AI generates the source code for the solution, including infrastructure creation and deployment scripts. It provisions servers, creates software defined networks and databases, generates “low-level” source code in languages like Python or Java, compiles it, tests and deploys it — everything. The solution may include some assumptions and limitations, but nearly everything else can be customized.
The AI can even solve problems and suggest several solutions with trade-off analysis. It understands not only text or voice, but other sensory input as well, which becomes part of the specification that the AI generates.
Whenever it needs to interact with people, the AI could answer questions about the business domain, implementation details, suggest where to invest, generate documentation for employees on-boarding, and do project management for human teams, if they are still employed for whatever reason.
After the software solution is ready, it can be iterated upon, with the AI handling any necessary migrations between old and new implementations. The migrations are often the hardest projects engineers do.
In this future, an average business may no longer require software engineers, but rather rely on the capabilities of the human-free AI R&D service. This would be true for other R&D departments as well. AI R&D of the 21st century is the next qualitative step from Industrial R&D that institutionalized the division of human labor and shaped so much of what happened in the 20th century.
This all sounds crazy unreal, but so was the laptop I’m typing this on a hundred years ago. The intent to innovate in this direction is there and has always been. The only remaining question is how can we handle this future so we can ride the innovation wave rather than be smashed by it.
Let’s go back in time to the previous milestone that led to this world full of Artificial Intelligence.
Mechanical Men Inc.
In 2033, a little-known company called “Mechanical Men” made a bold decision. Its leadership realized that achieving their vision for their product would require research and development on a scale that was simply too big in terms of cost, complexity, and the number of engineers required. This led to the company becoming the first to not just use AI as a tool, but to place it in control of their entire business functions, including automating their R&D division.
While this may seem like a simple and straightforward decision in retrospect, the reality was undoubtedly more complex and messier. However, what’s significant is that for the first time, multiple AI systems would be combined and controlled by other AIs to work on higher-level goals.
For this to happen, several preconditions had to be met.
- Social-economic conditions for the business and government agencies where hiring is costly or restricted and the cost grows non-linearly with the organization size.
- Technological conditions where AI models achieve standardization, allowing them to form a network of AIs that work together.
This higher-level AI model would be responsible for the AI’s “consciousness”. For simplicity’s sake, let’s define consciousness as a simpler model of AI itself (“theory of mind”). Having a model of itself enables AI to use past events as input and to infer the future outcomes in the world with itself present. Implementing this sort of consciousness would be possible and even necessary for proper general AI. I think it would be pretty trivial but full implementation details are too large for this article :)
While this may sound too complex to even imagine, we have a working reference implementation in the form of the human brain. So far, there are no fundamental reasons why we can’t model it in software, as we do with other physical processes, from two atoms colliding to the Universe expanding. In fact, many of the complex behaviors we see in humans likely emerge from simple physical processes and algorithms.
My definition of emergence is subjective to the human brain. Emergence happens when a system transitions from one mental model to another. The emergent properties of AI would be in the eyes of humans, who would recognize patterns in AI behavior that they consider “intelligence” based on their mental models of intelligent behavior.
While I’m not qualified to speculate on how to advance AI models, I’m optimistic that it is achievable since the trend is clear. Although we might experience yet another “AI winter,” the vast number of resources we are putting into this, plus the common understanding that the payoff is tremendous, makes AGI (Artificial General Intelligence) a certainty. Although the brain is complex, it can be divided into simple systems, much like how complex code becomes simple when examined line by line in a debugger. We just need to implement fine enough tools to debug the brain to start replicating its neural network structures.
I intentionally did not address topics like ethics, laws, and copyright. I don’t believe they will significantly alter the trajectory of AI development. Even if we decide to ban AI, the desire to have it is already there, and everyone recognizes that progress in this direction is possible. There will be a first company and a first country to build AGI that is as capable as an average adult human, and it’s better be us.

Brave New World
So where does this leave us? If this future is inevitable, should we advise high school students today to stay away from Computer Science degrees?
While I, for one, welcome our AI overlords, I don’t believe that software engineers will be rendered obsolete. However, it’s likely that their roles will evolve, and they may no longer be doing tasks like writing CRUD Web UIs or writing unit tests.
Looking to the future, several potential divisions within software engineering could emerge. For instance, there could be engineers who specialize in training AI models for specific domains, such as Android mobile development or marketing research.
There will be engineers who work on preparing input data for AI models, which still requires some refinement. Other engineers will focus on implementing the output of AI models. The output, at least initially, might be subpar and would still require a human touch.
As long as we don’t have AI to autonomously obtain datasets, acquiring training data for AIs will become a significant field. I imagine software archaeologists digging through old code repositories, with all their revisions, to feed AIs new patterns.
There will also likely be engineers who specialize in debugging AI models, studying AI psychology, and deciphering the patterns it identifies. It won’t be all roses, and there will be bugs and issues within AIs themselves. So, implementing safeguards, security, and alignment is not something we should outsource to AI.
So, while software engineers will still exist in the future, their roles will be vastly different from what we know today. Just as we no longer punch cards, we will no longer write machine code directly. Instead, we will continue to solve problems using software but at a higher level of abstraction. There will be only a handful of engineers teaching AIs novel ways to learn and evolve. And just like that, software engineering will again become an obscure profession with a steep learning curve for people who are really into it, just like it used to be in the beginning.