homepage Welcome to WebmasterWorld Guest from 107.20.34.144
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

    
Python. worth learning?
beakertrail

10+ Year Member



 
Msg#: 3139102 posted 8:58 pm on Oct 29, 2006 (gmt 0)

a friend told me last night he intends learning a programming language and was recommended to learn Python so he can do more advanced than HTML things on websites.

I suggested PHP or failing that ASP but he seems set on Python.

I know virtually nothing about Python. Is this something he should learn or is it a dead-end road?

 

moltar

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3139102 posted 10:33 pm on Oct 29, 2006 (gmt 0)

Python is a good language, not as wide spread as php though. I guess it's like a niche market :)

Is this something he should learn or is it a dead-end road?

It's hard to say without knowing his intentions.

Leosghost

WebmasterWorld Senior Member leosghost us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3139102 posted 10:58 pm on Oct 29, 2006 (gmt 0)

yes

ahmedtheking

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3139102 posted 12:07 am on Oct 30, 2006 (gmt 0)

I agree! Along with PHP, ASP.NET, JSP and Rails (with that Ruby too)!

fstanley

5+ Year Member



 
Msg#: 3139102 posted 11:41 pm on Nov 13, 2006 (gmt 0)

Sure, stay away from ASP since it has too many extras and additions that have been added over time.

jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3139102 posted 12:41 am on Nov 14, 2006 (gmt 0)

Depends on what his intention is.

I think it would be well worth learning Python, Ruby, or both, to anyone who is plotting a long-term future in web development.

Of the languages mentioned, the most popular - PHP - is the dead-end language, IMO. It's today's Basic. We *needed* a language to bring back spaghetti-code!

My preference of the two is Ruby. Looked at Python, and don't like all those underscores. ;) In all fairness, haven't scratched the surface of Python, beyond a few hacks to some Karamba widgets.

Both are certainly niches for now, but one of them is likely to ultimately become the most-used language for web development.

Both are so much more rational than the languages that have come before them.

I've been programming for 30 years - assember, Fortran, Snobol, PL1, PL/M, Trac, C, Forth, C++, Perl, Javascript. Probably more C++ than anything else. Don't have a clothes-pin (for my nose) big enough to learn PHP, so I'm learning Ruby.

Of all of these, my favorite so far has to have been Perl (with Snobol a strong second - but only within the domain it was intended for - text processing - and for it's timeframe), but my new favorite is Ruby.

bird

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3139102 posted 8:46 am on Nov 14, 2006 (gmt 0)

Python is the language that gets the least into the way of my thinking. It's the one where you don't need to waste time with your tool, but can instead fully concentrate on the conceptual questions. Most other languages require that you pay some attention to them as well, to get around syntax quirks and other obstacles. In contrast, Python just does what you expect it to do most of the time, even if you're not a language expert.

In other words: Highly recommended if you don't care what "everybody else" uses, but simply want to get your work done in the most efficient way. I don't use anything else if I can avoid it.

moltar

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3139102 posted 3:35 pm on Nov 14, 2006 (gmt 0)

Both are certainly niches for now, but one of them is likely to ultimately become the most-used language for web development.

A bit OT, but I think Perl has a big come-back when the Parrot is finally released.

jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3139102 posted 4:27 pm on Nov 14, 2006 (gmt 0)

The problem with Perl is both legacy code and legacy coding habits. I think, unfortunately, PHP5 may offer us a glimpse of the future of Perl 6.

The nice thing about both Python and Ruby is that they were born without a lot of bad habits.

The PHP case is a shame - as a modern language, it didn't have to turn out the way it has. It's had to evolve away from the bad habits of it's youth.

While this is understandable, given PHP's and Ruby's relative history's (I'm not familiar with Python's) and PHP's viral growth, it doesn't excuse it.

PHP started as a hack to templatize one person's web site. Ruby started with a desire to create an ideal, all-purpose programming language. PHP took off quickly before it was ready for prime time. Ruby had the luxury of baking in obscurity for a while while it matured. Most really bad Ruby code is probably written in Japanese, and we are unlikely to encounter it.

moltar

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3139102 posted 11:13 pm on Nov 14, 2006 (gmt 0)

I think, unfortunately, PHP5 may offer us a glimpse of the future of Perl 6.

Actually, I think Perl6 is becoming more like Ruby and Python. It's fully OO and type'd language. Also you can call methods on anything, even literals, e.g. "string".length or $var.length, %hash.keys, etc...

jtara

WebmasterWorld Senior Member jtara us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3139102 posted 11:49 pm on Nov 14, 2006 (gmt 0)

Actually, I think Perl6 is becoming more like Ruby and Python

Yes, that is true.

What I meant, though, is that Perl 6 will suffer from legacy code and legacy coding practices from it's dark past.

PHP5 suffers from coding practices left-over from earlier versions. PHP5 isn't all bad - but most PHP code today was written for PHP4.

Better to use a newer language that doesn't have a dark past.

OTOH, Perl has a huge installed base (though not as big as PHP), huge number of good-quality packages, and with Perl6 will be on it's second byte-code interpreter. They're still working on the first one for Ruby.

Dannt

5+ Year Member



 
Msg#: 3139102 posted 12:52 pm on Nov 16, 2006 (gmt 0)

I suggest you to have a look at this article, there you will find some reasons why Python is a language worth learning.

[linuxjournal.com...]

Cheers

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved