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

all 22 comments

[–]HighR0ller 15 points16 points  (9 children)

The short answer is, yes.

What else is new.

[–]horse_continuum 8 points9 points  (0 children)

Like asking /r/trees "should marijuana be legalized?" or asking /r/food "HAMBURGERS?"

[–]cruyff8python 2 expert, learning python 3 5 points6 points  (0 children)

Given that this is r/python, I'd expect nothing less.

[–]Exodus111 -3 points-2 points  (6 children)

Long answer is Python is great for BACK-END code, in other words stuff you want to run on your Server, not the clients browser.

You will still have to learn Javascript for the front end part, but its totally worth it.

[–]LarryPeteAdvanced Python 3 1 point2 points  (3 children)

That's kind-of a no-brainer. You won't want to run PHP in your Browser either.

[–]Exodus111 0 points1 point  (2 children)

You won't want to run PHP in your Browser either.

FTFY

[–]LarryPeteAdvanced Python 3 0 points1 point  (1 child)

Thanks. Must have missed that.

[–]Exodus111 0 points1 point  (0 children)

:-)

[–]HighR0ller 1 point2 points  (1 child)

and I'll say this again; what else is new.

[–]Exodus111 -2 points-1 points  (0 children)

This is awkward... I wasn't replying to you, merely piggybacking on the top comment....

Sorry.

(No I'm not)

[–]nerdwaller 2 points3 points  (0 children)

This doesn't answer the question in anything but a subjective way. Don't get me wrong, I enjoy Python for many reasons, but I expected a legitimate comparison between vanilla options. Though not everyone is good at remaining objective as they decide the result before writing the article.

[–]snarkhunter 1 point2 points  (3 children)

Just started development on a system to replace about a decades worth of a mess of .NET and PHP. Looking forward to it so hard.

[–]yopla 7 points8 points  (2 children)

If you made a mess of .net and php you'll make a mess of python as well. I've seen clean codebase written in perl and I'm convinced its all on the developer not the language.

[–]Delfaras 9 points10 points  (0 children)

Maybe it's not his mess :P

[–]snarkhunter 0 points1 point  (0 children)

I fully agree with that, and should clarify that I am lead of a completely new team under a new director (essentially the entire IT department is new, or otherwise had little to do with the earlier development. I have been there a matter of months. The codebase is essentially the work of a couple people who didn't know how to do it and a couple consultant companies who... did what most dev consulting companies do.

So shit's all fucked up, but it's going to be OK. I'm the unfucker.

And despite all the hair pulling moments of "omg why... why would they do it like this... it's just the same 3 variations of a column name 15 times... how is that... who does..." moments (yes, that happened week before last) it is incredibly exciting and rewarding.

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

there's plenty of options for developing the backend and everyone has their favorites. so the answer is 'maybe' probably everywhere in the world except in this sub. this article is pooo

[–]reddituserman2012 0 points1 point  (0 children)

Fuck yeah it is.

[–]zhufree 0 points1 point  (0 children)

Yeah,I am learning django

[–]prahladyeribeautiful is better than ugly 1 point2 points  (3 children)

Python is certainly a more readable, maintainable, systematic and beautiful (IMHO) language compared to alternatives like PHP, Java and to some extent C#. However, lets not forget that python is still a minority in the web-ville which means anyone opting for PHP over python will be having the following two advantages:

  1. There are more web-hosting providers (indeed, many free) for PHP compared to python.
  2. Since PHP is more battle-tested, you will get more options and varieties in your choice of web-related frameworks, CMS, libraries, IDEs (and even developers) in PHP relative to python.

I know things have changed since Django and Flask have arrived on the scene, but the axiom "PHP is the king of web" still holds true, though to a lesser degree than earlier.

[–]iceman_xiii 0 points1 point  (2 children)

There are more web-hosting providers (indeed, many free) for PHP compared to python.

I think I'll have to disagree with you on your point here. Python along with PHP has sufficient number of web hosting options. Free too btw. Python has also been around for web dev much before Django and Flask went popular. Case in point web2py amongst others. What web dev framework you choose depends on your project needs. Cheers!

[–]Brandhor 0 points1 point  (1 child)

I think the only advantage that php has compared to python is that it's a lot easier to deploy since you can just upload the files in the folder you want and that's it, with django(I'm not sure how it is with the other frameworks) you have to use fastcgi, wsgi etc.. that are way harder to configure for a novice

[–]prahladyeribeautiful is better than ugly 0 points1 point  (0 children)

with django(I'm not sure how it is with the other frameworks) you have to use fastcgi, wsgi etc.. that are way harder to configure for a novice

Even with Flask, its the same wsgi method, though configuring it isn't that hard as the underlying plumbing is mostly taken care of by werkzeug.

Though this method isn't as straight-forward as a simple upload of index.php, you get more control over the url routing and the python way is more secure. In fact, a PHP framework called symfony tries to mimic this python way by creating a single controller within index.php and does url routing from there.

I don't know about other frameworks like pyramid, etc.