Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

programming basics

 
Harvinder Singh
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When ever I am writing even a short program like bubble sort, insertion sorting etc in java there are lots of mistakes that keep coming.Few of them are related to java language but most of them are because of the poor algo that I write before writing the program.
I would be very thankfull if someone can tell
how can we successfully translate logic on to the paper with the help of the algo.Most of the books that are written about algo doesn't tell the basic of creating good algo.Is there any site on the net which can help me out.
 
David Crossett
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hear ya! If you find anything good about writing good algorithms, let me know too!
What I've had to do is just 'borrow' algorithms that are known to work already. There are a lot of common problems that we all run into - and many algorithms that have already solved them. If I need to create my own, I usually just modify ones that I already know work. I also write a lot of psuedo-code...code written in English to solve the problem line by line, then slowly translated to Java. Any other specifics you can share about what kinds of problems you are experiencing?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic