At work, I have access to Github Copilot but it has a lot of guardrail. It is great to debug issues. Minor fixes and enhancement, it is useful. I mostly double check what it wrote and make sure it's code that I can read and understand. If it uses too many shortcut, I tell it to become more 'human readable'.
Now, I've been wanting to learn Python coming from Java and picked up Automate Boring Thing with Python Book. I'm looking at one its exercise which is to walk a tree directory. I can either memorize how its done in Python or just rely on LLM to write it.
Am I wasting time doing these exercises when they can easily be done with LLM within one or two shots? Because doing these exercise from scratch is very time consuming and I have to go back and forth to remember the syntax & libraries.
al_borland•2d ago
As far as Python goes, I think it depends on your goal. If you’re just trying to get something quick done, you can probably use an LLM. If you’re trying to learn something new and get a new skill, I think it’s worth going through it on your own. The examples might be easy for the LLM, but those are building blocks you’ll want so you can understand more complex things that the LLM might trip on.
I would also say, don’t try to memorize everything. You’ll always have access to reference material, LLM or not. So it’s more about understanding and the concepts and building blocks, not about memorizing the exact way a specific thing is done in the book.
I went through Automate the Boring Stuff several years ago. I went through the Excel stuff, but didn’t really commit it to memory. I just knew a year later that Python could solve my problem when it came up, and was able to find the stuff I needed and put it together. It also gave me some ideas on stuff I could do that I probably wouldn’t have thought to automate otherwise. So going though it can help get your brain asking the right questions, even if you ultimately use an LLM down the road. It will also help you write better prompts.
bawis•5h ago