Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Jun 17th, 2005, 12:38 AM   #1
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Learning Python

I'm thinking about learning another language. Currently I know C++ semi-well. What are the advantages/disadvantages of Python?
uman is offline   Reply With Quote
Old Jun 17th, 2005, 2:16 AM   #2
ZenMasterJG
Hobbyist Programmer
 
ZenMasterJG's Avatar
 
Join Date: Nov 2004
Location: Boston, MA
Posts: 148
Rep Power: 5 ZenMasterJG is on a distinguished road
Send a message via AIM to ZenMasterJG
the advantages: its a very high level language. it tries to be smarter then you are, which i like, cuz im lazy. all variables are references, which i like, cuz pointers make me want to cry. Its got amazing built in data structures, and you can easily make very complex data structures by layering the built-ins
Disadvantages: not super-amazing proformance, but its not bad either.
i think python is pretty great for everything. i prototype all my major projects in python before implementing them in c++ or java or whatever the project needs to be written in. more and more often i find myself slapping myself for forcing some project to be written in java when it would have been way faster, easier, and just better in python.
ZenMasterJG is offline   Reply With Quote
Old Jun 17th, 2005, 3:32 AM   #3
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
http://www.ibiblio.org/obp/thinkCSpy/index.htm

a good learn python link.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 19th, 2005, 3:45 PM   #4
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
I'm learning C++ now, after learning a bit of python, and python is so much easier and so much more compact than c++, personal opinion!! You need ; at the end of every statement in c++, but don't in python, just to run a simple program in c++ you need int #include and using namespace jargon!!
I just recon python is easier!
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote
Old Jun 19th, 2005, 6:26 PM   #5
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
You never need to do "use namespace" anything in C++ :-P
uman is offline   Reply With Quote
Old Jun 20th, 2005, 9:22 AM   #6
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Smile

If you want to learn how to program the computer, Python would be the way to go. The code is simpler and easier to learn. Python is an interpreter so you can experiment with computing concepts quickly, might even have fun!

In the end, C++ is the way to go to write professional code you can actually sell. Knowing both languages is a plus! They sort of complement each other.

Heard on the street, Microsoft writes in C++/C# (they sell software), Google writes in Python (they are power-users of software).
__________________
I looked it up on the Intergnats!

Last edited by Dietrich; Jun 20th, 2005 at 9:24 AM.
Dietrich is offline   Reply With Quote
Old Jun 22nd, 2005, 2:39 PM   #7
SaturN
Programmer
 
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4 SaturN is on a distinguished road
I am working through a book i bought atm, and it told me at the start that i "had" to use, namespace std; in all my codes other wise i have to "declare" it at the start of each line?? Or something like that, i can't fully remember..! Oh well.. Python's a great lingo to learn, If u live in the uk, there's a book store called "Ottakars" i think it's just in the north!! Ain't sure.. But they have some really good python books if u do decide to get in to Python.
Have fun!
__________________
while me is alive:
	make(life,simple)
SaturN is offline   Reply With Quote
Old Jun 22nd, 2005, 3:37 PM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by Dietrich
Microsoft writes in C++/C#.
Allegedly. Rumour has it they actually write in their own, internal language, which has a variety of special features - not least security, ensuring bugs will crop up at every stage of using the software.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 22nd, 2005, 4:06 PM   #9
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
Throw away the book and burn it for all eternity in the pits of the stuff-burning apparatus!!!

It's preposterous to assume you need "using namespace std;".
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Jun 23rd, 2005, 6:29 PM   #10
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:
In the end, C++ is the way to go to write professional code you can actually sell. Knowing both languages is a plus! They sort of complement each other.
Tell that to iD software, Monolith Productions (Matrix Online), and CCP (EVE online) just to name a few. They all made industrial use of Python, as have many others.

And you shouldn't, by standards, write "use namespace std" unless you want your compiler to run slower and to clog up the global namespace.
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 2:22 PM.

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