Computer Science Canada Learning Java. Is there any compiler. |
Author: | aserghuil [ Tue Jan 10, 2006 3:41 pm ] |
Post subject: | 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. |
Author: | [Gandalf] [ Tue Jan 10, 2006 4:20 pm ] |
Post subject: | |
You can find the compiler, and anything else you will need at java.sun.com. |
Author: | person [ Tue Jan 10, 2006 5:02 pm ] |
Post subject: | |
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. |
Author: | wtd [ Tue Jan 10, 2006 5:15 pm ] |
Post subject: | |
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. |
Author: | person [ Tue Jan 10, 2006 5:24 pm ] |
Post subject: | |
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. |
Author: | aserghuil [ Wed Jan 11, 2006 8:59 pm ] |
Post subject: | |
Thanks for the help i really really appericiate this. |
Author: | MysticVegeta [ Sat Jan 14, 2006 2:03 pm ] |
Post subject: | |
person wrote: 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. |
Author: | person [ Sat Jan 14, 2006 2:40 pm ] |
Post subject: | |
Quote: 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 |
Author: | wtd [ Sat Jan 14, 2006 2:46 pm ] |
Post subject: | |
Another issue with Ready, though is that that auto-formatting thingy formats code in a way that conflicts rather severely with accepted Java style. |
Author: | Hikaru79 [ Sat Jan 14, 2006 6:36 pm ] |
Post subject: | |
wtd wrote: 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? |
Author: | wtd [ Sat Jan 14, 2006 6:52 pm ] |
Post subject: | |
Hikaru79 wrote: wtd wrote: 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? |
Author: | Hikaru79 [ Sat Jan 14, 2006 7:13 pm ] | ||||
Post subject: | |||||
wtd wrote: Hikaru79 wrote: wtd wrote: 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:
|
Author: | wtd [ Sat Jan 14, 2006 7:24 pm ] | ||
Post subject: | |||
Actually, it should be:
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. |
Author: | Hikaru79 [ Sat Jan 14, 2006 7:29 pm ] |
Post subject: | |
Drat ![]() I hope I can break this habit. ![]() |
Author: | [Gandalf] [ Sat Jan 14, 2006 7:31 pm ] |
Post subject: | |
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. |
Author: | wtd [ Sat Jan 14, 2006 7:39 pm ] |
Post subject: | |
Does RTP auto-indent using spaces or tabs? |
Author: | wtd [ Sat Jan 14, 2006 7:44 pm ] |
Post subject: | |
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. |
Author: | Hikaru79 [ Sat Jan 14, 2006 7:57 pm ] |
Post subject: | |
wtd wrote: Does RTP auto-indent using spaces or tabs?
Spaces. Gandalf wrote: 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. Quote: 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? ![]() |
Author: | wtd [ Sat Jan 14, 2006 8:22 pm ] |
Post subject: | |
Granted, but the presence of automatic formatting would seem to encourage simply leaving that for the end of a project. |