Evinceo wrote:
I'd recommend learning to write basic Imperative stuff before you hit the OO, but since you know python you're probably past that. All I can suggest is that when you try to teach yourself OOP, make sure you're project maps easily to objects-a game is a great example-so you can learn good object design and not just how to make a class.
(Java's GUI library works really well, but to use it you will end up writing some bizzare code. They insist on using listener objects everywhere, and unless you know the wierd tricks of Java's class system, you'll be writing a lot of extra classes. The textbook I used in a Java class used anonymous classes as listeners, basically begging for first class functions.)
Yeah, ive figured that out lol I am hitting the basic stuff like loops and flow control. I covered the import thing. Which I found to be very interesting!! There are a few ways to import packages. With the aterisk, full path imports, and implicitly inside the classes.
So, I could either do
import javax.swing.*; or
javax.swing.JOptionPane; or when using a function from JOptionPane like showMessageDialog i could implicitly declare it like so,
javax.swing.JOptionPane.showMessageDialog(null, "Java GUI.");. This language is great!
I don't know much Python. Just the basics. I never got into OO. I learned the Python basics to use PyGTK but it turns out that it is super ugly and the programs are longer than GTK. I am a C native and GTK looks so much cleaner and is much shorter. So, I stoped using python. I had no need for it. Although, i have to say, sockets in python are awesome! Vesus the very tedious C sockets. Writing a chat in C is so much longer, error prone, and uglier than Python sockets. Python makes writing a select server easier!
What you have said about Java has intimidated me! You make it seem like its going to be a super long journey lol I hope it comes easy!