Re:Ask HN: My 12 year old nephew wants to make a game, how d...
by kozukumi on Saturday June 13, 2015 @12:09PM
(#9711426)
I think Java is a nice teaching tool. It has a good OO design and you can't break anything with it. No worrying about memory, etc. The only real drawback is the verbosity and having to "just do" things at the beginning (such as ignoring just what public static void... means).
[ Parent
| on HN ]
Re:Ask HN: My 12 year old nephew wants to make a game, how d...
by rikrassen on Saturday June 13, 2015 @12:27PM
(#9711488)
Why do you prefer a compiled language over a scripting language? I learned Java in high school and struggled with all of those
> "just do" things
e.g. `String in = new BufferedReader(new InputStreamReader(System.in)))` in Java vs `in = input()` in Python.
I think it's important for beginners to understand why they're writing the code they are, and how the different parts of their code fit together. In Java your "main" function is part of a class; I have no idea how to explain that to a younger student.
I am really interested in teaching programming, so I'd like to hear your thoughts.
Re:Ask HN: My 12 year old nephew wants to make a game, how d...
by kozukumi on Saturday June 13, 2015 @02:37PM
(#9712076)
If I am honest it is just that I prefer compiled languages. I like Java because it is hard to do stupid things in it but still compiles down to something I can hand over to other people without them being able to break it by opening it in notepad accidentally.
Obviously I see the benefit of simplifying things like we see in Python, Ruby, etc.
A lot of people don't like Java because of how strictly OO it is.