Page 1 of 1

Which programming-programs are the best?

Posted: Wed Nov 04, 2009 1:04 pm
by Triton456
Could anyone give me a tip about which programs I should download for the best Java, C++, ect. programming.

I'm sorry to ask such a noob question, :oops: but I never did a lot about coding/programming (just noob things like scriptkiddies do... :oops: :P ) and I think it should be time to learn more about it. Just need the right programs to start...

If someone could just give me some sites or names of the programs they use for programming, I would really appreciate it. Just the programmes that you guys use daily for programming.

Greetz,
Triton456

Posted: Wed Nov 04, 2009 1:10 pm
by S3th
You should probably start with Python.. Easy to learn.
www.python.org
I believe that is the website.

Posted: Thu Nov 05, 2009 4:15 am
by PaRaDoX
S3th wrote:You should probably start with Python.. Easy to learn.
www.python.org
I believe that is the website.
I still like VB (although its not the most programmer friendly thing ever).

Python is what I got started on >:3

Posted: Thu Nov 05, 2009 6:09 am
by S3th
Well I am currently working to develop my Python knowledge, and I am going to be attending a summer school for "talented and gifted" students. Haha, being one of the top in my Technology classes got me a recommendation to attend, they are offering courses in python, including building my own search engine and more.. It's only $360 too. :P

Python doesn't work very good...

Posted: Thu Nov 05, 2009 11:57 am
by Triton456
I downloaded Python and Notepad++ to get started. The easiest things in python does works:
print("Hello, World!") :P

But when I make other simple codes from http://en.wikibooks.org/wiki/Python_Programming/Arrays it doesn't work anymore. Each time if I run it (with cmd, like they say in the wikibook) I get the same error over and over again... :? :(

Am I just copying it wrong... :roll: or are those codes on wikibooks incorrect?

Most of the times I got this error you see below.
For example:

I open cmd, go to the correct map and typ: python example3.py
(example3.py is the same as you can see at the url above...)
Then it gives this error:

Code: Select all

     File, "example3.py", line 1
          >>> spam
           ^
SyntaxError: invalid syntax
This error I get with almost every code that goes wrong, even a few of the codes I've tried from the challnge-solved section.

Could anyone tell me what I'm doing wrong? Should I use a different Editor then Notepad++? Shouldn't I open it with CMD? Should I take another "Python for beginners" then the wikibook I use? Or do I need to do something else?

(BTW: I know I'm noob with coding and programming :wink: )

Greetz,
Triton456

Posted: Fri Nov 06, 2009 11:14 am
by Karian
I think you're going a bit too fast trough the book. the examples on the page you link are in the interactive mode of python, where >>> is the python promt. Just check the part about interactive mode in the introduction of the book you are pointing to.

Oops..

Posted: Fri Nov 06, 2009 2:47 pm
by Triton456
Oops... You're right, I did skip the part about the interactive modus... :shock:

Thnx, now I understand what I did wrong with the examples on the url in the beginning of the post. But it still don't explanes why the few codes I tried from the challenge solved-section didn't work... They weren't in the interactive mode... And unfortunatly I can't post them to show the mistake in this post... Perhaps could someone that already sold the Pi Hates Nine-challenge at the Challenge Solved-section look at the code of the one that used Python and explanes why it gives a error when I try it.

Thnxs for the answer again, Karian :D Next time I'll try to read everything :lol: :P

Greetz,
Triton456

Posted: Fri Nov 06, 2009 5:21 pm
by CodeX
If you are running Python 3 you will find that you need to make small changes to Python 2 code which is probably what you are reading unless explicitly mentioned otherwise, if this is the case I suggest you get python 2.6.4 instead as most introductory material for Python is probably based on 2.

The code Mad Hacker submitted has one incompatibility with Python 3, the print statement needs to be changed to a function:

Code: Select all

print bigstr
should be

Code: Select all

print(bigstr)
Next up the code has an error in it (wont work with Python 2 or 3):

Code: Select all

  Line 9
    elif j != " " and j != and j != "\t":
                             ^
SyntaxError: invalid syntax
this is because of the "and j != " which you can get rid of. The last problem I can see is that pi isn't in the code snippet so you have to add that yourself, if you don't you will end up getting "NameError: name 'pi' is not defined", so all you have to do is add it to your code

Posted: Sat Nov 07, 2009 4:34 am
by Zaffron
I currently use 2.6
Sooo why would I want to go to 3?

Posted: Sat Nov 07, 2009 6:47 am
by CodeX
you probably don't want to go to Python 3 if you're happy with Python 2.6 as it isn't completely backward compatible, here's a list of changes.

Posted: Sun Nov 08, 2009 7:47 am
by Zaffron
thankies :3

Posted: Fri Nov 13, 2009 10:36 pm
by Liidian
Don't wanna complain but these threads always end up telling people what they self 'know' and how fast they 'learnt' it. i feel that's abit funny tbh.

Posted: Mon Nov 16, 2009 5:00 am
by koolpop0
i hate python it always had errors for me... i had more luck with java and javascript when programing rs private servers (yah i know)...

i also liked ruby and perl... but python never clicked

Posted: Fri Nov 27, 2009 11:12 pm
by Mad Hacker
CodeX wrote:If you are running Python 3 you will find that you need to make small changes to Python 2 code which is probably what you are reading unless explicitly mentioned otherwise, if this is the case I suggest you get python 2.6.4 instead as most introductory material for Python is probably based on 2.

The code Mad Hacker submitted has one incompatibility with Python 3, the print statement needs to be changed to a function:

Code: Select all

print bigstr
should be

Code: Select all

print(bigstr)
Next up the code has an error in it (wont work with Python 2 or 3):

Code: Select all

  Line 9
    elif j != " " and j != and j != "\t":
                             ^
SyntaxError: invalid syntax
this is because of the "and j != " which you can get rid of. The last problem I can see is that pi isn't in the code snippet so you have to add that yourself, if you don't you will end up getting "NameError: name 'pi' is not defined", so all you have to do is add it to your code
i don't remember which one this was, would you mind providing me with a link?
EDIT: found & fixed it(except for pi, i don't have the file anymore), thanks for pointing those out

Posted: Sun Dec 06, 2009 5:59 am
by alternateblackhat
i find python to be a easy coding writing easy, its the fact that there are very few free manuals along with paper books that actually work well. i personally am using "learning python" by O'REILLY. desent... oh btw...to who ever had the hello world comment, almost all languages start by teaching u that frase