Python Programming: your experiences

General discussion and socializing.
User avatar
kaka
Posts: 673
Joined: Fri Apr 03, 2009 8:31 am
Location: Château de Gâteau

Re: Python Programming: your experiences

Post by kaka »

Try this site: http://www.pythonchallenge.com/
That's a fun way of learning a language.

I don't think it was mentioned by anyone, but Python is also often
used to prototype applications due to the speed of development.
It's a good language to know.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Python Programming: your experiences

Post by borka »

A good way to learn is studying other peoples code ;)
i.e.
https://github.com/justinmeister/The-Stolen-Crown-RPG
or the newer fork
https://github.com/jsoffer/The-Stolen-Crown-RPG

And if you learned a bit more understanding Python go look for Cython (had been mentioned already) and Kivy :)
User avatar
jcm2214
Posts: 198
Joined: Sat Aug 17, 2013 6:26 pm

Re: Python Programming: your experiences

Post by jcm2214 »

Functional programming master race. Revel in the purity of Haskell and scheme lisp.
ImageImage
User avatar
kaka
Posts: 673
Joined: Fri Apr 03, 2009 8:31 am
Location: Château de Gâteau

Re: Python Programming: your experiences

Post by kaka »

Found this today: http://www.checkio.org/
A gamified, and partly community-driven, Python-learning tool.
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: Python Programming: your experiences

Post by MagicManICT »

When, exactly, did Python go from being a very powerful scripting language to a full blown programming language? PERL could (can) do all of this stuff, if I recall right, but it's still considered a scripting language. Some of the history on the net is a little vague on saying anything on this, just that in the original (and 2.x), it's a scripting language, and then goes to becoming "programming" in the latest releases. Has our definition of scripts and programming changed that much, or has Python really made that transition?
Mernil wrote:since I'm not building applications for 60k hourly users I'm not much concerned about awesome performances.
If I recall correctly, CCP programmed all of EVE in Python originally. From following the game for many years, they still had (have?) major parts of it in Python for several years after release. I know they were up to 40-50k simultaneous log-ins the last time I recall that they were talking about Python scripts. Have they had to go in and replace parts of the engine with very high performance system code? Definitely, as the number of people able to use a single node has risen from a couple hundred into thousands.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Python Programming: your experiences

Post by borka »

Python.org wrote: Python is a programming language that lets you work quickly and integrate systems more effectively.
perl.org wrote:Perl 5 is a highly capable, feature-rich programming language with over 26 years of development.
;)
lua.org wrote: Lua is a powerful, fast, lightweight, embeddable scripting language.

in their about and on the main page
the programming language 20 years
http://www.tiobe.com/content/paperinfo/tpci/index.html
http://www.tiobe.com/content/paperinfo/ ... ition.html
User avatar
ArvinJA
Posts: 1255
Joined: Sun Mar 20, 2011 1:02 pm
Location: Sweden

Re: Python Programming: your experiences

Post by ArvinJA »

Don't get hung up on execution speed or anything like that at this point at all.
Starting out you won't know how to optimize your code to make it perform fast anyway. I recently looked back at some of the code I wrote in 2008, when I (laughably) considered myself somewhat proficient, and I had chosen to go through a list of dead and alive players by randomizing an item until I found a live player in the list. That operation could take up all the remaining time in the universe to be completed (although that's very unlikely).

Anyway, you'll learn about choosing fitting datastructures and algorithms later on, and after that you can start caring about what languages perform fast. Right now it's all about getting into the mindset of giving sequential instructions to a computer, and for that purpose you'd probably want to pick something that is pretty straight to the point, and here Python is a very good choice, but Java, C++, or C# or any other language will do.

Learning how to get computers to do your bidding is a lot like finding out you have a bunch of unused slaves in your basement, and I salute you for wanting to learn about the dark arts. ¦]
The low life has lost its appeal
And I'm tired of walking these streets
To a room with its cupboards bare
shmutz
Posts: 1
Joined: Tue Jun 24, 2014 2:23 pm

Re: Python Programming: your experiences

Post by shmutz »

Ah cool, first post I managed to find which deals with some tech details of the implementation.
Loftar, is there any other topic where you share a few more details regarding your implementation?
I had a brief look at the client source and got an impression that it might have been written by a C-programmer 8)
I've got a general interest in developing a simple test system where I can try prototyping and it would be rather interesting to gain some knowledge before reinventing the wheel.
Thanks.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Python Programming: your experiences

Post by loftar »

shmutz wrote:Loftar, is there any other topic where you share a few more details regarding your implementation?
There are a few others if you search for them.

In general, however, I tend to not speak about implementation details as I prefer people not getting preconceived notions about game mechanics from that. :)
"Object-oriented design is the roman numerals of computing." -- Rob Pike

Return to “The Inn of Brodgar”