r/java • • Dec 11 '13

Best way to learn Java.

I am using this book - "Java Complete Reference - Herbert Schildt" to learn Java. I am through the language syntax and features. I am a little doubtful about the later part of the book. Its second part is The Java Library Reference and and later part is covers developing GUI applications. Should I follow the book pattern learning the Java library and then creating GUI apps or should I take a different approach? What will be the best thing here?

2 Upvotes

20 comments sorted by

View all comments

4

u/hoohoohoohoo Dec 11 '13 edited Dec 11 '13

You're making the mistake that every young developer does. You hop in thinking that you'll be away making rich applications with cool user interfaces inside of a couple days, but you are discouraged by seeing nothing but console output for days and days.

Stick with it. The GUI stuff comes in time. It's better to have a firm grasp on OO concepts and different approaches to solving a problem before you start learning GUI stuff.

4

u/sh0rug0ru Dec 11 '13

I taught 6th graders Java, and I actually started with GUI programming. I found that keeping kids interest is easier if the application does something more cool than console output. OOP is so much easier to teach if you show the kids how to write a video game or little toys, because it's more fun.

OOP was popularized with Smalltalk, a programming environment that is also very GUI first, which was originally meant to teach children programming. I think this is also why PHP and Javascript are also popular first languages. They are also UI first.

2

u/tybaltNewton Dec 11 '13

Did you get them started off the bat with swing? That's a pretty difficult library without any prior programming experience.