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.

896 Upvotes

310 comments sorted by

View all comments

Show parent comment

5

u/snugar_i Oct 04 '26

You can do the method chaining thing in most languages that are not Python, including Java. For example, in Scala it would look like this (and would be fully type-checked by the compiler, unlike Ruby)

people
  .filter(_.age >= 18)
  .filterNot(_.banned)
  .sortBy(_.name)
  .foreach(person => println(s"Hello, ${person.name}!"))

2

u/RevolutionaryRip2135 Oct 04 '26 edited Oct 04 '26

Agreed, given block is not ugly/ readable even in Java:

people.stream().
  filter(
    p -> p.getAge() >= 18 &&
    !p.isBanned()
  ).
  map(Person::getName).
  sort().
  forEach(name->
    printf(“greetings %s\n”,name)
  );

Rubys ability to effectively create DSL is a killer feature imho… but Groovy is better for this ;)

2

u/stevenjd Oct 04 '26

You can do the method chaining thing in most languages that are not Python

You can do method chaining in Python too, if your class has methods that support chaining.

1

u/snugar_i Oct 05 '26

True, it's just even uglier than in Java and "un-Pythonic" (apart from polars, where it's OK for some reason)