Check this out, spaced repetition for learning how to code: https://www.youtube.com/watch?v=kshXDo8psj8
Essentially, every time you encounter friction with something you write it down in Anki.
Anki then takes care of presenting the information to you based on how well you're able to recall.
After confusing Array.prototype.slice() and Array.prototype.splice() one too many times, I finally added it to Anki. I don't confuse them anymore.
Couple weeks later after learning python, okay those take 5 minutes of human time to run. I made it a point to always automate regardless of time saved/wasted.
Paid off big for my career.
An example: Adding chamfers to cutting boards. Sure, this could be done with a 45 degree bit in the CNC, but any deviation in board width/height/thickness means reprogramming the machine, and you can chamfer with a palm router in the time it takes just to affix the board to the CNC.
The first time I used awk I struggled and probably took way longer than necessary, but the second time a similar task (process a bunch of columnar data and extract certain values) took no time.
Worth it.