Computer Programming Discussion

Post » Sun Dec 13, 2009 7:51 am

I think this would be better to ask in here than creating a new thread...

What program/s, programming language and other skills would I need to make a game like this: http://armorgames.com/play/3469/robot-dinosaurs-that-shoot-beams-when-they-roar


Flash
User avatar
Katie Louise Ingram
 
Posts: 3437
Joined: Sat Nov 18, 2006 2:10 am

Post » Sun Dec 13, 2009 5:06 am

For those Python programmers, do you prefer Tkinter or wxPython for GUI development, or do you use another library?

By all that is holy and unholy, please do not ever make me work in either of those ever again!

:biglaugh:

Seriously, give http://qt.nokia.com/ a try. http://www.riverbankcomputing.co.uk/software/pyqt/intro blows them both away! Though I have to say, I liked Trolltech more before they sold their soul to Nokia.

Besides, wxPython is so horribly buggy. You spend half of your GUI time just trying to find workarounds for all of the weird things it does.

Flash

Pretty much, yeah. I concur. Though I'm thinking "Don't" is about as good of an answer. :biglaugh:
User avatar
Brian Newman
 
Posts: 3466
Joined: Tue Oct 16, 2007 3:36 pm

Post » Sun Dec 13, 2009 2:58 pm

As for me, I'm trying my best to stay as a Python applications programmer lately. I hope it catches on more. I love Python. Best programming language ever written as far as I can find. Shame people seem to avoid it for writing applications in.

I started out though on nastier things like 16 and 32 bit x86 Assembly, Fortran, Cobol, Basic, Ada, C. Stuff like that. The joys of military programming in the old days. Funny how everything was supposed to be in Ada, but everyone had a waiver to use a better language. :vaultboy:

(Although I suppose technically you could say I started on Basic since I grew up with a C=64 and was always writing my own stupid little games and Run-Stopping into games to "fix" their code. Especially Telengard. That one was great for "fixing". :whistle: )

Then moved my way up the food chain into C++, MFC, and Visual Basic. And lots of third-party ActiveX controls Ah, those were the days. (Of hair pulling. :banghead: )

Now I'm a Python guy. :hubbahubba: I prefer Qt for traditional GUIs, but have been known to use those awful things that shall not be named. 3D work I typically use OpenGL, even though it clashes badly with Python. VTK is nice for 3D in Python though, at least when you can figure out which classes to use anyway. :toughninja:

But yeah, most of my experience would be PyQt. For a reason. :biglaugh: But I'm still pretty scnifty with C++ when I have to be. Which means I could also probably pick up C# in a day, if i had a reason to. I did it with Java once. Can't say as I enjoyed the experience, but you take what jobs you can get.
User avatar
Cody Banks
 
Posts: 3393
Joined: Thu Nov 22, 2007 9:30 am

Post » Sun Dec 13, 2009 1:59 pm

Currently, I'm using Java because of the class that I'm taking.

Last year I used mainly C++, and a little bit of HTML.
User avatar
Emily Jeffs
 
Posts: 3335
Joined: Thu Nov 02, 2006 10:27 pm

Post » Sun Dec 13, 2009 8:24 pm

Cool thing that I learnt today. The binary search algorithmhttp://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html. It is obvious when you think about it, but everything I have read suggests that the incorrect way is correct.
User avatar
Jennifer Rose
 
Posts: 3432
Joined: Wed Jan 17, 2007 2:54 pm

Post » Sun Dec 13, 2009 10:46 am

Hi guys, a quick question for Python users.

I'm trying to compile a program that uses wxPython, smtplib, email.MIMEBase, and Encoders from email.

Py2Exe produced no .exe, just a few folders full of Python scripts. It went through the whole compiling process though.. :unsure2:
Can someone help me out?
User avatar
Sabrina Schwarz
 
Posts: 3538
Joined: Fri Jul 14, 2006 10:02 am

Post » Sun Dec 13, 2009 7:59 pm

Sorry for the double post, but this is really aggravating. I have the .exe now but it doesn't work.

It starts and nothing happens. Is it because of the modules I'm using?
User avatar
michael flanigan
 
Posts: 3449
Joined: Thu Jun 14, 2007 2:33 pm

Post » Sun Dec 13, 2009 7:55 am

Hey guys I am currently still working with C# though a class I am in wants us to do VB.NET after we did some JavaScript (not programming I know). But I may need to learn Java and possibly C/C++ in a future class all while wantign to learn Python.

