
-----------------------------------
aserghuil
Tue Jan 10, 2006 3:41 pm

Learning Java. Is there any compiler.
-----------------------------------
I was wondering if java has any compiler program like turing. I am new to java and i want to self teach my self so if there is any way to get a compiler or any other way to practise java please tell me thanks.

-----------------------------------
[Gandalf]
Tue Jan 10, 2006 4:20 pm


-----------------------------------
You can find the compiler, and anything else you will need at java.sun.com.

-----------------------------------
person
Tue Jan 10, 2006 5:02 pm


-----------------------------------
If you have learnt turing before, I would suggest that you use something like eReady, this way the code you have writen will be organized in a somewhat familiar format while in a completely different language.

If you don't want to use eReady, I would suggest that you use Eclipse or Netbeans.

-----------------------------------
wtd
Tue Jan 10, 2006 5:15 pm


-----------------------------------
Yes, let's confuse learning the Java programming language with learning a particular environment for dealing with Java code.

Learn to use the command-line tools.  They're simple and consistent.

-----------------------------------
person
Tue Jan 10, 2006 5:24 pm


-----------------------------------
If he starts off using something like NetBeans, he's likely to get pretty confused by how confusing the environment looks. NetBeans also has many functions that you really don't need if you're starting to learn the language.

-----------------------------------
aserghuil
Wed Jan 11, 2006 8:59 pm


-----------------------------------
Thanks for the help i really really appericiate this.

-----------------------------------
MysticVegeta
Sat Jan 14, 2006 2:03 pm


-----------------------------------
If he starts off using something like NetBeans, he's likely to get pretty confused by how confusing the environment looks. NetBeans also has many functions that you really don't need if you're starting to learn the language.

I would say the hsa console would confuse him even more when he comes out of beginner stage of Java. Drop ready.

-----------------------------------
person
Sat Jan 14, 2006 2:40 pm


-----------------------------------
I would say the hsa console would confuse him even more when he comes out of beginner stage of Java. Drop ready.

no one said u had to use hsa.console if ur using ready

-----------------------------------
wtd
Sat Jan 14, 2006 2:46 pm


-----------------------------------
Another issue with Ready, though is that that auto-formatting thingy formats code in a way that conflicts rather severely with accepted Java style.

-----------------------------------
Hikaru79
Sat Jan 14, 2006 6:36 pm


-----------------------------------
Another issue with Ready, though is that that auto-formatting thingy formats code in a way that conflicts rather severely with accepted Java style.
It does? in what ways? The only auto-formatting Ready even attempts at all is indentation. The only issue I could possibly see is the fact that Ready puts { and } on their own lines (which, btw, a lot of professional Java programmers do anyway). So what do you mean?

-----------------------------------
wtd
Sat Jan 14, 2006 6:52 pm


-----------------------------------
Another issue with Ready, though is that that auto-formatting thingy formats code in a way that conflicts rather severely with accepted Java style.
It does? in what ways? The only auto-formatting Ready even attempts at all is indentation. The only issue I could possibly see is the fact that Ready puts { and } on their own lines (which, btw, a lot of professional Java programmers do anyway). So what do you mean?

Spaces between parentheses and the method names they're attached to.

Also, doesn't it attach extraneous "// end method foo" comments?

-----------------------------------
Hikaru79
Sat Jan 14, 2006 7:13 pm


-----------------------------------
Another issue with Ready, though is that that auto-formatting thingy formats code in a way that conflicts rather severely with accepted Java style.
It does? in what ways? The only auto-formatting Ready even attempts at all is indentation. The only issue I could possibly see is the fact that Ready puts { and } on their own lines (which, btw, a lot of professional Java programmers do anyway). So what do you mean?

Spaces between parentheses and the method names they're attached to.

Also, doesn't it attach extraneous "// end method foo" comments?

You mean like: public static void main (String [] args) instead of public static void main(String [] args)? Because to be honest, I prefer the first one anyway, and I've seen it everywhere. I think its largely a matter of taste, and anyway, its a small enough issue that its not like Ready is unbearable for it.

-----------------------------------
wtd
Sat Jan 14, 2006 7:24 pm


-----------------------------------
Actually, it should be:

public static void main(String[] args)

I find the version you prefer to be bordering on unreadable.  :)

Parens with a name butted right up against them are method calls.  Any other parens exist solely to clarify otherwise ambiguous precedence.

-----------------------------------
Hikaru79
Sat Jan 14, 2006 7:29 pm


-----------------------------------
Drat :( I checked the Sun style guidelines ( http://java.sun.com/docs/codeconv/html/CodeConventions.doc5.html ) and they, of course, agree with you.

I hope I can break this habit. :(

-----------------------------------
[Gandalf]
Sat Jan 14, 2006 7:31 pm


-----------------------------------
[url=http://www.compsci.ca/v2/viewtopic.php?t=10633]The highly neglected RTP review :)

Though I agree with Hikaru, that kind of formatting seems better to me, except for the extraneous "// end method foo" comments.  The space after the method name makes it more readable.

-----------------------------------
wtd
Sat Jan 14, 2006 7:39 pm


-----------------------------------
Does RTP auto-indent using spaces or tabs?

-----------------------------------
wtd
Sat Jan 14, 2006 7:44 pm


-----------------------------------
Auto-indentation also fails to take something very important into account...

Good code formatting is something you should be doing as you go.  Good code formatting is not purely an aesthetic concern.  It affects your ability to find bugs in code.  It makes the code in general easier to follow, and when you have consistently formatted code, some bugs just visually stand out.

Also, keep in mind that finding bugs in code is not something you should be doing when you finish writing it.  It is an ongoing part of the coding process.  As you code, you should be looking for bugs constantly and almost subconsciously.

-----------------------------------
Hikaru79
Sat Jan 14, 2006 7:57 pm


-----------------------------------
Does RTP auto-indent using spaces or tabs?

Spaces.


Though I agree with Hikaru, that kind of formatting seems better to me, except for the extraneous "// end method foo" comments. The space after the method name makes it more readable.
Actually, the "//end method foo" only appears on methods that are auto-generated from the Boilerplates. If you don't use the boilerplates (and nobody really does), they aren't there. So that's a moot point.

Auto-indentation also fails to take something very important into account...

Good code formatting is something you should be doing as you go. Good code formatting is not purely an aesthetic concern. It affects your ability to find bugs in code. It makes the code in general easier to follow, and when you have consistently formatted code, some bugs just visually stand out.

Also, keep in mind that finding bugs in code is not something you should be doing when you finish writing it. It is an ongoing part of the coding process. As you code, you should be looking for bugs constantly and almost subconsciously.
What does all that have to do with auto-indentation? :P If someone isn't properly checking their code just because RTP can indent for them, then they have more serious problems than just their choice of editor.

-----------------------------------
wtd
Sat Jan 14, 2006 8:22 pm


-----------------------------------
Granted, but the presence of automatic formatting would seem to encourage simply leaving that for the end of a project.
