Forums Register Login

improve coding skills

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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-
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
@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 :
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 


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.
+Pie Number of slices to send: Send
 

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.

+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
@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!
+Pie Number of slices to send: Send
Speaking about books, I'd also highly recommend "Agile Software Development - Principles, Patterns and Practices" by Robert C. Martin (aka Uncle Bob).
Can you smell this for me? I think this tiny ad smells like blueberry pie!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1162 times.
Similar Threads
The Backwards Bicycle and learning TDD
Using JEE in Eclipse
Pair Programming
OO design question for game
Hiring people lacking relevant skills for a job
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
Thread Boost feature
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:29:57.