I have Visual Studio 2008 Pro right now which is fine for the VB.NET and C#, but what about the rest? I know I can do C++ if I just do a blank solution but I am not sure if that still makes things be depandant on .NET. And as far as Java and Python I just don't know any good compilers/editors for them.

Any advice?

Found http://ironpythonstudio.codeplex.com/ which is a plugin for VS2008 for Pyhton but I was curious if anyone had any experience with it.
User avatar
Laura Samson
 
Posts: 3337
Joined: Wed Aug 29, 2007 6:36 pm

Post » Sun Dec 13, 2009 9:31 am

Hey guys I am currently still working with C# though a class I am in wants us to do VB.NET after we did some JavaScript (not programming I know). But I may need to learn Java and possibly C/C++ in a future class all while wantign to learn Python.

I have Visual Studio 2008 Pro right now which is fine for the VB.NET and C#, but what about the rest? I know I can do C++ if I just do a blank solution but I am not sure if that still makes things be depandant on .NET. And as far as Java and Python I just don't know any good compilers/editors for them.

Any advice?


Visual Studio 2008 is pretty much the best thing on the planet. It is a truly awesome program. It's perfect for C++, and no, it won't make it rely on .NET. As for everything else, I can't really help you much.
User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am

Post » Sun Dec 13, 2009 5:59 pm

Visual Studio 2008 is pretty much the best thing on the planet. It is a truly awesome program. It's perfect for C++, and no, it won't make it rely on .NET. As for everything else, I can't really help you much.

So as long as I do Other Project Types > Blank Solution instead of anything under Visual C++ I should be fine then for non .NET applications?
User avatar
Cartoon
 
Posts: 3350
Joined: Mon Jun 25, 2007 4:31 pm

Post » Sun Dec 13, 2009 6:12 pm

...we did some JavaScript (not programming I know).

Quite the contrary. Javascript is a proper programming language, though often abused.

I know I can do C++ if I just do a blank solution but I am not sure if that still makes things be depandant on .NET.

Unless you explicitly choose C++/CLI, it won't be dependent on .NET; e.g. a "Windows Application" or "Console Application" is perfectly fine.

Found http://ironpythonstudio.codeplex.com/ which is a plugin for VS2008 for Pyhton but I was curious if anyone had any experience with it.

IronPython is the .NET implementation of Python, and has some differences from the CPython implementation that most people mean when they say "Python". If you want to use ordinary Python, IronPython Studio won't work 100%. Generally, though, you don't need fancy IDEs when working with dynamic languages like Python, since their usefulness is limited by the nature of the language. Something like IDLE or PythonWin is often good enough, though there are some more complex solutions, such as PyDevelop and PyCharm. Here's a http://stackoverflow.com/questions/81584/what-ide-to-use-for-python.

As for Java, I'm not a Java user, but most of the ones I know use Eclipse or NetBeans.
User avatar
Kristina Campbell
 
Posts: 3512
Joined: Sun Oct 15, 2006 7:08 am

Post » Sun Dec 13, 2009 8:05 pm

Quite the contrary. Javascript is a proper programming language, though often abused.


Unless you explicitly choose C++/CLI, it won't be dependent on .NET; e.g. a "Windows Application" or "Console Application" is perfectly fine.


IronPython is the .NET implementation of Python, and has some differences from the CPython implementation that most people mean when they say "Python". If you want to use ordinary Python, IronPython Studio won't work 100%. Generally, though, you don't need fancy IDEs when working with dynamic languages like Python, since their usefulness is limited by the nature of the language. Something like IDLE or PythonWin is often good enough, though there are some more complex solutions, such as PyDevelop and PyCharm. Here's a http://stackoverflow.com/questions/81584/what-ide-to-use-for-python.

As for Java, I'm not a Java user, but most of the ones I know use Eclipse or NetBeans.

So if I have IDLE and Notepadd++ I should be ok with Python? What would I do to run the created file then?
User avatar
Kahli St Dennis
 
Posts: 3517
Joined: Tue Jun 13, 2006 1:57 am

Post » Sun Dec 13, 2009 8:32 am

So if I have IDLE and Notepadd++ I should be ok with Python? What would I do to run the created file then?

IDLE and similar IDEs have a built-in interactive console where scripts can be executed, and you can also execute them from the command line using `python myscript.py` or by double-clicking the .py file in your file manager. Note that Python development is much more interactive than development with compiled languages. You often run your code, interact with it in the console, change some stuff, run again, interact again and so on.
User avatar
Motionsharp
 
