Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36001

Re: COMPUTER PROJECT

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer, in
Subject Re: COMPUTER PROJECT
Date 2016-11-30 12:03 -0500
Organization A noiseless patient Spider
Message-ID <o1n0n8$n5k$1@dont-email.me> (permalink)
References <cb8d4dc5-d021-4fe4-ae28-d29c43f46372@googlegroups.com> <o1mug9$eil$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


On 11/30/2016 11:26 AM, Rhino wrote:
> On 2016-11-30 12:47 AM, naarayana.kumar@gmail.com wrote:
>> [...]
> I don't know what tools you are using to develop your program but you
> may want to consider something like Eclipse, which is free and includes
> many tools to help you right better code.

     I'd recommend against this course, at Naarayana's current stage of
learning.  IDE's are indeed useful tools, but they are complex tools
that take time and effort to learn.  A beginner, I think, would be
better off with a command line and a plain-vanilla file editor, so as
not to be confronted with learning Java *and* a complicated IDE at the
same time.  Too steep a learning curve, plus the chance to get confused
about what Java does and what the IDE does.

> One of the most useful tools
> in Eclipse - and many other development environments - is a debugger
> which lets you execute your program one statement at a time and monitor
> the values of the variables in the program. That would let you see how
> the program actually behaves, as opposed to the way you *want* it to
> behave. As you soon as you see the behaviour diverge from what you
> wanted, you've found the problem in your code. (Or at least *one*
> problem in your code; if you keep going through the code, you'll likely
> find others.)

     A way to accomplish much of this without needing to learn how to use
somebody's debugger is to sprinkle the code with print statements that
display the values of "interesting" variables.  They are easy to insert,
easy to remove -- and easy to understand.

-- 
esosman@comcast-dot-net.invalid
"Nobody ever went broke underestimating the intelligence of the
American public." -- HLM (paraphrased)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

COMPUTER PROJECT naarayana.kumar@gmail.com - 2016-11-29 21:47 -0800
  Re: COMPUTER PROJECT Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-11-30 08:38 -0500
    Re: COMPUTER PROJECT lewbloch@gmail.com - 2016-12-01 13:30 -0800
  Re: COMPUTER PROJECT Andreas Leitgeb <avl@logic.at> - 2016-11-30 14:30 +0000
  Re: COMPUTER PROJECT Rhino <no_offline_contact@example.com> - 2016-11-30 11:26 -0500
    Re: COMPUTER PROJECT Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-11-30 12:03 -0500
      Re: COMPUTER PROJECT Eric Douglas <e.d.programmer@gmail.com> - 2016-11-30 10:04 -0800

csiph-web