Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Forum Home

Why Python?

UserMessage
Posted : Sunday, 17 June 2012, 21:20 | Permalink | Mark Here
jedimastersterling


A simple question really.

Every programming language is good at something, so why was Python invented?

Since I've been on here last I've mastered C (which isn't saying much) and have a working knowledge of Java though I still haven't touched C++ in years. I'm looking to take a free online course on introduction to AI but they want you to understand Python. Hence the question 'What is it good for?' and also how hard is it to learn comparative to C and Java?
Posted : Monday, 18 June 2012, 02:00 | Permalink | Mark Here
steve_ancell


Python is supposed to be easy to learn, the same way that BASIC was a beginners language one computers during the 1980s, Python is now the beginners language on the Raspberry Pi.
Posted : Monday, 18 June 2012, 02:03 | Permalink | Mark Here
steve_ancell


This is said to be a good editor for Python.

www.geany.org/
Posted : Monday, 18 June 2012, 02:07 | Permalink | Mark Here
Afr0


WW Entries : 3
Python is easier to learn than C. It is a scripting language.
I don't know why it was invented, but scripting languages are good for "static code" that doesn't need to be recompiled.
In Project Dollhouse, I use Lua to define the look of the game's UI, and calling functions when buttons are pressed etc.
Also, I highly doubt you've "mastered" C. I wouldn't say you've "mastered" C until you know the ins and outs of every function in the standard library.

-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Posted : Monday, 18 June 2012, 04:58 | Permalink | Mark Here
steve_ancell


Afr0 I highly doubt you've "mastered" C. I wouldn't say you've "mastered" C until you know the ins and outs of every function in the standard library.

That is so true, no two programmers are the same so programming languages constantly evolve to fit their needs.

|edit| Although it may be possible to learn a programming lingo from end to end, there are endless possibilities of ways to use it.

For example: anybody can pick up a brush, dip it in paint and apply it to a wall but having two P&D's on the same wall will result in two different finishes, feel free to jump in Dabz. |edit|
Posted : Monday, 18 June 2012, 08:34 | Permalink | Mark Here
JL235


WW Entries : 7
According to Wikipedia, Python was created as a successor to ABC, for the Amoeba OS. It was an OS that could allow a whole network of machines look like a single PC.

It's main success is through open source, where it's been used for a range of GPL applications, such as Blender. It's also pretty much always included on Linux desktop distributions as standard.

In short, Python aims to be readable and easy to use for building real applications. However it also became popular at around the start of a trend into dynamic languages (PHP, Perl, Ruby, and tonnes more). It's about trying to make it easier to build complex software.

Tbh C is a pretty easy language to understand; it's building sophisticated and bug free software where the code scales which is the challenge. In short, Python has more concepts.

If you've used other dynamic and object-oriented languages, Python shouldn't be too difficult to pickup. If you haven't, then you might have difficulties. However you ought to learn both dynamic, and OO languages anyway, even if you chose to never use them. It'll help to give you more ideas to work with when working in other languages.

Afr0 Also, I highly doubt you've "mastered" C. I wouldn't say you've "mastered" C until you know the ins and outs of every function in the standard library.


I totally disagree. That is like saying a history expert needs to learn the date of every event in history. Understanding history is much more then just dates, and understanding a language is more then just learning function signatures. It goes deeper than that.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Monday, 18 June 2012, 09:01 | Permalink | Mark Here
Afr0


WW Entries : 3
It goes deeper than that.


You may be right, but even so - saying you've "mastered" a language sounds arrogant, even when the interpretation of "mastered" is pretty subjective.

-----
Afr0 Games

Project Dollhouse on Github - Please fork!
Posted : Monday, 18 June 2012, 09:53 | Permalink | Mark Here
steve_ancell


I think a more fitting word to use here would be "competent" rather than "mastered", that would still mean that jedimastersterling knows his stuff.
Posted : Tuesday, 19 June 2012, 03:42 | Permalink | Mark Here
Retro


I don't get why they want you to know Python for introductory AI. Learning Lisp or Prolog would make more sense.
Posted : Tuesday, 19 June 2012, 04:20 | Permalink | Mark Here
JL235


WW Entries : 7
I expect it's to avoid having to teach a whole new paradigm of programming. If this is aimed at people who can already program, then learning Python won't be difficult, and so most of the time can be spent on the AI.

Prolog can be *very* challenging for even an experienced programmer.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Posted : Tuesday, 19 June 2012, 13:56 | Permalink | Mark Here
Retro


I assumed that an understanding of Python was a prerequisite.
Posted : Tuesday, 19 June 2012, 23:36 | Permalink | Mark Here
JL235


WW Entries : 7
Then there you go, a lot more programmers will already know Python or something similar.

-----
PlayMyCode.com - build and play in your browser, Blog, Twitter.
Latest Posts
Shoutbox Topic - 91
Dabz Fri 22:31
Coder's Block
Jayenkai Thu 09:01
Consumer Lockout
9572AD Thu 06:09
Professor Oak, Honest!!
spinal Wed 23:24
Position in Mind
steve_ancell Wed 20:11
Sonic Adventure v0.x
Jayenkai Wed 07:08
FIRST!!!
steve_ancell Wed 03:55
Noel's Graduation
waroffice Wed 02:55
Monkey vs iOS tweaks
spinal Tue 22:51
Fucking Pound Sign Unicode Bullshit Bollocks
Dabz Tue 13:00
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
spinal
Sat, at 00:15
Evil Roy Ferguson
Fri, at 23:20
blanko1324
Fri, at 23:06
Cower
Fri, at 23:06
Dabz
Fri, at 22:41
lawandcontradiction
Fri, at 20:39
CodersRule
Fri, at 19:26
steve_ancell
Fri, at 18:39
Tikihead
Fri, at 18:13
HoboBen
Fri, at 17:07
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.