Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to get knee-deep in Java

  1. #1
    Join Date
    Apr 2008
    Location
    Denmark
    Beans
    219
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    How to get knee-deep in Java

    Ladies and gentlemen,


    I've always hated Java and therefore avoided it like the plague. Now the unfortunate thing has happend, that a Lisp has been implemented on top of a JVM, which means I have to learn alot of Java, really really fast.

    Can I have some of you Java-gurus fill me in on how I in the fastest possible pace, become familiar with as many of the major (most useful Java Classes) that Java has?

    Is there something similar to CodeProject.com (Which is particularily good for C++, C# and ASP.Net) to see how alot of people solve various issues using Java?

    Thanks,
    /Lau
    "“For everyone who asks receives, and he who seeks finds, and to him who knocks it will be opened."

  2. #2
    Join Date
    Dec 2007
    Location
    UK
    Beans
    571
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to get knee-deep in Java

    I dont know all that much about java yet either, but I found the stuff on Sun's website helpful and easy to understand. Also, if you have netbeans with the javadocs installed you can find out a lot about most things via the code completion; i found that very handy.

  3. #3
    Join Date
    Apr 2008
    Location
    Show me state, USA
    Beans
    162
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to get knee-deep in Java


  4. #4
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: How to get knee-deep in Java

    "Head-first Java" and Bruce Eckel's "Thinking in Java" are extremely good books.

    Syntax of Java is simple enough: problem is to learn the library. I read somewhere that instead of "spaghetti code" in Java we have "Ravioli code": hundreds of small objects with different fillings, you need to try each to learn what is inside. There is no way to learn such vast and byzantinely complex library fast - you learn subset you need, possibly with a help of a guru who wants what you need, to save you time. First time trying to grok it is like trying to drink from a firehose

  5. #5
    Join Date
    Apr 2007
    Beans
    14,781

    Re: How to get knee-deep in Java

    Quote Originally Posted by pmasiar View Post
    "Head-first Java" and Bruce Eckel's "Thinking in Java" are extremely good books.

    Syntax of Java is simple enough: problem is to learn the library. I read somewhere that instead of "spaghetti code" in Java we have "Ravioli code": hundreds of small objects with different fillings, you need to try each to learn what is inside. There is no way to learn such vast and byzantinely complex library fast - you learn subset you need, possibly with a help of a guru who wants what you need, to save you time. First time trying to grok it is like trying to drink from a firehose
    Thinking In Java is on my wiki (thanks to Bruce Eckel for allow it to be downloaded).

    Java annoyed me when I learned it because of all those libraries. I felt a need to use C.

  6. #6
    Join Date
    Apr 2006
    Location
    Slovenia
    Beans
    370
    Distro
    Ubuntu Development Release

    Re: How to get knee-deep in Java

    With learning programming languages is the same as with programming itself - you learn only what you need and don't try to learn upfront. I never had any problem with Java class library this way. The net is also full of java so usually when I need something I find it fast via google.

    Of course things like reading from a file can be hell in Java and the language itself is verbose, but once you reach a certain level it is fun to program in it (however not more fun than programming in python, smalltalk or groovy).

  7. #7
    Join Date
    Feb 2007
    Location
    Heaven
    Beans
    486
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to get knee-deep in Java

    Java is too large, there are too many areas, mobile, web, desktop, 3D, TV, Card, which one do you wanna learn?
    Java is enterprise oriented, that's why it's verbose and has so many classes - you have lots of classes you don't have in other languages and many of them you'll never use (like Corba).
    When programming GUI (and other areas) I find "The Java tutorial" by Sun really nice, it contains virtually anything, and it's up to date and fit for Java 6!!:
    http://java.sun.com/docs/books/tutor...ybigindex.html

    The latest version of "Thinking in Java" is way too verbose, many people think that he has gone too much into philosophy forgetting that readers might be busy programmers, he doesn't treat all the practical aspects of Java you're gonna face, he talks a lot about "why" while you only need/want to know "how".

    Don't expect to do _serious_ programming after a month or so, and there will also be frustrations just because it's another language, it always happens, to people going from .Net to Python, from Java to C++.
    And by the way, make sure you don't install OpenJDK since it (still) has seriuos problems with graphics rendering, better install Sun's JDK "sudo apt-get install sun-java6-jdk".
    NetBeans is very intuitive and easy to use, it supports Java best off all keeping track of what you're doing and suggesting what you should do, IMO when it comes to Java - use NetBeans, when C++ - Eclipse or something alike.
    62°23′30″N 145°09′0″W
    ёёмаёё..

  8. #8
    Join Date
    Apr 2008
    Location
    Denmark
    Beans
    219
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to get knee-deep in Java

    Big thanks to everyone who posted.

    Especially the "dont learn upfront" comment was what I needed to hear

    If anybody else out there has a gold-mine, feel free to share.


    /Lau
    "“For everyone who asks receives, and he who seeks finds, and to him who knocks it will be opened."

  9. #9
    Join Date
    Aug 2006
    Location
    60°27'48"N 24°48'18"E
    Beans
    3,452

    Re: How to get knee-deep in Java

    Mind you, Java is probably the only language on Linux that has the sort of VS-kind tools you're missing from Windows... when it comes to the large libraries, the "IntelliSense" of Eclipse or Netbeans is very helpful, especially if you also hook the Javadoc-commented sources to the IDE so that you not only get the method signatures but also their descriptions in the pop-up box.
    LambdaGrok. | #ubuntu-programming on FreeNode

  10. #10
    Join Date
    Apr 2007
    Location
    Hungary
    Beans
    136
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to get knee-deep in Java

    you can try this --> http://www.java2s.com/
    tons of little Java code pieces organized

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •