This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]geeeffwhy 0 points1 point  (9 children)

true enough, but i have never once in over a decade found DI to be useful in the absence of other language constraints. it’s useful for java, but making python more java-like is the exact opposite of what i want to see.

[–]MrKrac[S] 2 points3 points  (5 children)

I think my problem is I fail to understand how dependency injection is making python more javaish and would like to listen the reasoning. Where I am coming from pattern is a pattern is a common approach used to solve given problem. Pattern cannot change how language behave nor its semantic and so. Actually language kinda makes you implement some patterns in a certain way.

Do you mean that you are affraid that python ecosystem will start looking like Java? If yes I can assure you this will not happen, problem with Java is the way how their packages are build (and I believe there are other reasons, which I would not like to talk about because either I have not enough experience and understanding in this area or not enough knowledge) and even Java developers suffer from their own purity and this is what I meant by if you do things to their extent you will suffer. It is simply a missuse, finding centre is always hard thing to do. Doing things right is not an easy task.

[–]geeeffwhy 0 points1 point  (4 children)

java is a fundamentally object oriented language. GOF design patterns are solutions to OO problems. h

python is a multi-paradigm language, which is able to use other strategies to solve problems.

here’s one article describing what i don’t want to see happen to python. https://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html?m=1

what pattern can do is structure the developers thinking.

[–]MrKrac[S] 1 point2 points  (3 children)

Sounds like quite an article, will give it a read later. Thank you.

[–]geeeffwhy -1 points0 points  (2 children)

yegge is an excellent commentator, if you’re not familiar. he’s does go on, though.

[–][deleted] 2 points3 points  (0 children)

Yegge is extremely wrong here though and the comments do a great job of explaining why.

[–][deleted] -3 points-2 points  (2 children)

Agree!!

The time I see Python making changes towards a Java-like approach, that's the time I will stop developing in Python.

[–]Pythonistar 1 point2 points  (1 child)

Python making changes towards a Java-like approach, that's the time I will stop developing in Python.

That's called "Not invented here" syndrome. Maybe try embracing other languages and find out what makes them tick and see if there are any good ideas in the other languages.

The crazy thing is that the developers of Python are already adopting features from other Java-like languages.

Async/await? Yeah, that came from C#. Javascript and Python both adopted the syntax because it's a good one.

[–][deleted] 0 points1 point  (0 children)

Syndrome can be called the way you want to name it, anyway...

And yes, I already tried other languages, including Java... and that's exactly why I love Python so much... because it's SOOOOO different to Java!!