News for hackers. Stuff that matters.

Advice for programming

hi am a first year computer science student .I started programing in java last september.I Failed my programming exam in java this may and have to resit it in august.ANY ADVICE PLEASE..Is there any material that i can use or any one to mentor me.I would appreciate any comment.
( 5 comments | 4 points | on HN )
Re:Advice for programming by xorglorb on Friday June 10, 2011 @07:38PM (#2642797)
1. Find/think of a project

2. Hack it together

3. Go to #1

The only way to improve your skills at something is to practice doing it. When you hit something you don't know how to do, look it up on Google or ask a question on StackOverflow (make sure to search first though). Eventually, after many, many failures, you will succeed.

Make sure that the projects are relatively simple. Think calculators, drawing smiley faces, etc. Increase the challenge of each project, but DO NOT try to build the next Google (at least for a year or two).

Re:Advice for programming by Mithrandir on Friday June 10, 2011 @07:03PM (#2642725)
Re:Advice for programming by YuriNiyazov on Friday June 10, 2011 @06:59PM (#2642716)
Why did you fail?
Re:Advice for programming by logic101 on Friday June 10, 2011 @07:36PM (#2642792)
@yuri i made mistakes in the way i approached the questions.I think i lacked experience.
Re:Advice for programming by javajosh on Friday June 10, 2011 @07:45PM (#2642802)
Try Marijn Haverbeke's excellent, free, interactive book about programming, http://eloquentjavascript.net/.