Posts: 3437
Joined: Sun Aug 06, 2006 1:33 am

Post » Sun Dec 13, 2009 10:05 am

IDLE and similar IDEs have a built-in interactive console where scripts can be executed, and you can also execute them from the command line using `python myscript.py` or by double-clicking the .py file in your file manager. Note that Python development is much more interactive than development with compiled languages. You often run your code, interact with it in the console, change some stuff, run again, interact again and so on.

What would be a good website or book I should look at for Python? I may not start ont hat language for awhile as I am currently still trying to learn more C# and I might need to do Java for a class.
User avatar
Blackdrak
 
Posts: 3451
Joined: Thu May 17, 2007 11:40 pm

Post » Sun Dec 13, 2009 9:40 am

What would be a good website or book I should look at for Python?

http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-189January--IAP--2008/CourseHome/ or http://code.google.com/edu/languages/google-python-class/. There are plenty of tutorials for Python around the net, but the quality is not that high, once you read a proper one (like the aforementioned two).

BTW, does anyone here know/use Ruby? I've read a two popular online Ruby tutorials masquerading as books on it, and while it's not nice to look a gift horse in the mouth, I have to say they svck. http://mislav.uniqpath.com/poignant-guide/ has some charm due to its bizarreness, but when you actually look at the content, it's basically Alice in Wonderland with tiny bits of code thrown around. http://www.humblelittlerubybook.com/ is a more sane alternative, but some of the info in there is actually wrong (not much by any means, but still), and it doesn't address practical uses of the language.

So anyone have a better suggestions? The language seems quite interesting so far, but I'd like some proper material.
User avatar
Tom Flanagan
 
Posts: 3522
Joined: Sat Jul 21, 2007 1:51 am

Post » Sun Dec 13, 2009 5:08 pm

Hey guys, compiled this thing and scoured the web for solutions, but nothing turned up. I compiled my program, using the modules I said above, and a .exe was created.

Then I go to open it and it gives me this:
http://img684.imageshack.us/img684/2589/errorpicture.jpg

Please help guys, this is frustrating me. I don't even have the word 'build' in my whole damn source.

Edit:
I don't even have the word 'build' in my whole damn source.


I think that's the problem.

But where the hell do I put build? In the __init__ attributes, or as a class attribute?
User avatar
Jade Muggeridge
 
Posts: 3439
Joined: Mon Nov 20, 2006 6:51 pm

Post » Sun Dec 13, 2009 5:26 pm

Well thanks for the compiling help guys.

Anyway, here is a small Notepad replicate script I made in wxPython. It's to teach newcomers to wxPython how to use a menubar, Text Control Box, and functions bound to the former.

http://www.mediafire.com/?yjmzetownja (via Mediafire) It's a .pyw file.
Spoiler
.pyw is a .py file that doesn't show the console.


It's pretty detailed, so if you're new to wx then I recommend looking through it, since most other tutorials are old or teach you lame ways to do stuff.
User avatar
Jonathan Montero
 
Posts: 3487
Joined: Tue Aug 14, 2007 3:22 am

Post » Sun Dec 13, 2009 8:25 pm

Well thanks for the compiling help guys.


Unfortunately we aren't all masters of every language. I'm guessing there probably aren't many people here with tons of Python experience. I've only used it a little myself.

In other news, I finally managed to get my implementation of the marching cubes algorithm working the other day and now have some working (although currently pretty crap looking) metaballs. For quite some time I've had it kind of working but not quite, and it turns out the issue was that I had a static array somewhere where I should have been using a dynamic array, so when it was getting full it was basically just ignoring the other stuff that should have been put in the array too.
User avatar
SWagg KId
 
Posts: 3488
Joined: Sat Nov 17, 2007 8:26 am

Post » Sun Dec 13, 2009 11:01 am

So I decided to order http://www.amazon.com/gp/product/0596521065/ref=oss_product for C# instead of http://www.amazon.com/reader/0596527438?_encoding=UTF8&ref_=sib_dp_pt#reader-link. It seemed the publish date was more recent then the second one so I figured it owuld be better. However I noticed that it is only 3rd edition as opposed to 5th like that second book and doesn't seem to mention .NET 3.5 or LINQ on the cover. Should I be concerned about this? Amazon should let me exchange the books if that is the case right?

