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


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

Re: Recommendation for a good Android programming book?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Recommendation for a good Android programming book?
Date 2015-06-05 08:06 -0400
Organization A noiseless patient Spider
Message-ID <mks3a1$cnm$1@dont-email.me> (permalink)
References (6 earlier) <mk2iup$m42$1@dont-email.me> <mk2o2o$ldm$1@dont-email.me> <mk2shj$5i4$1@dont-email.me> <556fa92c$0$295$14726298@news.sunsite.dk> <mkqe9c$bi5$1@dont-email.me>

Show all headers | View raw


On 6/4/2015 5:00 PM, Martin Gregorie wrote:
> On Wed, 03 Jun 2015 21:26:04 -0400, Arne Vajhøj wrote:
>
>> [sorry if duplicate post]
>>
>> On 5/26/2015 6:36 PM, Martin Gregorie wrote:
>>   > On Tue, 26 May 2015 17:21:32 -0400, Eric Sosman wrote:
>>   >> This is a more precise operation than a global search-and-replace,
>>   >> because the IDE can distinguish one `x' from another: If I rename
>>   >> one of my instance fields from `x' to `columnIndex', the IDE won't
>>   >> mess up the references to `x' in some other class like
>>   >> java.awt.Point.
>>   >>
>>   > I normally use microEmacs, which can do almost that:
>>   >
>>   > me org/gregorie/newproject/*.java
>>   >
>>   > Then tell it once only what I want it to replace and what with just
>>   > once and it works through all the files. I've never discovered a
>>   > limit to the number of files it can load. As a bonus the search term
>>   > can be a regex.
>>
>> Yes. But can it distinguish between different x's based on the meaning
>> of the code within the files being edited?
>>
> No, unlike vi, where once you start an "s/x/y/" request running you can't
> interfere, microEmacs approach is to ask what you want to do at each
> match. The options are do it, skip this one, abandon (and it has an undo
> facility) or to get on and do the lot. This lets you pick and choose
> which matches to replace if you know that not all hits need replacing
> (your 'x' case), or if you know that all should be replaced, to check
> that the first one or two are working as expected and then let it do the
> rest without asking.

     So, you get to see

	int value = things[i].x;

... and then you answer "yes" or "no?"

     Trust me, Martin: An IDE will do this *much* more easily and *much*
more accurately than what you've described, because the IDE knows what
type `things[i]' is, even if the declaration is four hundred lines away
from the point of use.

     There certainly was a time when Java IDE's were rather pathetically
awful.  I started using NetBeans at version 3 (my then employer's
choice), and it wasn't until version 5 that it became worth the trouble.
But it has in fact become worth the trouble, and an impression of its
uselessness that you might have formed some years ago may not still be
accurate.  (I've had only the briefest exposure to Eclipse and none at
all to other Java IDE's, but I'd imagine they, too, have progressed.)

     "Horses for courses," you said, and that's fine.  But I'd encourage
you to take a fresh look at the stable; the horses there are no longer
helpless foals.

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

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


Thread

Recommendation for a good Android programming book? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-20 15:16 -0700
  Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-05-21 20:30 -0400
  Re: Recommendation for a good Android programming book? e.d.programmer@gmail.com - 2015-05-22 08:16 -0700
    Re: Recommendation for a good Android programming book? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-25 20:40 -0700
      Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-05-26 10:15 +0000
        Re: Recommendation for a good Android programming book? Joerg Meier <joergmmeier@arcor.de> - 2015-05-26 13:27 +0200
          Re: Recommendation for a good Android programming book? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-05-26 07:33 -0700
          Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-05-26 19:52 +0000
            Re: Recommendation for a good Android programming book? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-05-26 17:21 -0400
              Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-05-26 22:36 +0000
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-03 21:26 -0400
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-04 21:00 +0000
                Re: Recommendation for a good Android programming book? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-05 08:06 -0400
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-05 17:30 +0000
                Re: Recommendation for a good Android programming book? Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-06-05 13:59 -0400
                Re: Recommendation for a good Android programming book? e.d.programmer@gmail.com - 2015-06-05 05:50 -0700
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-05 17:35 +0000
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-06 23:50 -0400
                Re: Recommendation for a good Android programming book? e.d.programmer@gmail.com - 2015-06-08 07:39 -0700
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-28 21:42 -0400
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-29 08:20 +0000
                Re: Recommendation for a good Android programming book? Jeff Higgins <jeff@invalid.invalid> - 2015-06-29 05:49 -0400
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-29 07:37 -0400
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-29 07:35 -0400
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-29 15:01 +0000
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-29 14:08 -0400
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-29 14:18 -0400
                Re: Recommendation for a good Android programming book? Martin Gregorie <martin@address-in-sig.invalid> - 2015-06-29 21:00 +0000
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-07-27 22:22 -0400
                Re: Recommendation for a good Android programming book? Arne Vajhøj <arne@vajhoej.dk> - 2015-06-06 23:48 -0400

csiph-web