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

Thread: very, very new to programming. need help

  1. #1
    Join Date
    May 2015
    Location
    California
    Beans
    43
    Distro
    Ubuntu 15.04 Vivid Vervet

    very, very new to programming. need help

    I am a beginner when it comes to programming, and I am currently attempting to learn Java. Does anyone have any suggestions as to what I should do or where i should start? I have everything i need already (JDK/JRE, Compiler) to run my script. Im a little lost at the moment with how to "practice" and learn. What should i be doing?
    Avoid the Gates of hell. Use Linux.

  2. #2
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: very, very new to programming. need help

    Quote Originally Posted by sypher2 View Post
    I am a beginner when it comes to programming, and I am currently attempting to learn Java. Does anyone have any suggestions as to what I should do or where i should start? I have everything i need already (JDK/JRE, Compiler) to run my script. Im a little lost at the moment with how to "practice" and learn. What should i be doing?
    Programming... this is how you learn. Make mistakes, see how others solved the same problem (read their code), ask questions... To get started find small exercise programs, then find things you would like to do and code them.
    Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.

  3. #3
    Join Date
    May 2015
    Location
    California
    Beans
    43
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: very, very new to programming. need help

    Quote Originally Posted by ofnuts View Post
    Programming... this is how you learn. Make mistakes, see how others solved the same problem (read their code), ask questions... To get started find small exercise programs, then find things you would like to do and code them.
    where can i find small excercise programs? i know a little bit of java, and a little bit of python.
    Avoid the Gates of hell. Use Linux.

  4. #4
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,172
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: very, very new to programming. need help

    http://learnpythonthehardway.org/book/

    There is the same site for Java, but only the first chapters are available online for free.
    Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.

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

    Re: very, very new to programming. need help

    Add an IDE such as Eclipse to the mix. As a very early beginner you'll want to know how the very fundamentals of the compiler and stuff like the Java classpath work, but one of the great strengths of Java, despite the enormity of the tech stack, is also its discoverability. Java may also be verbose, but having an IDE constantly teaching you what is available and doing your refactorings for you is a huge boost to how fast you grasp it.

    I really wish I had understood this over 15 years ago when I was more of a "do it the hard way" kind of guy.
    LambdaGrok. | #ubuntu-programming on FreeNode

  6. #6
    Join Date
    May 2015
    Location
    California
    Beans
    43
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: very, very new to programming. need help

    I see. Thank you for your replies. I have added Eclipse to my arsenal. Im trying to learn this by myself but I don't have a starting point. Can you recommend any books that I can read and understand the basics from?
    Avoid the Gates of hell. Use Linux.

  7. #7
    Join Date
    Oct 2014
    Beans
    19
    Distro
    Ubuntu Studio 14.04 Trusty Tahr

    Re: very, very new to programming. need help

    Quote Originally Posted by sypher2 View Post
    Im trying to learn this by myself but I don't have a starting point. Can you recommend any books that I can read and understand the basics from?
    Don't try to learn programming on your own. The book I started with was "Sam's teach yourself Java", and that's unfortunately the only one I have read in terms of programming Java.
    Java, those were good times...

  8. #8
    Join Date
    Dec 2010
    Beans
    136
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: very, very new to programming. need help

    Yo, welcome to adventures of coding!!! I was just in the same situation as yours when I was clueless as to how to approach and learn java and hope my past experiences and advice will suffice to help you in your journey.

    The first book I used was called Java in Easy Steps (A green looking book for 10 british sterling or 13 dollars) and I was doing basics of everything (starting methods like Main, file writing and reading, outputting text and later some building GUI using out-of-the-box libraries). I have found it quite useful and for reference whenever I needed to look at certain things. Each time I completed a chapter, I would think of a tiny programs I could write using what I learned in previous/past chapters and that way I exercised not only my ability to do what I wanted to write, but also to know how to write nicely written code and exercise your memory(I will explain later in this post)! However, this book may have some flaws and one of the code snippets did not work as expected so you would eventually use your brains and curiosity as to why it's not working by looking on the web.
    Also I strongly recommend reading Java's official tutorial pages (http://docs.oracle.com/javase/tutorial/), because they are written by Java programmers for programmers and it's got introduction to object-orientation (important!!!) paradigm and how certain things work in detail. When you know how and why things work, you are better programmer rather than the monkey who codes all the time!

    About IDEs and compilers....
    If you starting to learn Java and deciding to take this as your career choice, I would recommend starting coding in a simple text editor (yes, a very dumb text editor) and use command line to compile your files and execute them that way. Although I agree with CptPickard about using IDE to help you fix simple errors and help coding a bit easier, my recommendation will help you grasp and engulf your brain into understanding and getting used to the syntax in the long run AND you do not have to worry about extra - features over bulked IDEs provide (that way you're more confident in debugging your errors due to your logic, run-time or compilation error made by you and you only) so you concentrate more on understanding of how and why things work. Also another reason it will help you is that you will develop a habit of 'picturing' (or drafting, programmer's instinct etc) after you have done so much coding without worrying about anything else. For example, I give you a problem to solve and you may have an 'idea' popped up in your head on how to solve it, and you program it and through trial and error you finally have a solution for it. When I was in my university class for programming components (C#) last year, I have finished a full assignment over weekend (also nailing extra marks for extra features and ****) just 4 weeks before deadline. All because I already figured out that certain 'problem' by having an 'idea' (so using my instinct and curiosity) that helped me with my development, while all students I knew would have to do tutorials and look up on the internet on how to solve it and it would take them a lot of time to do it because they are 'new' to programming.
    Let me summarise on this: More practicing and learning on how things work ---> More using your brain rather than look up on your internet ---> Save tonnes of time and have more fun do it yourselves and complete project sooner!
    There is a problem with this recommendation though, and it's a repetition of writing over and over again. But that's the point of it. You only can exercise your brain to program in any language and grasp understanding via repetition and it's hard work that can annoy as ****, but it's worth it coz I programmed that way for about a year and you already know the story that I told. Furthermore, when you decide to go on a little bit 'bigger' problems to get out of your 'comfortable zone', it may be painful to use my recommendation, but here's a short list of what I learnt through my mistakes after solving more problems:

    1. My code was a mess and debug its logical errors was a mess --> thus outputting what program processed was essential AS WELL AS make certain things into functions like modules to ease debug and logic.
    2. My code didn't utilise objects to ease my development and had fewer understanding how functions would be useful in this problem ---> thus learning the importance of objects and understand how functions can be used in different situations and what they can do.

    My main point is this: Do first version that made you suffer, assess your mistakes, research and learn to solve them, do it again with improvements and solutions found and start it from scratch.
    I had one project and let me tell you this, it was hell, but one hell of a time that made me realise and appreciate the solutions and what java could offer to ease my development, thus making me a better programmer and live to tell a tale to others to make newcomers better at what they do.

    My last word on practice: just practice and have fun. There is a dart player named Phil Taylor (who has been a UK dart Champion for over a long time!!!) and he practiced every day, every holiday and on christmas days!!!
    Adios and have fun!!!!!
    "If you are in hell, keep going." Winston Churchil
    ubuntucrazygeek.blogspot.com
    http://motivatedsuccess.tumblr.com/
    http://pavelexpertov.tumblr.com/

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

    Re: very, very new to programming. need help

    Hmm. To each their own, but I really would strongly suggest preferring the faster feedback loop an IDE provides you. There is nothing that makes you nobler by doing the grunt work of manually compiling, not getting immediate error hints and forcing yourself to memorize APIs. The more exposure and feedback you're getting per time unit, the quicker you'll learn, and an IDE helps you in that.

    Also, when you move to higher-level OOP design, you really want an IDE to help you mangle your code into whatever new forms you desire. If you do it by hand in a verbose language such as Java, you become afraid of refactoring because of the work involved, and you end up never experimenting enough.
    LambdaGrok. | #ubuntu-programming on FreeNode

  10. #10
    Join Date
    May 2015
    Location
    California
    Beans
    43
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: very, very new to programming. need help

    Thank you for both of your suggestions. I think i will have my IDE on hand, but also try to compile scripts on a regular text editor. why not get the best of both worlds?
    Avoid the Gates of hell. Use Linux.

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
  •