Edit- Turns out the first one (fish) is more beginner and doesn't seem to cover as much. So I filed for a return with Amazon and ordered the second. As soon as I get this book all I need to do is drop it off at UPS with the label they gave me. It appears to be more pages however when I looked on the OReily site at the chapters it seemed that the second might be better for me. I have a few days after I recieve the book to decide which one to keep which is good. Any input on this?
User avatar
Samantha hulme
 
Posts: 3373
Joined: Wed Jun 21, 2006 4:22 pm

Post » Sun Dec 13, 2009 3:46 pm

So I decided to order http://www.amazon.com/gp/product/0596521065/ref=oss_product for C# instead of http://www.amazon.com/reader/0596527438?_encoding=UTF8&ref_=sib_dp_pt#reader-link. It seemed the publish date was more recent then the second one so I figured it owuld be better. However I noticed that it is only 3rd edition as opposed to 5th like that second book and doesn't seem to mention .NET 3.5 or LINQ on the cover. Should I be concerned about this? Amazon should let me exchange the books if that is the case right?

Edit- Turns out the first one (fish) is more beginner and doesn't seem to cover as much. So I filed for a return with Amazon and ordered the second. As soon as I get this book all I need to do is drop it off at UPS with the label they gave me. It appears to be more pages however when I looked on the OReily site at the chapters it seemed that the second might be better for me. I have a few days after I recieve the book to decide which one to keep which is good. Any input on this?


I think you'd want both. If you're trying to learn the language without formal instruction, the Butterflyfish book is the one you'll need first. The Crane book is a reference book that you will want to look up details even after you know how to program in the language. The Crane book also contains a large number of errors. The Butterflyfish book is more carefully edited.

They are different editions because they are different titles, not because the "fifth edition" of the older Crane book appears more up-to-date than the "third edition" of the newer Butterflyfish book: it isn't. Not judging a book by its cover is good advice here.
User avatar
Rachel Cafferty
 
Posts: 3442
Joined: Thu Jun 22, 2006 1:48 am

Post » Sun Dec 13, 2009 7:35 pm

I think you'd want both. If you're trying to learn the language without formal instruction, the Butterflyfish book is the one you'll need first. The Crane book is a reference book that you will need to look up details even after you know how to program in the language.

They are different editions because they are different titles, not because the "fifth edition" of the older Crane book is more up-to-date than the "third edition" of the newer Butterflyfish book.

I can currently only afford one at the moment. So would it be better to just stick with the fish book?
User avatar
Danielle Brown
 
Posts: 3380
Joined: Wed Sep 27, 2006 6:03 am

Post » Sun Dec 13, 2009 3:40 pm

I can currently only afford one at the moment. So would it be better to just stick with the fish book?


I would. It's the better book, and it's the better one to have first. Microsoft has good reference materials for C# online anyway.

Here's a discussion of C# resources, mostly intended for XNA developers: http://forums.xna.com/forums/p/3324/16573.aspx#16573
User avatar
maddison
 
Posts: 3498
Joined: Sat Mar 10, 2007 9:22 pm

Post » Sun Dec 13, 2009 5:37 am

Quite the contrary. Javascript is a proper programming language, though often abused.

I would suggest that JavaScript should be awarded the "Most misunderstood programming language" award. It does have some major issues though. The main one being its name. (There are of course other more serious ones like the `with` statment)

JS is definitely on my "Would like to do more of" languages (along with Ruby, Haskell and C#). Much to my regret I have never done anything major enough to use its prototype OO model. :(
User avatar
butterfly
 
Posts: 3467
Joined: Wed Aug 16, 2006 8:20 pm

Post » Sun Dec 13, 2009 3:57 pm

Hey guys, I'm currently working on a project that requires the program to start when windows begins. I've looked all over Google and can't find anything.

To be more specific, I'm looking for a way for the program to begin without needing to execute the program at all. I've tried a batch file, but it didn't work (thanks though, Mungo :) ).

I've looked into adding registry keys, but that would require the execution of the program.


How can I do this? Any ideas? Thanks guys. :D
User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm

Post » Sun Dec 13, 2009 2:57 pm

I would. It's the better book, and it's the better one to have first. Microsoft has good reference materials for C# online anyway.

Here's a discussion of C# resources, mostly intended for XNA developers: http://forums.xna.com/forums/p/3324/16573.aspx#16573

So I got the fish book and was reading a bit of it. I am not sure if its that great yet but will keep goign to see. I have I think 30 days to return it.
User avatar
biiibi
 
Posts: 3384
Joined: Sun Apr 08, 2007 4:39 am

PreviousNext

Return to Othor Games