![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Learning Python
I'm thinking about learning another language. Currently I know C++ semi-well. What are the advantages/disadvantages of Python?
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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. |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
__________________
"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 |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4
![]() |
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) |
|
|
|
|
|
#5 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
You never need to do "use namespace" anything in C++ :-P
|
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Apr 2005
Location: Uk
Posts: 68
Rep Power: 4
![]() |
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) |
|
|
|
|
|
#8 | |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Quote:
|
|
|
|
|
|
|
#9 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#10 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
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. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|