You are not logged in.
I'm interested in learning to code games, something like the abstract shooters Kenta Cho makes.I've dabbled in BASIC before when I was in junior high, but never really programmed anything before. Would Python be a good choice? I realize this isn't going to be an overnight thing, but I'd like something simple enough to learn but advanced enough I can go pretty far with it.
Offline
Python definitely meets those criteria, so yes.
Browse the forum for some interesting discussions about pros and cons of different languages, Perl vs Python, which language to learn, etc.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Python definitely is a great language for starting out. I can recommend an Ebook that even meets your games-criteria: http://pythonbook.coffeeghost.net/book1/index.html
Offline
Thanks for the link Svenstaro. So far besides my first Hello World I've only just begun to learn how to store variables. This looks like it will be a great resource.
Offline
The official Python tutorial is excellent. You can probably learn the entire language in a few hours.
Offline
The official Python tutorial is excellent. You can probably learn the entire language in a few hours.
yeah..... probably NOT.
Here are some links you might find helpful:
http://www.byteofpython.info/ <<< i like this one
http://www.diveintopython.org/ <<< older but good
I'm still learning Python myself, but I seriously doubt anyone learns everything about Python in a few hours. You can be writing useful programs in short order though, it's a very nice language to learn and use.
Offline
Byte of Python is a spot on!
Offline
crouse, I'm not saying that one can learn everything about Python in a few hours, but rather that one can learn the entire core language in several hours. I at least did. It's a really simple language. Just read through the tutorial. Obviously it will take longer to familiarize yourself with some important modules in the standard library, but the actual language is reeeaaally simple.
Now time for me to brush up on python 3...
Offline
What IDE would you guys recommend? I don't really understand how to use Eric so I've been using nano.
Offline
Vim or Geany
ARCH64 | XMonad | Configs | myAURpkgs | ArchWiki Contribs | Screenies
Offline
vim or emacs
Offline
Personally, I first learned Ruby, so that's what I'll be using, but Python is definitely a good choice. Enjoy it!
Oh, and I've heard good things about Geany and recommend vim based on my experience with it.
[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]
Offline
I don't mean to hijack but I hope my question will help the original poster too. Can anyone suggest/link to some good programming exercise problems? Anything with real world applications is a bonus. You can only write a quadratic equation calculator or command line blackjack so many times.
I've taken intro programming with BASIC/VB/C++ in high school and university but always at the same level (what's the use of learning the same fundamentals over and over with a different syntax?). I'm interested in python as an introduction to OOP principles, while at the same time developing a skill which I can use for scripting.
I would appreciate some good problems to keep me motivated.
Last edited by jcs (2008-12-06 07:15:34)
Offline
@jcs
Right now i am also learning python. I am trying to write a simple to-do list manager which resembles http://checkvist.com/ but works on the terminal with an ncurses interface.
The file will be displayed with conky on the desktop, but will be easily editable with the python script. If you are interested you can also join and we can learn togather :-)
BTW checkvist.com rocks... i would recommend everybody to try it out.
Last edited by u_no_hu (2008-12-06 08:05:23)
Offline
I don't mean to hijack but I hope my question will help the original poster too. Can anyone suggest/link to some good programming exercise problems? Anything with real world applications is a bonus. You can only write a quadratic equation calculator or command line blackjack so many times.
I've taken intro programming with BASIC/VB/C++ in high school and university but always at the same level (what's the use of learning the same fundamentals over and over with a different syntax?). I'm interested in python as an introduction to OOP principles, while at the same time developing a skill which I can use for scripting.
I would appreciate some good problems to keep me motivated.
http://rubyquiz.com/ is good, even if it is based on Ruby. I'm sure you could do some of those exercises in Python.
As for the IDE question, I wouldn't keep using nano for too long, as you will later want more features. Familiarize yourself early on with a more advanced editor, like Vim or Emacs.
Offline
What IDE would you guys recommend? I don't really understand how to use Eric so I've been using nano.
I've been using Scite. It has several nice features you can set in the config file. A bonus (if you want to call it that) is that there is a version for Windows also, so if your using mulitple OS's, you can use the same editor on both systems.
oh, and a tip if you ARE programming on BOTH enviroments (Linux and Windows)
if you get a Error ": No such file or directory " when running programs on your Linux system, you most likely created them with your Windows system .
When running a python program by chmod a+x and ./nameofprogram on my Linux system I was getting that error.
Reason: Mixed OS programming enviroments.
Cause: Different EOL characters between windows and linux systems
Solution:
Open program.py in vi ..........
hit ESC to get to command line mode.......
type :set fileformat=unix and hit return.......
type :wq! and hit return, this saves changes......
A very simple solution to a problem that is sort of hard to figure out. Upon first glance everything will LOOK fine, permissions set correctly, shebang line correct, etc etc...... those stupid EOL characters put in by Windows systems........... ugggggggghhhhhhhhhh , just one more reason I hate Windows I guess.
Anyway, that's the lowtech way of fixing that annoying error I guess that's ALSO a reason to learn VI
http://usalug.org/vi.html
Last edited by crouse (2008-12-06 13:05:53)
Offline
Can anyone suggest/link to some good programming exercise problems?
Project Euler is very nice. It's based around solving math problems.
[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]
Offline
Offline
an ide netbeans, is heavy but good, pacman -S netbeans ,after install go to tools,plugins,avaible,python
Offline
an ide netbeans, is heavy but good, pacman -S netbeans ,after install go to tools,plugins,avaible,python
That actually looks pretty nice, i may have to try that one myself
Offline
I use Editra as a Python IDE. (it is written in Python itself actually!) It is simple and intuitive. I'm planning on learning the ropes of Vim/Emacs soon due to everyone loving them, but I just found Editra easy to use and adequate for my current needs.
Offline
Learn Python in Ten Minutes
Non-Programmer's Tutorial for Python
As for an IDE, I'd say Geany or Gedit. Gedit is pretty nice and has a ton of plug-ins (gedit-plugins, gedit-plugins-extra). It has replaced Geany as my favorite editor.
Last edited by Wintervenom (2008-12-27 04:57:19)
Offline
SPE is not to be forgotten in the IDE list. It's clean and simple, although I switched to VIM myself by now...
My coding blog (or an attempt at it)
Archer start page (or an attempt at it)
Offline
pida is another reasonable python IDE.
Offline
If one uses Arch Linux, chances are good that he or she is more than comfortable with vim or emacs. If so, I don't think a graphical IDE would offer him or her any advantages.
Offline