Computer Science Canada Java Class |
Author: | goboenomo [ Thu Sep 08, 2005 9:02 pm ] |
Post subject: | Java Class |
Im starting a Computer Science course at school we're spending like 3/4 of the year working on Java.. any tips or hints.. or basics anyone could tell me? |
Author: | rizzix [ Thu Sep 08, 2005 9:29 pm ] |
Post subject: | |
Tutorials are available in the tutorial section... http://www.compsci.ca/v2/viewtopic.php?t=9576 |
Author: | goboenomo [ Thu Sep 08, 2005 9:36 pm ] |
Post subject: | |
thx |
Author: | wtd [ Thu Sep 08, 2005 9:57 pm ] |
Post subject: | |
Don't think that experimenting with other languages will somehow detract from learning Java. In particular, languages which have interactive interpreters available. Makes a good way to quickly write throw-away code. |
Author: | rizzix [ Thu Sep 08, 2005 10:23 pm ] |
Post subject: | |
yea he can try out beanshell in that case... |
Author: | wtd [ Thu Sep 08, 2005 11:36 pm ] | ||||
Post subject: | |||||
For basic concepts, most interactive interpreters will work, though Haskell might be a bit too far removed from Java in philosophy. One serious problem I have with Beahshell for learning purposes is that it doesn't show the value of expressions. For instance, something as simple as:
I should be able to see the result of that expression. The interactive interpreters for Ruby, Python, Scheme, Haskell, SML, O'Caml, Common Lisp, Pike, and others behave this way.
|
Author: | goboenomo [ Sun Oct 30, 2005 5:05 pm ] | ||||
Post subject: | |||||
wtd wrote: For basic concepts, most interactive interpreters will work, though Haskell might be a bit too far removed from Java in philosophy.
One serious problem I have with Beahshell for learning purposes is that it doesn't show the value of expressions. For instance, something as simple as:
I should be able to see the result of that expression. The interactive interpreters for Ruby, Python, Scheme, Haskell, SML, O'Caml, Common Lisp, Pike, and others behave this way.
wait.... what is that? |
Author: | goomba [ Sun Oct 30, 2005 9:01 pm ] |
Post subject: | |
wtd is just showing examples of different languages that have interactive modes, which means that you can type in commands at a prompt and get immediate output, compared to Java where you have to properly set up a class file, compile and run it. Interactive mode are definitely very useful, but you shouldn't worry about them if you are only focusing on Java since they basically don't apply. When you learn Java, try to apply Object Oriented concepts whenever possible, even if they seem unnecessary, redundant, or a waste of code. If you get into the habit of keeping code encapsulated properly in methods and classes, making bigger programs will be much easier for you. Don't write Turing in Java! |
Author: | wtd [ Sun Oct 30, 2005 9:16 pm ] |
Post subject: | |
goomba wrote: wtd is just showing examples of different languages that have interactive modes, which means that you can type in commands at a prompt and get immediate output, compared to Java where you have to properly set up a class file, compile and run it. Interactive mode are definitely very useful, but you shouldn't worry about them if you are only focusing on Java since they basically don't apply.
Interactive interpreters aren't as important in the Java world because for the most part they aren't there. Java programmers can't come to love the interactive interpreter that doesn't exist. Yet, if they're not important, why do we have Beanshell, Groovy, Jython, JRuby, etc.? |
Author: | goomba [ Sun Oct 30, 2005 9:29 pm ] |
Post subject: | |
Since they aren't "natively" part of Java, 3rd party interactive shells should be left to more advanced Java coders who already know how to program in Java without them. Obviously there's the demand for these Python emulation layers, but then again Java leaves much to be desired in pretty much ANY area compared to Python and friends. |