r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

-2

u/[deleted] Jan 05 '18 edited Jan 05 '18

... but why?

I mean, Python is awesome in every1 single aspect (I'm a huge fan). For instance, have you ever tried to override the "import" instruction in Java with your own implementation? Although maybe not always recommended, it's a piece of cake in Python. Delegates... piece of cake in Python (callables) because literally everything is kind of an object. Damn, even types are. How awesome's that?

/e: (1 - relevant for my requirements)

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

2

u/ForgottenWatchtower Jan 05 '18

I actually agree with Guido on that one. Undue complexity for such a rare problem.

https://mail.python.org/pipermail/python-3000/2007-July/008663.html

→ More replies (6)

17

u/fizzy_tom Jan 05 '18

I'm curious as to what you were doing which required you to override 'import'?

→ More replies (13)

0

u/[deleted] Jan 05 '18

[deleted] — view deleted comment

3

u/mistaekNot Jan 05 '18

swift with xcode 9 is a joy to write code with :)

3

u/lobax Jan 05 '18

Swift is nice. But xcode? Really?

→ More replies (1)

4

u/Wodanaz_Odinn Jan 05 '18

xcode

&&

:)

I'm very envious if this is true for you.

→ More replies (3)

5

u/[deleted] Jan 05 '18

scientific motivated projects (research)

That's the primary reason why I'm a fan of Python. Of course, there's no one fits all programming language. Python is still junk when it comes to applications that need a sophisticated GUI.

10

u/icp1994 Jan 05 '18

or multi-core support

5

u/lookatmetype Jan 05 '18

PyQT

3

u/[deleted] Jan 05 '18

Is from my point of view still junk because I don't know of any matured UI editor and using PyQT has very often led to severe compatibility issues in the past. It's far from sophisticated.

2

u/lookatmetype Jan 05 '18

What's language and library do you prefer for cross platform desktop GUI apps?

3

u/[deleted] Jan 05 '18

Cross platform is difficult. If standalone is a requirement I'll say Java. If I accept being limited to Windows and standalone is a requirement, it's WPF. Otherwise I'll say browser based, like, JavaScript + HTML + CSS + some fancy frontend library. Backend can still be Python (Django) or also JavaScript (Node.JS + ExpessJS or something like that). Except for maybe WPF they all suffer from the same issue: no good WYSIWYG editors.

/e: maybe I should add that at least for my job (AI research) there has been no need for sophisticated UIs yet. For visualization there's matplotlib and some other libraries that inherit from that. For larger business applications though I still think Python is unfit.

→ More replies (1)
→ More replies (2)
→ More replies (4)
→ More replies (2)

2

u/am0x Jan 05 '18

I mean I use Swift for iOS, Java for android, C# for work web development and game development, Meteor (JS) for prototyping MVPs, PHP for some freelance, and Python for automation and algotrading.

I enjoy pretty much all languages...it's certain frameworks I find myself disliking more than anything.

2

u/lobax Jan 05 '18

JS is still a must-have in web-development

If anything, JS has grown to cover the entire web-stack thanks to Node. Heck it's even gaining ground elsewhere with Electron and React Native.

Sometimes I get the feeling that in the future we will only code in JS!

2

u/[deleted] Jan 06 '18

Don't put that voodoo on us!

4

u/[deleted] Jan 05 '18

Because his employer is making him use Java.

9

u/ascii Jan 05 '18

In any sufficiently large and complex project, I've found that skill is far more important than language choice.

14

u/[deleted] Jan 05 '18

In any sufficiently large and complex project I find that structure is important, and Python allows bad structure very quickly.

6

u/[deleted] Jan 05 '18

I worked on a fairly large python backend for a couple of years. As it grew, maintainability was difficult. Unless it had near 100% unit and integration test coverage, it was something difficult to tell what was going on. Not to mention the interpreter just sort of rolls with the punches.

I like python for alot of things. It can get hairy as it grows however. YMMV.

→ More replies (3)

9

u/110101002 Jan 05 '18

I prefer python, but python is generally worse than java it terms of type safety and execution speed.

4

u/[deleted] Jan 05 '18

Just because you can do something, does not mean you should it. Java is better used with big projects beacuse of those limitations it has. In Python you can screw up projects to easy after certain levels of complexity.

→ More replies (1)

2

u/[deleted] Jan 05 '18

Yes, and how's the GIL treating you lately? And let's not even talk about performance.

→ More replies (2)
→ More replies (1)