AskHN: Should us youngins be taking a Java class as a first programming class?
I'll be starting with a computer engineering program this fall (curriculum: http://resources.msoe.edu/cdb/programs.php?progCode=SE2.4 ). My advisor has chosen classes for me -- and I see that one of the classes I'm taking, 'Software Development I', introduces the concepts of programming with Java.
After witnessing so many rants everywhere at just about all social bookmarking websites about the atrocities of Java (and especially nowadays, with what Oracle is doing), I find this a little bit unsettling. Should I just take it as my first programming language, or should I protest and try to find a way around it?
(Sorry, I know this isn't the forum to ask for personal advice in the manner that I am doing -- but I think the discussion that might ensue might interest the community, so that's why I'm asking).
(
13 comments
| 11 points
| on HN
)
It's the most popular language in the world for a reason. There are lots of great things about Java, some a direct result of it's popularity: Fantastic tools, a tonne of very mature and reliable open source libraries, great performance in most situations, and last but not least: A tonne of jobs.
By no means is Java dying. A lot of sexy new technologies are rooted in Java. Here's 3 popular among the HNers: Clojure, Cassandra, and JRuby. You wanna hack on any of these, you better know Java.
Java is far from perfect but it's also very far from horrible. It is most definitely useful. Take the course. You'll learn a lot.
Personally, I think C would make a better choice, simply because it forces you to understand the underlying architecture, and appreciate the thinking behind the constructs of slightly higher-level languages. I'm sure I'm in the minority on that, though. Java is a decent choice, however, as it's very generic and allows you to focus on things like data structures and algorithms without necessarily having to go through that steep of a learning curve.
Good luck, it will be fun I'm sure.
a) It levels the playing field for people who have and haven't programmed before (a much smaller percentage of new students have probably had previous experience with Scheme)
b) It forces students to take on a new way of thinking.
As some other people have said, it doesn't really matter what language you learn. It's important that you learn to think and solve problems.
class Hello { public static void main(String args[]) { System.out.println("Hello"); } }
Is pretty horrendous to explain to students vs.
print("hello")
You have to tell them to just print the magic words to get started, and they all want to know what the hell it means. And then you have to use the very slow, large, and irritating java SDK install process and some heavy IDE because you can't just print python and test stuff out. Or python pyscript.py. It would even be more horrendous to start out teaching with by how to use the relatively estoric command line compiler, and then packaging a jar and then running that somehow. A lot of java just gets in the way of just learning programming.
But it's popular, and it's used by a very large majority of employers, and there are employers that want co-op students after 2 semesters so they do that.
The important thing to know here is that just because you learned Java doesn't mean you're a Java guy. If your teacher is worth his salt he'll quickly make you realize that the foundations that Java teaches can be ported to every language.
A large proportion of Software Development (as oppossed to Game dev or Web dev) jobs are in Java anyways, so it's pretty sensible.
Hope your instructor is providing good handouts to get you started. If not, have a look at BlueJ. It has been developed to ease you into Java programming without the stumbling blocks that JDK throws at novices.
But if you also want to learn something else for interest sake, try python with this http://www.greenteapress.com/thinkpython/html/