Imo you need to struggle to learn and make things click.
I don't see why even with Ai you won't need to have a solid understanding of the parts of computing programing is built on top of.
Even if your prompting, you need to know what to prompt for. How are you going to ask it to make it faster if you don't know it can be faster, or if you waste time on trying to make something faster that can't be?
Go through something like cs classes from MIT and do the work.