Which programming-programs are the best?

Discussion about hacker.org's server
Post Reply
Triton456
Posts: 11
Joined: Sun Oct 25, 2009 5:01 pm
Location: Between Germany and England

Which programming-programs are the best?

Post 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
Last edited by Triton456 on Wed Nov 04, 2009 1:31 pm, edited 1 time in total.
Play a Windows CD backwards and hear satanic messages. That’s nothing, play it forwards and it installs Windows.

Music = Life

Same Shit - Different Day
User avatar
S3th
Posts: 411
Joined: Thu Sep 11, 2008 8:35 am

Post by S3th »

You should probably start with Python.. Easy to learn.
www.python.org
I believe that is the website.
See through the master
Become the master
User avatar
PaRaDoX
Posts: 708
Joined: Fri Aug 22, 2008 5:52 am
Location: In your fridge, waiting to pop out and scare you.

Post 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
Image

~You are a glitch in my reasoning.
User avatar
S3th
Posts: 411
Joined: Thu Sep 11, 2008 8:35 am

Post 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
See through the master
Become the master
Triton456
Posts: 11
Joined: Sun Oct 25, 2009 5:01 pm
Location: Between Germany and England

Python doesn't work very good...

Post 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
Play a Windows CD backwards and hear satanic messages. That’s nothing, play it forwards and it installs Windows.

Music = Life

Same Shit - Different Day
Karian
Posts: 75
Joined: Wed Jan 09, 2008 10:21 am

Post 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.
Triton456
Posts: 11
Joined: Sun Oct 25, 2009 5:01 pm
Location: Between Germany and England

Oops..

Post 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
Play a Windows CD backwards and hear satanic messages. That’s nothing, play it forwards and it installs Windows.

Music = Life

Same Shit - Different Day
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post 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
User avatar
Zaffron
Posts: 491
Joined: Thu Dec 18, 2008 12:18 am
Location: Invading a small country

Post by Zaffron »

I currently use 2.6
Sooo why would I want to go to 3?
Read, know, do. Discuss topics of ANY kind, including unconventional or taboo topics. Free speech, open minds, alternative thinking. http://www.totse2.com
User avatar
CodeX
Posts: 350
Joined: Fri Oct 17, 2008 5:28 pm

Post 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.
User avatar
Zaffron
Posts: 491
Joined: Thu Dec 18, 2008 12:18 am
Location: Invading a small country

Post by Zaffron »

thankies :3
Read, know, do. Discuss topics of ANY kind, including unconventional or taboo topics. Free speech, open minds, alternative thinking. http://www.totse2.com
Liidian
Posts: 202
Joined: Fri Jun 05, 2009 10:49 pm
Location: Guess

Post 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.
The whole "system" is a number of people creating a code all together, this code loops and is there for a "system".
System Zero could also be confirmed with one word "Hacker's"
User avatar
koolpop0
Posts: 259
Joined: Thu Sep 20, 2007 11:03 pm
Location: In the binary of this system
Contact:

Post 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
Image
Mad Hacker
Posts: 7
Joined: Tue May 19, 2009 12:02 am

Post 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
~~~~
note: i'm not necessarily a mad hacker, i'ts my screen name
alternateblackhat
Posts: 74
Joined: Sat Dec 05, 2009 1:23 am

Post 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
Post Reply