ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just saw that Python is "the programming language of the year".
I study Java (for 2 weeks now) at my school and I think its good enough.
What makes python so good and popular?? Can it do all the thinks Java and C++ can??
java and python are worlds apart and really for different things. Java is a programming language running a JIT compiler within it's own virtual machine, whilst python is a scripting language. Different languages suit different applications, it's not like there is one day going to be a vote for the "best" language to use and everyone uses it.
java and python are worlds apart and really for different things. Java is a programming language running a JIT compiler within it's own virtual machine, whilst python is a scripting language. Different languages suit different applications, it's not like there is one day going to be a vote for the "best" language to use and everyone uses it.
I don't want to sound stupid(but probably will), what does it mean "a scripting language"??
Well TBH, the differences can get a bit vague the way many scripting languages get used for outright app development, but a basic difference is discussed here http://www-xray.ast.cam.ac.uk/~jss/l...t/programming/
So much of it comes down to style and user preference. Java takes a lot of setting up for a simple hello world, whilst python can do it in a single line. So languages like python, perl and ruby are often nice and simple to prototype tools, especially those interacting with other programs / processes. There has been much more of a buzz around ruby / rails recently than python though...
Last edited by acid_kewpie; 02-13-2009 at 05:27 AM.
generally speaking, a scripted language gets compiled to pseudo-code which is measurably slower than machine code (as generated by compiling C code). Scripting languages relatively high-level and usually best fited for administrative tasks because they can be written quickly and can be easy to read.
I guess in a more hacker friendly environment, scripting languages are much more approachable and easier to modify and mess about with. Simpler to install for testing and the likes. Change a line, run it. Add a function, run it. much quicker than having to compile code all the time.
yea! scripting languages are much more approachable... but just a little clarification... compilation still happens, it's just obfuscated from the user's point of view.
To me, after Perl, it's a language with missing features and a slowly catching up one - I see only recent Python version implement new language features which have been present in Perl for more than 10 years.
please not again. Hype or no hype, one must really use and understand in depth the usage of these languages and really decide for oneself why its like that. Do not start to compare when one have insufficient knowledge of one or the other.
please not again. Hype or no hype, one must really use and understand in depth the usage of these languages and really decide for oneself why its like that. Do not start to compare when one have insufficient knowledge of one or the other.
Is the article in Wiki (link in post above) wrong ?
BaseArray was a proposed base multidimensional array type, ready-to-include in the Python core sometime in the future.
?
I mean, Perl has multidimensional arrays for ages (for more than 10 years), as well as "C" does.
Enlighten us, please.
As I have written many times, I used to work with a really nice guy who tried to convert my to Python in year 2000. There was really no incentive - Python offered me less than Perl at the time.
Maybe I'll start a separate thread on data export/import - from what I read/see around Python is behind Perl also in this area.
I just saw that Python is "the programming language of the year".
I study Java (for 2 weeks now) at my school and I think its good enough.
What makes python so good and popular?? Can it do all the thinks Java and C++ can??
the only relevant answer to this. Learn about Python for 2 weeks, and judge for yourself. For references to Java vs Python, google is your friend.
One thing that bothers me about python is the move to 3.0, which is NOT backwards compatible. That really made me think twice before recommending python to anyone. It's true that it's a good language to learn programming with, and I think it's a very readable language much like ruby, it's almost as if you can speak it like a natural language. But, other than that, not too much benefit over Perl.
One thing that bothers me about python is the move to 3.0, which is NOT backwards compatible.
they have reasons for this move. If you find in the internet, there are many discussions on this. What i see is, Python 2.x is still pretty much relevant in the long term. Most of the real world problems can be solved without using Python 3. If an environment doesn't yet have Python 3 and is considering using it and if one doesn't foresee using it to run older Python code, then one might go for it. Otherwise, sticking with Python 2.x is still alright.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.