> Got another programming job. Got fired for "performance." I think the reason wasn’t good, but I also have a hard time building a theory of mind, which means I can’t read code written by others.
If you can't read code written by others, that's going to be a big concern for companies that require you to read and modify other people's code.
Perhaps you need to be a contractor, not an employee.