For The Young Lady CEO: An Important Solution To An Artificial Intelligence Programming Problem
It is always nice to start on the right foot, Here is how to keep track of AI generated code.
You should use a FRIENDLY programming framework, Designed to keep things separated and thus clear.
And let me just say, You already know this framework.
In the age of Artificial Intelligence, This can't just mean: more code.
The popular Model, View, Controller for example, splits concerns, but they are no longer your concerns.
The AI is doing all the programming now, So MVC does not do anything for you.
You need to use higher level frameworks, Which are also wonderfully less confusing.
I will give you examples, now, I want this gift to be valuable.
But let me remind you, that your applications need memory: called application state.
And they need commands, to operate on that state, And because commands give you UNDO/REDO for free.
If AI ever forgets this, You just say:
Now make it UNDO/REDO compatible, By using our command system.
And the AI will not be confused, About what this means.
It will introduce EventSourcing, Logs, snapshots, replay, undo, redo.
Now onto the frameworks, A framework must represent something you are already familiar with.
To give you a very high level example, to manage a gym, The AI would create a virtual gym with all the equipment in it.
This example does not show you how to keep your code well organized, This is just an example of a high level framework.
Each piece of equipment including bathroom sinks, would have a decay value.
To when it needs cleaning, a checkup, a test.
To replace the Rack #1 dumbbells, Marked as defective, your program does not need much programming at all.
In fact, if you ask your AI to create a symbolic 3D representation, You can get a view of all equipment with items nearing replacement in yellow.
And things needing immediate attention in red, An equipment manufacturer can do this for all gyms, for example.
To keep track of your code however, You may not need 3D simulations.
Example #1, The hardest one - based on operating systems.
State can be represented as a file-system of files and directories, And commands... as commands.
You now create a larger file system with user accounts and files, And plug in the application state into it.
And now you create a file manger, And you can see everything graphically.
Where is the code AI generates, Inside stand-alone commands that operate on the file-system tree.
If you like low level stuff, Or want to learn about it...
Please experiment with simulated server networks, Connecting API endpoints and mounting apps in express like setups.
Example #2, The most interesting one - based on computer games.
Instead of Directories and Files to represent your state, You use well described objects.
Your user's permissions, Are a stamp inside a passport, that they carry in their inventory.
Commands are replaced with non-playable-characters, Siri, Calo, hubot, chatty game npc are a good example of that.
At any point, your agents can be taken over by an LLM, of course, So you can built your world inside out.
You use Business Process Management, To create powerful politics for the world.
Example #3, The beefy one - simulate everything.
You start your application editor, And what you see is one of the many virtual desktops form your world.
There are humanoid agents who send emails, Some use conventional programming, some GOFAI (good old fashioned AI), some LLM.
And whatever else you need, Including a globe with GPS coordinates and Zip Codes, and Gyms and Oceans with fish.
This example simply has a pocket for all your code, And can contain all other worlds.
In summary, AI is doing all your programming, It can be scary, and confusing.
But at the same time, AI is doing all your programming, Get it to program a code harness - don't be scared to dream big.