Breaking down tasks into manageable modules for writing code

I would start with Effective Thinking Through Mathematics course. While not strictly related to the programming, it’s an amazing course on general problem solving.
It’s listed in P1xt’s webdev guide, you might want to head there and check the list for some additional resources.