Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Python
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Python section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 21st, 2008, 02:04 PM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Why Python?

Hello,
Why to use an interpreted scripting language while we have some very powerful languages like C++,C# and Java.Are there any advantages to use such a language over C++ and Java? Do people prefer such a language because it is easy and fast to use?Please give me some information about the topic.

Thanks.

Reply With Quote
  #2 (permalink)  
Old January 9th, 2009, 02:46 PM
Registered User
 
Join Date: Jan 2009
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
Default Use what you need

Each language has advantages and disadvantages.
Java and .NET are managed and have a large framework (and differ from each other in the framework so one would be better with some things).
C++ gives you much greater control but is still OO, C and assembler gives you the ultimate control.
Python has many advantages:

It's short - many things that you will write in python will require something like 50% of the code lines the same thing written in Java and even better ration compared to C++

It's flexable - the fact that everything is an object, the fact that it's nontyped, the fact that you can write script-like code but you can also write OO code and you can combine script-like with OO code all these give flexibility. Togther with many little things like yield statements you get greate flexability.

Managed but not restricted - While python is 100% managed with a garbage collector unlike Java you get full access to everything you need. You can point to a function, change code on runtime and do many more things.

Python is very easy to learn so if you feel like checking it out you can see if you find advantages. Otherwise just play around with it a bit to know it and see its advantages and learn it if and when you have a project you think python will be better for than other langauges.
Reply With Quote
The Following User Says Thank You to pagis For This Useful Post:
rexcampbell (March 15th, 2013)
  #3 (permalink)  
Old January 20th, 2010, 07:09 AM
Authorized User
 
Join Date: Jan 2010
Posts: 27
Thanks: 2
Thanked 0 Times in 0 Posts
Cool I asked myself the same question

I'm interested in taking CS classes and wondered why they taught python in the first two classes. I was closed minded and thought that since I already learned C++ I was ahead of the class, but what I'm doing is learning the python language ahead of time so I can just clep it!
Reply With Quote
  #4 (permalink)  
Old December 13th, 2011, 04:14 AM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My hour long Python talk for GR Dev Day has been accepted. As you can
see, I left myself a lot of wiggle room in the description:
"Python: The Language for Everything:
Why is Python the most awesome language? Because it's powerful but
easy to learn, it comes with batteries included, and you can use it
anywhere for just about anything. You can use the same code on Linux,
OSX, Windows, and even your Android phone. When you know Python,
maintenance scripts, easy GUIs, and **************** web sites are all at your
fingertips. Come see what Python can do for you!"
GR Dev Day was formerly known as Day of DotNet, and I suspect it will
still largely be DotNet developers. I'd like to give these folks an
introduction that will appeal to them, so how about throwing some
ideas out here? I'm especially keen to here from those of you that
also use DotNet technologies.
Reply With Quote
Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python code optimization icopec Python 2 December 13th, 2011 04:13 AM
python arafat.eajaz Other Programming Languages 0 July 18th, 2008 03:16 AM
Python book invite from someone here crmpicco Python 0 September 26th, 2007 05:17 PM



All times are GMT -4. The time now is 11:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.