How did you learn java?

Discussion in 'Bukkit Discussion' started by GoToTheSatan, Oct 25, 2013.

?

How did you started learning Java?

Poll closed Nov 8, 2013.
  1. YouTube video's

    54.3%
  2. Reading Java books.

    28.6%
  3. Going to the Java site

    20.0%
  4. Keep practicing in Eclipse.

    42.9%
  5. Others(Please comment what)

    17.1%
Multiple votes are allowed.
Thread Status:
Not open for further replies.
  1. Offline

    GoToTheSatan

    So I'm new, and I wanted to learn Java, only I can't really find a good way to do it. I decided to make a poll, and check out the results. If you have any questions/things to say, please comment it down :)
     
  2. Offline

    Lolmewn

    I just did. Checking code of others, figuring out what it does, using that knowledge to fix up stuff...
    And of course the wiki! http://wiki.bukkit.org/
     
  3. Offline

    se1by

    Started off by learning the most basic things, like the calculator (nearly) every book wants you to code.
    I quickly began to write bukkit plugins, infact I learned java so I could code them!

    So, here are my advices:
    • Learn the java basics
    • Write simple plugins
    • Know the bukkit javadocs!
    • It's ok to copy some code, as long as you understand what it does
    • Take a look on other people's code and try to understand it
    Knowing the api is really important. You should at least know how to look something up in the javadocs.

    EDIT:
    By the way, there is no need to buy an expensive book to learn java.
    There are a lot of tutorials out there, just google a bit and you'll save some bucks (and these kind of books get expensive, trust me).
    I bought only two programming books to day:
    One was a book about general java, didn't teach me anything... 60€ wasted .
    The second was a book about 3D programming, it is really good and I couldn't find a tutorial online which was nearly as good as the book.

    To conclude:
    Save your money, buy the books later if you want to learn something specific.
     
    defqon15 likes this.
  4. Offline

    GoToTheSatan

    What do you mean with Simple plugins?
     
  5. Offline

    se1by

    Don't start like "I'm gonna build the next WorldGuard".
    Take small steps. Think about plugins you could code in a few hours.
     
  6. Offline

    Deathmarine

    You don't even need simple plugins. To start write basic software with a static main in eclipse. Try to hone your skill by enhancing what you can do via text or by modifying objects and changing variables. Then when you have a basic understanding I would recommend following tutorials. In all honesty the way that I learned may not work for you.

    You need to understand this.
    http://docs.oracle.com/javase/tutorial/java/concepts/index.html

    Here is a hello world app to help you understand. Try to understand why Hello World is printed twice.
    Code:java
    1. public class MainClass {
    2. public MainClass() {
    3. this.prntGreeting();
    4. }
    5.  
    6. public static void main(String arguments[]) {
    7. MainClass main = new MainClass();
    8. main.prntGreeting();
    9. main.terminate();
    10. }
    11.  
    12. public void prntGreeting() {
    13. System.out.println("Hello World!");
    14. }
    15.  
    16. public void terminate() {
    17. System.exit(0);
    18. }
    19. }


    Finally check out some smaller plugins to see how they are structured.
    Do not duplicate others, understand what they are doing and why it is being done that way.
    https://github.com/deathmarine
    Feel free to skim over my github, there are many small plugins that you can learn from and larger ones when you grasp an understanding.
     
  7. Offline

    Mike1022

    I am trying to learn Java, but there's so much to remember and it is very confusing. Could someone help me?
     
  8. @GoToTheSatan
    I am started with Java coding 2 months ago, and I am learning every day. I watched a few Tutorials and after that I just experimented. Just did it like Lolmewn . But what really helps (also for Mike1022) is try to understand what you are doing, try to understand what's actually happening. Like this one:
    Show Spoiler

    Code:java
    1. @EventHandler
    2. public void nodrop(PlayerDropItemEvent event){
    3. event.setCancelled(true);
    4. }

    What's happening here is that you literately cancel that a player drops an item or block,

    If you do this you are going to be able to easier make plugins from scratch and solve problems yourself.

    also try to remake some plugins, not the big one like essentials and worldedit, but just the smaller one. Don't release them of course, but just remake them for practice :D

    have fun! And I hope my tip's are helping you
     
    GoToTheSatan likes this.
  9. I started out by watching TheNewBoston and the udelly website for the java basics and then i came onto the bukkit forums and looked at people's mistakes and see how they were solved by others and i just tried to understand and plus im still learning everyday :D
     
  10. Offline

    GoToTheSatan

     
  11. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    My base knowledge of Java is from taking a class in school. It provided the foundation for the rest of my knowledge, which I acquired through curiosity and google searches. :)
     
    calebbfmv likes this.
  12. Offline

    GoToTheSatan

    Just a question: Do you guys think 'CodeAcademy' works?
     
  13. Offline

    theearlypc423

    How old were you when you took the class? And also how old are you anyways?
     
  14. Offline

    Benzeration

    I learned java from 10 years of computer terminal and java programming from my uncle he works for Microsoft and knows many things about computer programming. That's how I learned Java and other programming.

    Ok are you a beginner if so tell me.
     
  15. Offline

    theearlypc423

    Ehh i'd say i'm sorta beginner I mean I can make bukkit plugins without taking code from a video or a site. But yea I don't know much.
     
  16. Offline

    Benzeration

    Ok what would you like to know how to program because that is a big part what in specific?
     
  17. Offline

    GoToTheSatan

    I only know how to make anti TnT plugins :p
     
  18. Offline

    frostalf

    What helped me with java is I learned Web Developing. Some of java is very familiar to php and other web languages. So because I had the understanding of what variables, methods and functions do, as well as calling methods from other locations in web developing etc. This allowed me to pick up on java fairly quickly. :)
     
  19. Offline

    xMakerx

    I learned Java by skimming through books, watching Java tutorials on YouTube, practicing in Eclipse, messing with open-source programs to see what would happen if I changed something. I am currently developing my own program.
     
  20. GoToTheSatan
    Another tip(maybe not really for learning java, but for when you need to fix some bugs :D)
    Go thought the whole code and say to yourself what is happening when that line of code is used, most of the time you find the bug your self then :D
     
  21. Offline

    xXMaTTHDXx

    I learnt by sitting down on the computer checking out what the java docs has to offer, once I had a basic understanding of methods and classes I moved on to youtube tutorials by the new Boston. Don't just type what he does and that's it, after the tutorial delete the code Ben try to revise it in your head without the video. Take notes all the time, you may need them in time. Once I had finished that up I couldn't stress this enough but, if you don't understand your code you don't understand how to code. Read it through, does it make sense? If not what can I do to make it better? When you have some troubles don't be afraid to ask. Also learn how to read stack traces!
     
  22. Offline

    xTrollxDudex

    Buy!??

    No. I was smart and went to the library to get Java for Dummies
     
  23. Offline

    se1by

    Ifyour library got that book, good for you.
    Mine just had a book about C, written 12 years ago^^
     
  24. Offline

    xTrollxDudex

    se1by
    What the...? Try a different library
     
  25. Offline

    se1by

    xTrollxDudex
    When I started coding, I lived in a very small town, the only library was run by the church^^
     
    xTrollxDudex likes this.
  26. Offline

    Nemesis213

    I would imagine you can get a good grasp of it here without learning any bad habits:
    http://docs.oracle.com/javase/tutorial/

    ...careful learning from others code. People all have slightly different approaches and many have bad habits. I BEG you not to try to learn from my code. I used past c/cpp experience and hacked code together during drunken late nights till it did what I wanted :p
     
    Axe2760 likes this.
  27. Offline

    ZeusAllMighty11

    I learned java primarily by google searches and playing around with it, and viewing other's sources
     
Thread Status:
Not open for further replies.

Share This Page