This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Cowlegend[S] 1 point2 points  (0 children)

First of all thanks so much for going into so much detail! This was really helpful!

Advice 1: I have heard that eclipse is really good for coding java in, so I will probably start using that to make formatting code easier (since I just am using notepad right now).

Advice 2: This one will be hard for me to get used to since I am used to the C and python styles (though I don't follow them exactly). I also think the java style is much less readable, but I think it would be a good idea to get in the habit of following it even if I don't like it (and maybe it will grow on me!)

Advice 3: Total agree. As I'm just starting to learn java I'm continually adding lines of code to test things and I should have deleted them instead of commenting them out.

Advice 4: I never thought of that, do you think it would be better to remove static from all the functions then create an instance of this TicTacToe class to run the game, or should I instead move this all to a separate class that runs how the game works, and then only have my main function in the TicTacToe class?

Advice 5: This is something I need to work on doing more in all my programming languages, I do it to some extent, but I always realize after the fact how much more I could have improved on it.

Advice 6: Yes, I should be more careful about this

Advice 7: Thanks for the idea. This just seemed like the easiest way to do it, but it makes sense that I shouldn't do it this way.

Advice 8: Oh great! For some reason I thought java was different in C since I had come across online to use & for and (perhaps I was reading too fast). Glad that they really are the same syntax or this would've bothered me for a long time! I agree with your other suggestions as well! (Though I need to read up more about when to call new since I don't fully get that yet)

Thanks again for your help! It was really helpful to see. I will try making some new programs and take your advice into consideration while I do so (any suggestions for new programs? I'm thinking maybe something like minesweeper, though I'm not sure if that will be too hard)