Posted: 11/11/2012 5:23:07 AM EDT
|
Any Java programmers on the board? I have 4 classes left for my bachelors and 2 of them are Java. It is kicking my ass, I'm not a programmer and I've never had it explained in a way where it made sense.
Any good resources or explanations that I could be pointed to? |
|
Quoted:
I've had a little. What's the particular questions you are wondering about? Maybe we can all learn together? How does it fucking work???
No particular question unfortunately. Main problem is I just don't understand programming really. Trying understand methods, objects, parameters etc, etc. Especially when it starts involving multiple classes and class files, or more than 20-30 lines of code. How the parts interact and what they do. |
|
Quoted:
Quoted:
I've had a little. What's the particular questions you are wondering about? Maybe we can all learn together? How does it fucking work???
No particular question unfortunately. Main problem is I just don't understand programming really. Trying understand methods, objects, parameters etc, etc. Especially when it starts involving multiple classes and class files, or more than 20-30 lines of code. How the parts interact and what they do. Oh so why to use Object Oriented programming as opposed to say something more linear such as a script? |
|
Quoted:
Quoted:
Quoted:
I've had a little. What's the particular questions you are wondering about? Maybe we can all learn together? How does it fucking work???
No particular question unfortunately. Main problem is I just don't understand programming really. Trying understand methods, objects, parameters etc, etc. Especially when it starts involving multiple classes and class files, or more than 20-30 lines of code. How the parts interact and what they do. Oh so why to use Object Oriented programming as opposed to say something more linear such as a script? I understand the why, just not the how. |
|
http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208
Best 25 bucks you'll ever spend for a basic introduction to Java. If you have questions, don't hesitate to ask, I've got a BSCS and quite of bit of the work I did was in Java. |
|
Quoted:
http://www.amazon.com/Head-First-Java-Kathy-Sierra/dp/0596009208 Best 25 bucks you'll ever spend for a basic introduction to Java. If you have questions, don't hesitate to ask, I've got a BSCS and quite of bit of the work I did was in Java. I'll check it out, thanks. |
|
Quoted:
Quoted:
I've had a little. What's the particular questions you are wondering about? Maybe we can all learn together? How does it fucking work???
No particular question unfortunately. Main problem is I just don't understand programming really. Trying understand methods, objects, parameters etc, etc. Especially when it starts involving multiple classes and class files, or more than 20-30 lines of code. How the parts interact and what they do. You don't have a Java problem, you have an OOP problem. OOP is geared towards thinking about the components ("objects") you want to use to make the app do what you want it to do. Objects allow you to create "chunks" of code that define a programming structure and related functions and procedures, and then be able to extend those chunks for other, related structures. Every "child" object contains all the data structures, funcations, and procdures of the parent object. So you can define an object for say, a piece of fruit (has seeds, tastes good, etc.) and then extend that by creating a child object for an apple (has all the fruit capability plus comes from a tree, etc.) http://en.wikipedia.org/wiki/Object-oriented_programming If you don't have a fundamental grasp of OOP you're going to have huge issues with Java or any other modern language. I taught myself OOP back in the early 90's with Turbo Pascal for Windows and then later with Delphi. Once you get over the conceptual OOP hump you'll find it's an excellent technique. It forces you to think ahead more and define good parent objects, which can be re-used at will with extended capability via child objects. The concept of inheritance in OOP is critical. |
|
Quoted:
Quoted:
Quoted:
I've had a little. What's the particular questions you are wondering about? Maybe we can all learn together? How does it fucking work???
No particular question unfortunately. Main problem is I just don't understand programming really. Trying understand methods, objects, parameters etc, etc. Especially when it starts involving multiple classes and class files, or more than 20-30 lines of code. How the parts interact and what they do. You don't have a Java problem, you have an OOP problem. OOP is geared towards thinking about the components ("objects") you want to use to make the app do what you want it to do. Objects allow you to create "chunks" of code that define a programming structure and related functions and procedures, and then be able to extend those chunks for other, related structures. Every "child" object contains all the data structures, funcations, and procdures of the parent object. So you can define an object for say, a piece of fruit (has seeds, tastes good, etc.) and then extend that by creating a child object for an apple (has all the fruit capability plus comes from a tree, etc.) http://en.wikipedia.org/wiki/Object-oriented_programming If you don't have a fundamental grasp of OOP you're going to have huge issues with Java or any other modern language. I taught myself OOP back in the early 90's with Turbo Pascal for Windows and then later with Delphi. Once you get over the conceptual OOP hump you'll find it's an excellent technique. It forces you to think ahead more and define good parent objects, which can be re-used at will with extended capability via child objects. The concept of inheritance in OOP is critical. That is definitely part of my problem. |
|
http://docs.oracle.com/javase/tutorial/
I am almost done with my first semester of Java right now. Just remember that everything is done as an object. Objects have properties that describe the object and methods that allow you to perform actions on and with those properties. Your classes are templates for the object to be used later within the class that contains your main method. |
|
Do yourself a favor and buy, borrow, or steal this book: Design Patterns .
You're learning Java to learn OO concepts, patterns, and theory. Java is a dying language, so make the most of learning the design and application topics that are incredibly transferable to other syntaxes (languages). |
|
Quoted:
Do yourself a favor and buy, borrow, or steal this book: Design Patterns . You're learning Java to learn OO concepts, patterns, and theory. Java is a dying language, so make the most of learning the design and application topics that are incredibly transferable to other syntaxes (languages). Calling it a dying language seems disingenuous. It may be on the decline but it is still the #2 most popular language in use and the #1 OOP language. |
|
Quoted:
Quoted:
Do yourself a favor and buy, borrow, or steal this book: Design Patterns . You're learning Java to learn OO concepts, patterns, and theory. Java is a dying language, so make the most of learning the design and application topics that are incredibly transferable to other syntaxes (languages). Calling it a dying language seems disingenuous. It may be on the decline but it is still the #2 most popular language in use and the #1 OOP language. Maybe just wishful thinking...do you see a lot of new lines of code written in Java or new development projects who have selected Java as a foundation? Or know of a good place to get data like that? I don't write much code these days but Java is certainly taking a beating in the security field..The Sun/Oracle JVM has proven to be bug ridden and more of a liability than anything. |
|
Quoted:
Quoted:
Quoted:
Do yourself a favor and buy, borrow, or steal this book: Design Patterns . You're learning Java to learn OO concepts, patterns, and theory. Java is a dying language, so make the most of learning the design and application topics that are incredibly transferable to other syntaxes (languages). Calling it a dying language seems disingenuous. It may be on the decline but it is still the #2 most popular language in use and the #1 OOP language. Maybe just wishful thinking...do you see a lot of new lines of code written in Java or new development projects who have selected Java as a foundation? Or know of a good place to get data like that? I don't write much code these days but Java is certainly taking a beating in the security field..The Sun/Oracle JVM has proven to be bug ridden and more of a liability than anything. I am just starting to learn so I can't speak to that. If you look at tiobe.com though they track language popularity. Java is still a very hot language and with the advent of android it should be for some time to come. |