Basically, spaghetti code is code that is poorly written or implemented.
Most of the time, companies can use newer technologies to replace or fix this bad code, but if the spaghetti code is still needed or in use, then it becomes too difficult or expensive to fix. So we end up with old, badly written and inefficient code and are stuck with it indefinitely.
Good example here being Windows. Some programs from over 20 years ago will still run on Windows 11, many companies rely on these older programs and Microsoft knows this. However, the systems written to allow these programs to run in Windows is usually seen as being bad code since it lacks a lot of the modern techniques programmers use to make things easier to work with and maintain over time. But these old systems cannot be changed or updated since they will then not work with those 20 year old programs that many companies rely on.
Sadly exactly that is the reason that windows is just a bunch of spaghetti code XD
microsoft has tried to move everyone to a modern framework only. when they successfully have a win32/x86 emulator runnong smoothly they will gut a lot
And yet, Linux tools are even older and the kernel better written than either Windows or OSX.
Before flatpak Linux backwards compatibility was rough.
Do you have a source for the second half of your statement?
What is spaghetti code? (Sorry am non coder)
Basically, spaghetti code is code that is poorly written or implemented.
Most of the time, companies can use newer technologies to replace or fix this bad code, but if the spaghetti code is still needed or in use, then it becomes too difficult or expensive to fix. So we end up with old, badly written and inefficient code and are stuck with it indefinitely.
Good example here being Windows. Some programs from over 20 years ago will still run on Windows 11, many companies rely on these older programs and Microsoft knows this. However, the systems written to allow these programs to run in Windows is usually seen as being bad code since it lacks a lot of the modern techniques programmers use to make things easier to work with and maintain over time. But these old systems cannot be changed or updated since they will then not work with those 20 year old programs that many companies rely on.