Welcome to Dream.In.Code
Getting Help is Easy!

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!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Whats With Python?

2 Pages V  1 2 >  
Reply to this topicStart new topic

Whats With Python?

c0mrade
post 8 Apr, 2008 - 09:59 PM
Post #1


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82



So.. Python seems to be getting some attention lately, and as I don't actually know anyone who uses it - i'd like to know, whats with python?

Specifically, I'm mainly a PHP developer so I'd love to here from someone who uses both.

My first impressions of the language were not exactly great.. I'd not a fan of the syntax, it reminds me of vb6.. I'm more of a c style fan.

Anyway, enough rambling. Convince me Python evangelists, why should I learn Python?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


k0b13r
post 9 Apr, 2008 - 04:39 AM
Post #2


D.I.C Head

Group Icon
Joined: 18 Jul, 2006
Posts: 180

Hi ! I use both PHP and Python (hm, I'm still learning Python) ...
1) No one uses Python ? biggrin.gif Here's the link wink2.gif
http://wiki.python.org/moin/OrganizationsUsingPython
Google, NASA ... need to say more ? biggrin.gif
2) C style syntax ... I'm fan of this too, but Python syntax is much more friendly and complex smile.gif Curly brackets - nooo xD
3) Why should you ? It's very useful, good designed language biggrin.gif
And it's fun to use it biggrin.gif

This post has been edited by k0b13r: 9 Apr, 2008 - 04:40 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

MitkOK
post 9 Apr, 2008 - 07:33 AM
Post #3


D.I.C Head

Group Icon
Joined: 9 Aug, 2007
Posts: 102

Python is absolutelly brilliant scripting language.

While talking about Google using it -> http://code.google.com/appengine/docs/what...eappengine.html

Google AppEngine :

- 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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

c0mrade
post 9 Apr, 2008 - 07:41 AM
Post #4


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82

Sorry when I said I dont know anyone who uses it, I was talking about me not personally knowing a python programmer.

What got me interested in it is the fact that so many organizations seem to love it - google adores it, so does ubuntu for us linux fans

What does it do well? What does it do not so well?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Nykc
post 9 Apr, 2008 - 07:44 AM
Post #5


DIC == Huge!

Group Icon
Joined: 14 Sep, 2007
Posts: 2,293

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.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

c0mrade
post 9 Apr, 2008 - 07:47 AM
Post #6


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82

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..
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

baavgai
post 9 Apr, 2008 - 09:27 AM
Post #7


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,077

QUOTE(c0mrade @ 9 Apr, 2008 - 10:47 AM) *

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

c0mrade
post 9 Apr, 2008 - 10:09 AM
Post #8


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

girasquid
post 9 Apr, 2008 - 10:54 AM
Post #9


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

c0mrade
post 9 Apr, 2008 - 03:05 PM
Post #10


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82

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 smile.gif

I'm learning python anyway, going through code it seems like an interesting language. And Django looks like quality stuff.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

girasquid
post 9 Apr, 2008 - 03:21 PM
Post #11


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 953

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

c0mrade
post 9 Apr, 2008 - 09:42 PM
Post #12


D.I.C Head

**
Joined: 16 Nov, 2007
Posts: 82

Well this is not really the place for that discussion.

I do a lot of outsourced work for companies, freelance isn't always for one client who knows nothing about web development but just wants a site.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 10:30AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month