Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Five Tips To Help You Tackle Programming

Renowned programming author, Cay Horstmann, provides you with five great tips for being successful in the art of programming.

  • Be the first to comment

Five Tips To Help You Tackle Programming

  1. 1. First Do It By Hand If you can’t do it by hand, you can’t tell a computer how to do it. Before doing any work on the computer, get some sheets of paper and a pencil. Choose an example of your problem—not too hard, but not trivial either. Solve it by hand. The minutes spent on this step will save you hours later. 1 5 Tips to help you tackle programming by Cay Horstmann 1
  2. 2. Solve a Simpler Problem First When you face a complex problem, it is easy to get discouraged. A great strategy is to solve a simpler problem first. Ask yourself what is the absolutely simplest part of the task that is helpful for the end result. Start from there. Then add another feature, and another. With some practice, you can design a plan that builds up a complete solution as a manageable sequence of intermediate steps. That way, you will experience sweet success at each step, and you will have the energy to reach a final conclusion. 2 2
  3. 3. Use Physical Objects Sometimes, you are given a problem and have no idea how to solve it. You may know that a loop is required, or that you need to swap elements, but that’s not enough to design a solution. Try acting out your problem with physical objects. Coins, playing cards, scrabble tiles, or tin soldiers work great. Suppose you need to arrange values in a certain way. Try moving the objects around until you discover a systematic way that always achieves the correct result. Then you are ready to write pseudocode and code. 3 3
  4. 4. Try Some Code Your textbook and the library documentation can be confusing at times. A quick way of making sense out of the documentation is to try something out. For example, suppose you suspect that the “replace” function can be useful but you don’t really know what it replaces or how you can get the result. Make a string, replace “i” with “x”, and watch what happens. Many development environments have a way of running quick experiments without writing a full-fledged program. 4 4
  5. 5. Write More Code Programming is not a spectator sport. Understanding the concepts only gets you so far. You need to have your hands on the ball to gain experience. You can start out with worked examples that walk you through a solution, a step at a time. Then set yourself a challenge to push the example a bit further, and implement your enhancement. That way, you build upon something that works, and you gain valuable experience reading and writing code. 5 5

    Be the first to comment

    Login to see the comments

  • Nikolos92

    May. 17, 2016
  • DavidFirester1

    Jun. 23, 2016
  • sales-i

    Jul. 7, 2016
  • lucachaves

    Jul. 13, 2016
  • vikasvicky24

    Aug. 12, 2016

    Aug. 18, 2016
  • PetrosMarkidis

    Oct. 22, 2016
  • JosephAnnaelleMbanmb

    Nov. 6, 2016
  • kaduger

    Dec. 30, 2016
  • siaoheirani1

    Feb. 21, 2017
  • AnkitBader

    Feb. 22, 2017
  • Jerrybecnel

    Apr. 27, 2017
  • DubbleDee1

    May. 16, 2017
  • tylervs5

    May. 24, 2017
  • RyanKisslinger1

    May. 25, 2017
  • FranciaFranco3

    Sep. 12, 2017
  • FaisalJan9

    Sep. 24, 2017
  • JusticeBajeri

    Nov. 4, 2017
  • DashonHawkins

    Dec. 12, 2017
  • AmyBunn2

    Apr. 24, 2018

Renowned programming author, Cay Horstmann, provides you with five great tips for being successful in the art of programming.


Total views


On Slideshare


From embeds


Number of embeds