Join 86,269 Programmers. There are 1,870 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!
Hi ! I use both PHP and Python (hm, I'm still learning Python) ... 1) No one uses Python ? Here's the link http://wiki.python.org/moin/OrganizationsUsingPython Google, NASA ... need to say more ? 2) C style syntax ... I'm fan of this too, but Python syntax is much more friendly and complex Curly brackets - nooo xD 3) Why should you ? It's very useful, good designed language And it's fun to use it
This post has been edited by k0b13r: 9 Apr, 2008 - 04:40 AM
- no servers to maintain: You just upload your application, and it's ready to serve your users. - free domain name on the appspot.com domain - free account can use up to 500MB of persistent storage and enough CPU and bandwidth for about 5 million page views a month - automatic scaling and load balancing - APIs for authenticating users and sending email using Google Accounts - a fully featured local development environment that simulates Google App Engine on your computer - scalability and uptime guaranteed by Google!
Python + Django = Amazing web applications
This post has been edited by MitkOK: 9 Apr, 2008 - 07:36 AM
Thats a good question c0mrade, I started teaching myself Python about two months ago then put in on hold. There are lots of resources out there for python however I could never find anything on how to implement it in your web apps.
Personally I love the language and it has great potential, but I don't want to write console apps with it, I have a need to use it and can't figure out how to implement on my server to function with my web pages.
Oh yeah I have been following AppEngine. Curious as to how it will turn out, it seems like it could just be a glorified shared hosting setup - but then again it is google so I'll be watching it closely.
Btw AppEngine will support other languages... Python is just the first. (maybe because the python creator works for google?)
I see it's object oriented which is nice. Thats something I really hate about php. But ahhh I HATE whitespace rules!! Lol i'm going to have to learn it anyway..
But ahhh I HATE whitespace rules!! Lol i'm going to have to learn it anyway..
Hint, use tabs. It's easier to make all the little bits line up if it's only one character per indent. Plus you can set your visual insert as you like. It should be noted that some programmers insisted on spaces. When it comes to style, everyone is a critic.
Currently, for the most part, Python is not a class room language. Which is a pity, because it has a lot to recommed it as such. It's one of the languages bundled in the OLPC for the kids and the interpreter is amusing.
Yeah, my first impression of Python was that I was sitting in an "Introduction to programming" class.
I guess its not that bad of a thing..
I'm all for indenting in c, java, php, etc - but I hate the idea of protecting programmers from themselves. The language should always assume that the programmer knows what they are doing. If I want to put an if statement on one line, I should be allowed to!
For example.. getters and setters
java
public int getNum() {return this.num;} public void setNum(int num) {this.num = num;}
Anyway.. I'm going on again
Why are companies like google backing python instead of others like php and ruby?
This post has been edited by c0mrade: 9 Apr, 2008 - 10:11 AM
Because they like it more? That's really what most of these language choices come down to - do you like Python, PHP, Perl, C#, VB.Net, Ruby, or <language here>'s syntax better?
If you do, use that one. If you don't, use some other one.
I wish it was like that - but I cant only use the language I like the look of..
Anyway, I do like some parts of Python. Everything is an object which is nice - something I miss in php.
I'm a freelance web developer, currently the market is dominated by PHP. If the market decides to swing over to Python I have no choice but to learn Python..
I'm sure there are plenty of rails developers out there who have been forced to use php
I'm learning python anyway, going through code it seems like an interesting language. And Django looks like quality stuff.
I'm going to have to respectfully disagree with you on this one.
If you're doing freelance Web Development, what tools you use are your business. If you use ASP.Net/IIS, or you use the LAMP stack, or anything else, that's entirely up to you - because you can tell your customers what sort of platform they need to get for you to work with. In the case of people coming to you with pre-built systems they want you to work on that's not quite the case, but for new contracts you can do that. It doesn't really matter what "the market is dominated by", it only matters what you can produce using your tools. If you can produce amazing things in Python, the average client isn't going to look at you and go "oh, well, we kind of wanted a PHP guy...". They'll just hire you.
</rant>
This post has been edited by girasquid: 10 Apr, 2008 - 07:32 AM