Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Apr 7th, 2005, 10:40 AM   #11
Yuneek
Programmer
 
Yuneek's Avatar
 
Join Date: Mar 2005
Location: Florida, US
Posts: 35
Rep Power: 0 Yuneek is on a distinguished road
Cerulean: I too was planning to learn C++, but now that you mentioned Python, I have a few questions...

Which is more popular?
Which is more powerful?
Which is easier to pick up?

Regards,
Yuneek
Yuneek is offline   Reply With Quote
Old Apr 7th, 2005, 11:12 AM   #12
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 435
Rep Power: 4 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
Quote:
Originally Posted by Yuneek
Cerulean: I too was planning to learn C++, but now that you mentioned Python, I have a few questions...

Which is more popular?
Which is more powerful?
Which is easier to pick up?

Regards,
Yuneek
1. C++, based purely on age. Python is really on the move up.

2. I'd have to say C++ also. But I truly don't know the full capabilities of Python.

3. Python, definitely. Very easy to pick up, unlike C++ which can be a bit cryptic. Plus Python's a smaller language, so obviously there's less to have to pick up.
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Apr 7th, 2005, 11:13 AM   #13
Yuneek
Programmer
 
Yuneek's Avatar
 
Join Date: Mar 2005
Location: Florida, US
Posts: 35
Rep Power: 0 Yuneek is on a distinguished road
Quote:
Originally Posted by peace_of_mind
1. C++, based purely on age. Python is really on the move up.

2. I'd have to say C++ also. But I truly don't know the full capabilities of Python.

3. Python, definitely. Very easy to pick up, unlike C++ which can be a bit cryptic. Plus Python's a smaller language, so obviously there's less to have to pick up.
Thanks POM.
Yuneek is offline   Reply With Quote
Old Apr 7th, 2005, 11:19 AM   #14
peace_of_mind
Professional Programmer
 
peace_of_mind's Avatar
 
Join Date: Sep 2004
Location: Hell if I know most of the time
Posts: 435
Rep Power: 4 peace_of_mind is on a distinguished road
Send a message via MSN to peace_of_mind Send a message via Yahoo to peace_of_mind
No, thank you. I just talked myself into focusing on Python, instead of debating between C/C++/C#. What the hell. *Dives headfirst into Python docs*
__________________
Amateurs built the ark
Professionals built the Titanic

peace_of_mind is offline   Reply With Quote
Old Apr 7th, 2005, 11:38 AM   #15
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Cerulean: I too was planning to learn C++, but now that you mentioned Python, I have a few questions...

Which is more popular?
Which is more powerful?
Which is easier to pick up?
1. More people know C++ as it has been around for longer. This does not mean there aren't resources for Python available. Python has a huge, active community, all trying to get you to use that wonderful language.

2. Well, depends on how you mean. If, by power, you mean raw access to the os and the like, then i'd have to say C++. On the other hand i'd say Python gives you more power. My personal favourite is the downloading of a webpage, using nothing but the standard Python library:
import urllib
webpage = urllib.urlopen("http://foo.com/index.htm").read()
Anyone comprehend doing that in C++ in under 20 lines? That looks like power to me. The fact that it is so high level is powerful, and the fact that C++ is so low level is powerful.

3. Python, without a shadow of a doubt.
Cerulean is offline   Reply With Quote
Old Apr 7th, 2005, 1:14 PM   #16
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,453
Rep Power: 7 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
I guess i'll brush up on my python now... i have been influenced by my peers. lol
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 7th, 2005, 1:58 PM   #17
codetaino
Programmer
 
codetaino's Avatar
 
Join Date: Jan 2005
Location: Bayamon, Puerto Rico
Posts: 71
Rep Power: 4 codetaino is on a distinguished road
I think me 2... liked that one line load webpage stuff... gotta try... PS I LOVE TO LEARN!!... I WANT TO KNOW IT ALL
__________________
"God bless u all" :)
codetaino is offline   Reply With Quote
Old Apr 7th, 2005, 3:58 PM   #18
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Cerulean:
#include <stdlib.h>
main()
{
     system("wget http://foo.com/index.htm");
}
not cross platform, quite obviously, but could easily be with #ifdef s in less than 20 lines. No reason to use actual language features when calling out to the shell is so much easier
uman is offline   Reply With Quote
Old Apr 7th, 2005, 3:59 PM   #19
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
oh by the way, I say if you like to be able to do stuff in 2 lines, learn C#. The .net framework gives a lot of these Python advantages.
uman is offline   Reply With Quote
Old Apr 7th, 2005, 5:13 PM   #20
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
uman:
That doesn't store the data in a variable. You'd have to the data from the file. The urllib and urllib2 modules have many more advanced capabilities utilised just as easily.
And seriously, on how many platforms is it feasible to consider wget as a default there?
Any example of these C# two-liners? Just creating a class with an empty Main function is 4 lines
Cerulean 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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:16 AM.

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