I'm reading Refactoring, but some of the detailed steps feel like things AI could do much faster. Is it still worth studying books like this, or should I focus on something else?
Are programming books still worth reading when AI can refactor code?
Answers
Yes, but you don't need to memorize every mechanical step. Focus on why a change helps, what behavior needs to stay the same, and what tradeoffs it introduces. AI can suggest a transformation, but you still need to judge whether it fits the code and check that it didn't break anything.
Try taking an example from the book, predicting the change yourself, then comparing it with an AI suggestion. Tests can help check behavior, though passing tests only cover the cases they actually exercise.
Reply to this answer
I'd put more reading time into fundamentals and system design than long syntax or framework manuals. A book can build a connected understanding that a series of quick answers might not give you.
For example, generating a binary tree is different from knowing when that structure is a good choice. Designing Data-Intensive Applications is one option if you're interested in how larger data systems are designed.
Reply to this answer
Skimming the step by step parts sounds reasonable to me. Automated refactoring tools existed before AI, so the mechanics aren't necessarily the best use of your reading time. The useful bit may be recognizing a problem in the code and choosing whether a particular change is worth making.
Reply to this answer
Books aren't the only way to learn this stuff. If the format isn't working for you, combine a few chapters with practice on actual code, and use AI to explain alternatives or help you get unstuck. You still need enough understanding to spot an answer that looks convincing but is wrong or unnecessarily complicated.
Reply to this answer
Add your answer
Answers are reviewed before publication.
6p!ferrulewicket_382:
And when the tool proposes a change, asking it for an explanation isn't quite the same as verifying the explanation. Check the code and the relevant behavior too.