python..

Programming, for all ages and all languages.
User avatar
aztex
Member
Member
Posts: 30
Joined: Sun Mar 02, 2008 8:15 am

python..

Post by aztex »

i have planned to read python .. is it useful..??
User avatar
JackScott
Member
Member
Posts: 1031
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Contact:

Post by JackScott »

I'm assuming you mean the Python programming language, and yes, it is very useful. It can be used for all sorts of tasks, from really small to really big.

I learned Python at computer camp, it was one of the best things I ever did.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Perl > Python.

Write your holy war/religious arguments here.
--------------------------------------------------------
User avatar
JackScott
Member
Member
Posts: 1031
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Contact:

Post by JackScott »

You are incorrect. That is all.
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

Post by Zenith »

Perl > Python
BLASPHEMY!!! :twisted:

Here's an interesting article with Eric Raymond's thoughts on Python vs. Perl: http://www.linuxjournal.com/article/3882 - and of course, Python wins. :wink:
"Sufficiently advanced stupidity is indistinguishable from malice."
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Perl > Python.

Write your holy war/religious arguments here.

You are incorrect. That is all.
In my opinion, no language is per se "better" than some other language.

I claim: INTERCAL > Python.

I also claim: Perl > Python.

I also claim: Python > Perl.

The only question is: What is the question? INTERCAL is the weirder language and highly entertaining in that regard. Python is the more modern language with a "cleaner" approach. Perl is the older language supported on more esoteric platforms.

The only stupid thing about languages is calling them names or getting into flamewars over them.
Every good solution is obvious once you've found it.
User avatar
zaleschiemilgabriel
Member
Member
Posts: 232
Joined: Mon Feb 04, 2008 3:58 am

Post by zaleschiemilgabriel »

assembly > everything :D
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

JamesM wrote:Perl > Python.
Are you suggesting perl is more bloated? :twisted:

*ducksandruns*
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

Could be.

Or I could be saying "I know Perl but no Python." (Which I intend to remedy next week.)

Or I could be saying "there are more people knowing Perl than Python", although I couldn't prove it.

Or I could be saying "there is a functional Perl interpreter for the Amiga platform, but no Python interpreter".

The point is, "better" is a very relative, very subjective thing.
Every good solution is obvious once you've found it.
asdx
Posts: 3
Joined: Sun Dec 30, 2007 7:10 pm

Post by asdx »

Ruby > Perl > Python
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post by 01000101 »

well, as I agree with Solar about the futility of flaming programming languages, I will just say this:

I intend to learn python very soon, as it seems to have alot to offer. I wish to add this to my language list as it cant hurt, and will maybe come in use one day. I know perl to a decent extent and like it, but it has its place. I would also someday like to learn ruby, but that is not much of a priority for me.
AdHawk
Posts: 19
Joined: Mon Mar 31, 2008 11:10 pm

Post by AdHawk »

You have to look at it knowing that Python is what people decided to make after realizing the shortcomings of PERL. Perl, which is sometimes given the "backranym" Practical Extraction and Report Language, is really not very useful for much other then just that. Its very good at what it was designed for, and bad at most everything else.

The argument for Python vs Perl is like starting an argument of PHP vs C#. They solve different problems and each have a specific task. Python has a larger scale of good ways it can be used, better syntax for editing, and lots of other features which would make you say "hey python is so much better then perl." And for most things it is, but that doesn't mean Perl doesn't have its place.
asdx
Posts: 3
Joined: Sun Dec 30, 2007 7:10 pm

Post by asdx »

I don't like Python's motto that much "there should be one—and preferably only one—obvious way to do it" and I don't like how it forces you to indent everything, even though code indentation is a good practice, but I dislike the force part, I think programmers/developers should always be able to choose how to do things (not everyone likes to do the same thing the same way).

I like Perl's philosophy more: "There's more than one way to do it.", I like freedom, it goes more with my way of thinking... this is also the philosophy that Ruby is based on.

Ruby for me is the best between the three, I like the fact that Ruby is based on OO entirely, everything in Ruby is an object, not just like in other languages where OO is an "add-on" of the language itself, I also like the fact that just about anything is an expression (eg if statements, blocks, etc). I like the way Ruby is designed and I also enjoy the syntax and the philosophy a lot more.

Sure, Python is a good language too... I just enjoy using Ruby more :-).
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Post by Solar »

See, it's the other way around for me - I prefer the Python motto over the Perl one. That is in part because, aside from programming being my hobby, it is also my job, and there I prefer if things are clear, consistent, repetitive, instead of trying to think my way through The Creative Way To Do This (tm), #1738.
Every good solution is obvious once you've found it.
User avatar
B.E
Member
Member
Posts: 275
Joined: Sat Oct 21, 2006 5:29 pm
Location: Brisbane Australia
Contact:

Post by B.E »

I'm not going to get into the whole language war (Languages are good at doing what they are designed for, e.g PHP is good for web content, but not good for OS Deving, C# is good for selling windows and not good for anything else).

I just did a quick look at how Python is (never got a change to look at Python before). I plan on learning it a bit further. One of the languages that I find useful and fun, is AWK. It's a very good language for processing text, but I would never use it for OS Deving.
Image
Microsoft: "let everyone run after us. We'll just INNOV~1"
Post Reply