Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 16th, 2006, 7:44 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
what a surprise
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 16th, 2006, 7:57 PM   #12
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Since quite a number of the Python eggheads, including GVR himself, are gainfully employed by Google, and Google gives a lot of support to Python development, it is not surprising to see all the effort in the direction of RAD. Wow, this was one of the longer sentences I ever wrote!
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Nov 17th, 2006, 5:06 AM   #13
Mocker
Hobbyist Programmer
 
Mocker's Avatar
 
Join Date: Oct 2005
Location: Indiana
Posts: 223
Rep Power: 0 Mocker is an unknown quantity at this point
Send a message via AIM to Mocker
I just started getting into python and find it very easy to pick up, probably one of the easiest languages I've looked at . The only questions I've had to get help with were basically converting what I want to do from c++/php -> python (arrays/assoc array-> arrays/linked lists-> lists/dicts) and the way it handles most everything as a reference by default, which takes some getting used to. Also, I hate the space/tab requirements in the syntax, even though it makes the code easier to read
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi
freelance scripts - http://ryanguthrie.com/index.html
Mocker is offline   Reply With Quote
Old Nov 17th, 2006, 6:41 AM   #14
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by DaWei View Post
I think you might agree that some of the forms of some of the abstractions (generators, etc.) approach obscurity without resulting in leaner code or clearer thought.
That's true. On the one hand, list comprehensions can result in clearer code:
python Syntax (Toggle Plain Text)
  1. # Without
  2. urls = []
  3. for tag in soup.fetch_all("a"):
  4. urls.append(tag['href'])
  5.  
  6. # With
  7. urls = [tag['href'] for tag in soup.fetch_all("a")]
On the other hand...
python Syntax (Toggle Plain Text)
  1. def q(s):
  2. if len(s)<=1:return s
  3. return q([l for l in s[1:] if l<s[0]])+[s[0]]+q([g for g in s[1:] if g>=s[0]])
Arevos is offline   Reply With Quote
Old Nov 17th, 2006, 9:43 AM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Yes. Nevertheless, I'm still quite enamored of the language. I also find it to be faster than PHP. That's based upon a single observation, the generation of the Basic Patterns tree for the tictactoe game, but it was clearly the case in that instance.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 17th, 2006, 2:33 PM   #16
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Actually, I love the abstractions that Python provides to the more inquisitive mind. List comprehensions, generators, generator expressions, lambda, functional and meta programming are charming concepts that strike fear into the heart of the C/C++ crowd.
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Old Nov 17th, 2006, 3:28 PM   #17
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Hm. I don't know about that, Dietrich. You can do some very complex voodoo with templates in C++; just look at the Boost libraries.

And if you want something really complex, I'd recommend trying to learn Haskell. It really is on a whole other level.
Arevos is offline   Reply With Quote
Old Nov 17th, 2006, 4:53 PM   #18
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Fear? I'm thinking you must know a different C/C++ crowd (teens?) than I do....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Nov 18th, 2006, 11:28 AM   #19
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Quote:
Originally Posted by Dietrich View Post
strike fear into the heart of the C/C++ crowd.
Have you actually seen the Boost MPL library? I wouldn't call it fear, mostly joy. That's what so great about python its a dynamic language that doesn't shackle you like Java.
Game_Ender is offline   Reply With Quote
Old Nov 18th, 2006, 11:52 AM   #20
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
On further reflection, I must confess that I considered that an utterly stupid statement, even lamer than the original post. A head where the sun don't shine isn't looking around at the real world.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[tutorial] Python for programming beginners coldDeath Python 30 Dec 14th, 2005 12:35 PM
If you want to learn Python or improve your Python skills coldDeath Python 2 Nov 23rd, 2005 1:27 AM
Convert Python script to C++ code clanotheduck Python 17 Sep 25th, 2005 9:55 AM
Advanced Python Tricks Arevos Python 19 Sep 24th, 2005 8:39 AM
Python - A Programmers Introduction coldDeath Python 17 Aug 19th, 2005 1:41 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:38 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC