This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes improve coding skills Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "improve coding skills" Watch "improve coding skills" New topic
Author

improve coding skills

Rahul Kakkar
Ranch Hand

Joined: Apr 17, 2005
Posts: 70
i would rate myself as an average as far as programming skills (in java) and logic are concerned. however i want to improve my skills. many-a-times i find myself writing unnecessary code which could be accomplished in a much more efficient way and also that sometimes the logic just doesn't click. im aware of design patterns. other than that how could i improve my coding skills?
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
Learn test-driven development. In the past 6 years of my considerably longer programming career, it's taught me something new every week, if not every day.

-Jeff-


Books: Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

2. Get involved in code reviews. Quite often the opinion of someone more experiences will correct/improve your code. And it works the other way, reviewing someone elses code forces you to consider why you believe writing code one particular way is the best.

3. Learn how to use a proper modelling tool. Produce a design and submit it to peer review before writing any lines of code.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

These are all good, but I'd put at the top of the list:

0) Practice. Pay attention to your mistakes and learn from them. There is no substitute.


[Jess in Action][AskingGoodQuestions]
Rahul Kakkar
Ranch Hand

Joined: Apr 17, 2005
Posts: 70
@Jeff Langr:

Will look into test-driven development. thanks for the suggestion.

@Paul Sturrock:

Any online peer groups available? Can't think of anyone I know personally who would be good enough to review the code. Also, I can't get every code I write, reviewed; so could you please elaborate on how I could about it?

@Ernest Friedman-Hill:

The golden rule. . Am planning to start coding (here. Hope that helps. Still wondering about the code review part though :
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
http://www.ButUncleBob.com seems to be down right now. When it comes back scan down the list of blog entries for "Programming Kata" or something like that. Robert Martin provides a small set of exercises that challenge you to write as simply as he does. Try them without reading the answers first for fun, but he invites you to do them over and over even if you just memorize his answers.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Originally posted by Kakkar Rahul:
@Paul Sturrock:

Any online peer groups available? Can't think of anyone I know personally who would be good enough to review the code. Also, I can't get every code I write, reviewed; so could you please elaborate on how I could about it?

[/QB]


You could participate in opensource projects in Jakarta and Sourceforge. You can browse their unit tests and reviews, apart from read their discussions.


ASCII silly question, Get a silly ANSI.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


Any online peer groups available? Can't think of anyone I know personally who would be good enough to review the code. Also, I can't get every code I write, reviewed; so could you please elaborate on how I could about it?

My assumption was you were currently working as a programmer, in which case your colleagues are the best source for code reviews. Stuart Ash's suggestion is a good one if you are an amateur. This site too - you often see people post snippets of code asking "does this make sense?" or "is this the best way of doing this?" - if you are not averse to a little criticism, you would generally get some decent replies.
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Originally posted by Ernest Friedman-Hill:
These are all good, but I'd put at the top of the list:

0) Practice. Pay attention to your mistakes and learn from them. There is no substitute.


And if I can add to that, it would be, first, make a lot of mistakes.

Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
Though not Java specific, I've found these two books to be excellent. They make you think!

http://www.amazon.com/exec/obidos/tg/detail/-/0735619670/qid=1132153263/sr=8-1/ref=pd_bbs_1/102-8109483-2661769?v=glance&s=books&n=507846

http://www.amazon.com/exec/obidos/tg/detail/-/1556155514/qid=1132153306/sr=8-1/ref=pd_bbs_1/102-8109483-2661769?v=glance&s=books&n=507846
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Speaking of code reviews, I was helping a junior developer and I came across:
Can you count the ways that's bad? I searched for "NullPointerException" and
found it was being caught all over the place, usually assuming that one
reference (among several) in a block of code *must* have been the culprit.


There is no emoticon for what I am feeling!
Rahul Kakkar
Ranch Hand

Joined: Apr 17, 2005
Posts: 70
@Stan James:

The site isn't up yet. will check it out once it is!

@Stuart Ash:

I was just thinking about participating in some open source projects out there....

@Paul Sturrock:
... and you just answered my question. I was wondering that since i'm an amatuer, would it be sufficient enough to participate. Guess i'll start looking now.

@Adam Richards:

Although I've got this prejudice against C and C++, will check those books out.

@Jeff Albrechtsen:

! that is bad code!
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Speaking about books, I'd also highly recommend "Agile Software Development - Principles, Patterns and Practices" by Robert C. Martin (aka Uncle Bob).


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: improve coding skills
 
Similar Threads
improve my coding skills
How to become Best Java Programmer
SCJP 1.5 failed
hi
I am in