r/Python • • 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.

897 Upvotes

310 comments sorted by

View all comments

16

u/FunkyMonkey237 Oct 03 '26 edited Oct 04 '26

I go through phases of this.

When I use the AI to write the vast majority of the code I feel crap. I don't fully understand how the code works, the quality of the code is often sup-par and I get in this ping pong with the AI where it gets stuck and makes poor changes. And any review I do tends to slow down progress/the code production outstrips what I can review.

But recently I worked on a project I wasn't happy letting the AI do unattended, I didn't trust it would do a good enough job and the project was important. So instead of asking for the final output, I would talk about a competent that needed to be built, ask it what data structures it would use and the control flow (function calls). I would then change that to be exactly what I wanted and then let it off. I'd then do a line by line review and generally change it around a bit simplifying, cleaning and correcting the code (mix of prompts and typing), now I was in control and the code/logic was solid so I felt pretty good about it. I didn't care that I wasn't typing every line and I was thrilled to zipping along way faster than ever before.

0

u/[deleted] Oct 04 '26

[deleted]

2

u/HommeMusical Oct 04 '26

However, if it's your core product it should be understandable and understood enough to be developed by humans in order for the core product to be deterministic.

Only a tiny portion of bugs involve indeterministic behavior, though. And why would AIs be more likely to put indeterministic behavior than a person?

If people are not reading the code then why not just get chat to write in assembler?

Because coding assistants do a better job in Python, because it is higher level and has types.

Because while we have stopped reading all of the code, we certainly read some of the code, and a lot of that is either data class or function definitions, if we do it in Python, which are easily read.

→ More replies (13)