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


Groups > comp.lang.java.help > #2186

Re: Please recommend a book

Newsgroups comp.lang.java.help
Date 2012-10-26 15:04 -0700
References <k6bqkn$dn0$1@dont-email.me> <smvivhzpmb.lkxhng@mixnym.net> <7nel88tb2t3hpmnrke0dke1j46s8tsmoqa@4ax.com> <k6eum3$15t$2@dont-email.me>
Message-ID <0fdfb5b1-04e9-4ed1-8af0-e80c279ee060@googlegroups.com> (permalink)
Subject Re: Please recommend a book
From Lew <lewbloch@gmail.com>

Show all headers | View raw


David Lamb wrote:
> It seemed to me his problem was understanding something that depends on 
> a gazillion imports, not managing the imports themselves.

I'm having difficulty how the number of imports impacts the clarity of the code.

Imports aren't part of the logic; they simply allow abbreviated names for types 
and type members.

Now if code is hyper-complex and depends on too many other types, that is a 
structural or architectural problem with the code itself, and not with Java /per se/.
But is a "zillion" really above that threshold?

How much is the OP's "zillion"?

Anyway, the dependency question is easy. If a method needs a capability provided 
by another module (i.e., class or interface), it depends on that. That's true of every single 
modular computer language there is, and not unique to Java.

Example: If you write a Swing program that uses a 'JPanel' (a type of window widget), then 
that program depends on 'JPanel'. 

The imports provide a very simple and compact description of the dependencies, if imports 
are used. They are optional, after all. But otherwise the FQNs (fully-qualified names) of the 
constructs provide the same information.

The OP seems to be complaining about hard programs, not a hard programming language.
Java is really dog-dirty simple as a language. 

The question of dependencies is one the OP had better master as a programmer generally, 
because like other fundamental programming skills it's necessary for Java programming, too.

-- 
Lew

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Please recommend a book bobwhite@mixnym.net - 2012-10-25 14:50 +0000
  Re: Please recommend a book Nigel Wade <nmw@ion.le.ac.uk> - 2012-10-25 17:44 +0100
  Re: Please recommend a book markspace <-@.> - 2012-10-25 09:50 -0700
    Re: Please recommend a book bobwhite@mixnym.net - 2012-10-26 14:54 +0000
      Re: Please recommend a book "Charles Hottel" <chottel@earthlink.net> - 2012-10-26 11:14 -0400
      Re: Please recommend a book Roedy Green <see_website@mindprod.com.invalid> - 2012-10-26 09:32 -0700
        Re: Please recommend a book David Lamb <dalamb@cs.queensu.ca> - 2012-10-26 17:17 -0400
          Re: Please recommend a book Lew <lewbloch@gmail.com> - 2012-10-26 15:04 -0700
          Re: Please recommend a book bobwhite@mixnym.net - 2012-10-28 22:05 +0000
          Re: Please recommend a book bobwhite@mixnym.net - 2012-10-29 11:07 +0000
            Re: Please recommend a book David Lamb <dalamb@cs.queensu.ca> - 2012-10-29 10:30 -0400
              Re: Please recommend a book bobwhite@mixnym.net - 2012-10-29 19:09 +0000
                Re: Please recommend a book Patricia Shanahan <pats@acm.org> - 2012-10-29 12:38 -0700
                Re: Please recommend a book Lew <lewbloch@gmail.com> - 2012-10-29 13:42 -0700
                Re: Please recommend a book markspace <-@.> - 2012-10-29 15:29 -0700
                Re: Please recommend a book Roedy Green <see_website@mindprod.com.invalid> - 2012-10-31 07:28 -0700
                Re: Please recommend a book bobwhite@mixnym.net - 2012-11-03 20:37 +0000
                Re: Please recommend a book Lew <lewbloch@gmail.com> - 2012-11-03 16:22 -0700
                Re: Please recommend a book markspace <-@.> - 2012-11-03 20:42 -0700
                Re: Please recommend a book bobwhite@mixnym.net - 2012-11-04 14:40 +0000
                Re: Please recommend a book Lew <lewbloch@gmail.com> - 2012-11-04 20:27 -0800
  Re: Please recommend a book Roedy Green <see_website@mindprod.com.invalid> - 2012-10-26 09:24 -0700
  Re: Please recommend a book Roedy Green <see_website@mindprod.com.invalid> - 2012-10-26 09:31 -0700
  Re: Please recommend a book Patricia Shanahan <pats@acm.org> - 2012-10-27 06:19 -0700
    Re: Please recommend a book bobwhite@mixnym.net - 2012-10-28 21:05 +0000
    Re: Please recommend a book bobwhite@mixnym.net - 2012-10-29 12:08 +0000
  Re: Please recommend a book Jeff Higgins <jeff@invalid.invalid> - 2012-10-28 19:09 -0400
    Re: Please recommend a book bobwhite@mixnym.net - 2012-11-01 14:25 +0000
      Re: Please recommend a book Jeff Higgins <jeff@invalid.invalid> - 2012-11-01 13:47 -0400

csiph-web