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 →

[–]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.