Best way to begin learning java programming.
Page 1 of 113 Replies - 1671 Views - Last Post: 01 June 2012 - 04:19 AM
#1
Best way to begin learning java programming.
Posted 25 May 2012 - 11:22 AM
Replies To: Best way to begin learning java programming.
#2
Re: Best way to begin learning java programming.
Posted 25 May 2012 - 11:49 AM
#3
Re: Best way to begin learning java programming.
Posted 25 May 2012 - 11:54 AM
#4
Re: Best way to begin learning java programming.
Posted 25 May 2012 - 12:13 PM
#5
Re: Best way to begin learning java programming.
Posted 25 May 2012 - 12:15 PM
#6
Re: Best way to begin learning java programming.
Posted 25 May 2012 - 12:22 PM
#7
Re: Best way to begin learning java programming.
Posted 26 May 2012 - 03:26 PM
#8
Re: Best way to begin learning java programming.
Posted 26 May 2012 - 05:53 PM
Now add in the next concept and write all the silly programs you can think of that involve it and the first. As you keep adding new concepts, increase the size and complexity of your programs. Go back and revisit previous ones to make them better too. Type every line of code out in full. This is an exercise in learning. Reserve copy and paste for when you are getting work done. (although if you need a lot of copy and paste, you are doing it wrong).
The more you practice, the better you will get. A lot of students fail to grasp programming. They make two mistakes. They think it's knowledge that can be learned. It's not. It's a skill that has to be practised. Then they think the exercises and coursework are enough. They aren't. They're not even close.
Two things help tremendously. The first is to finding programming compelling enough for it to be pleasurable to spend hours on end practising. The second is youth. A child will play in the way I've described for far longer than an adult. An adult will write a few test programs, see that they work and move on. A child will write inane program after inane program. He will be proud of his "achievements" and laugh at the silly things he has made the computer do or say.
I started to program at the age of nine with neither a book nor a tutor nor the internet. I had a 48K Spectrum, a programming pamphlet and a friend who knew some basics of the PRINT statement. But that was OK to play with. We wrote a program to PRINT "Policeman", BEEP three times (Pol-ice-man), BEEP a lot more to sound like a siren and then draw a semicircle because that was the only other thing we could work out how to do. We couldn't work the SAVE command so I wrote the program on a piece of paper for posterity.
From the pamphlet, I found out about for loops, variables, GOTO and drawing graphics. That was me for about a year. A whole year of programming with just that. Think of how limiting that was. But I did it because I could control what the computer did. GOTO was particularly useless. Without an if statement, the only practical thing I could do was infinite loops (which my nine year old self loved) and make spaghetti code. One kind of spaghetti code I found useful was if I wanted to insert some code but ran out of available line numbers. I could just add the code somewhere else, chuck in a couple of gotos and it worked. But was a mess.
I got so familiar with all this stuff that when I got my hands on a BASIC book and discovered the IF statement, I immediately understood how I could combine it with what I already knew. I remember thinking "now I can do anything" as if it gave me superpowers as well as Turing completeness.
I still didn't have a manual for my version of BASIC. But that didn't stop me playing. I set myself on a mission to find out what all the commands on the Spectrum did. I got most of them through trial end error. Eventually I got a manual and devoured it cover to cover. There wasn't much in it I hadn't gained through playing.
The point of my story is that as an adult I wouldn't play enough to become that familiar with something. I'll forget my Java far sooner that I'll forget my Spectrum BASIC. One of my friends was playing with an emulator at work recently and make a wee toy program but wasn't happy at how the Spectrum handled scrolling. A quick "5 POKE 23692, 0" fixed that. My adult self would never commit that line to memory. My child self loved how changing the scrolling behaviour made my infinite loops seem even more infinite.
#9
Re: Best way to begin learning java programming.
Posted 27 May 2012 - 06:50 AM
I - like most people here - have had both. Books provide much higher quality information. Plus you have to rely on your own comprehension skills.
#10
Re: Best way to begin learning java programming.
Posted 30 May 2012 - 01:17 PM
#11
Re: Best way to begin learning java programming.
Posted 30 May 2012 - 01:30 PM
No the best way to learn anything is by using a well written book, instructing professionals, and by doing. Simply saying that a book makes you a good programmer is false because what you learn from the book is how that perticularauthor writes code. Everyone has different ways of coding and no one one is write or wrong. Having the three methods of learning book, instructor, coding is probably the best bet. Remember, when a book is written and printed maybe over a year in duration and many new coding practices may exist.
#12
Re: Best way to begin learning java programming.
Posted 30 May 2012 - 01:39 PM
I remember my first Java book it took 2 thirds of the book to introduce inheritance. It's because it was a complete beginners book for people with zero experience. On the other my current Java reference book introduces it in the very first couple of pages. They are written for very different purposes. If a beginner was to read the current one, they would feel lost pretty quickly. On the other hand if someone who knows their Java was to read the old one, they would probably feel patronized when it takes a chapter to explain a while loop.
Quote
This is also not always the case. I have an old beginners Java book that's around 7 years old now. Bar the addition of generics, most of the book relates directly to modern day Java.
The practice of writing an if statement isn't going to change.
This post has been edited by Ryano121: 30 May 2012 - 01:43 PM
#13
Re: Best way to begin learning java programming.
Posted 01 June 2012 - 01:20 AM
#14
Re: Best way to begin learning java programming.
Posted 01 June 2012 - 04:19 AM
jjames967, on 01 June 2012 - 03:20 AM, said:
Everything, or else not much. See Turing.
Quote
I'm a big fan of coding to standard conventions, but "the most important concept"? Maybe not.
|
|

New Topic/Question
Reply



MultiQuote












|