I was a kid when cars started switching from carburetors and distributors to throttle body fuel injection, and then to port fuel injection, and there was a lot of complaint and gnashing of teeth that mechanics wouldn't be able to fix cars anymore because of all the computers.
That was well over 30 years ago now, and for $12 I can get a doodad that will work with my phone to tell me what the trouble code means.
Of course that's just part of it, you've got to dive in and figure out what is causing the code to be set instead of throwing parts at it, but having to diagnose problems is part of repairing anything ever.