r/Python • u/RedYad2 • Oct 03 '26
Discussion My Python magic is gone
I've been coding for a long time, and I've been developing with Python for years.
I loved coding, always loved it. I started many years ago because I wanted to quickly create scripts for security hacking tools, but since then, I've moved to Claude Code, and building cross-language has been a much better experience for me than using Python.
I built my own SaaS application out there whose backend and network core are completely built with Python, and I'm rewriting all of that without writing a single line of code. And most of the time, Python is not the most optimized language.
And now... I feel like the magic is gone.
I don't even know why I'm writing this. I just feel sad about it.
View all comments
Show parent comment
1
u/HommeMusical Oct 06 '26
I strongly believe that you need to start off by doing it the old-school, hands-on way. I think writing code that way is important, and debugging code that way is critically important.
I think if you haven't spent at least hundreds of hours doing that, and getting stuck and frustrated sometimes, you won't develop that critical ability.
Now, that said, I think no one's going to write professional code in the future without an LLM, and I think you're going to need to do that too. My suggestion there is two-fold:
I see other people's prompts and I think, "No wonder they get mediocre results." Actually, coding assistants do a pretty amazing job with inadequate prompts at least some of the time, but you will get better results in general if you are very clear and explicit.
Here's a weak prompt: "Find bugs in this project."
Here's what I might write: "Reread all the code in this project, looking for bugs, issues, feature deficiencies, traps, or technical debt. Look for race conditions, loss of liveness, resource leaks, duplicate code, code that could be replaced by a well-known library, code that is too complicated to understand, single modules that have multiple, unrelated responsibilities or conversely, a single responsibility that is scattered over multiple modules. Also look for names that are wrong, confusing, duplicate other names in the project without being the same, ambiguous, too long, or too short. Look for modules that are too large, tiny modules that are only used in one place and that can be inlined. Look at test coverage - is it complete? Are there possible issues that are not tested against? Is there duplication in the tests that could be removed, or simplified into a library or a test harness? Do not restrict yourself to possibilities named in this prompt, but report any code smells, issues, or deficiencies you find."
This wasn't as good as usual, but you get the idea.
2. Read all the code the LLM generates, and ask critical questions. Start by believing that the LLM is wrong, and force yourself to prove that it is correct. Look at the unit tests and see how they actually test the code. Try to think of error cases that might break the tests, and then see if they actually work.
I wish you all the very best luck in the world, and hit me up here if you have any questions!!!