4 ms·
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. `Strin
by rikrassen 11y ago
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.
- kozukumi 11y agoIf 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.