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


Groups > comp.lang.java.programmer > #23823 > unrolled thread

cannot find symbol?

Started byqwertmonkey@syberianoutpost.ru
First post2013-05-04 13:51 +0000
Last post2013-05-06 21:52 -0400
Articles 7 — 5 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  cannot find symbol? qwertmonkey@syberianoutpost.ru - 2013-05-04 13:51 +0000
    Re: cannot find symbol? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-05-04 09:43 -0700
    Re: cannot find symbol? lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-04 18:29 +0100
    Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-04 21:44 -0400
    Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-04 21:47 -0400
    Re: cannot find symbol? Lew <lewbloch@gmail.com> - 2013-05-06 13:12 -0700
      Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-06 21:52 -0400

#23823 — cannot find symbol?

Fromqwertmonkey@syberianoutpost.ru
Date2013-05-04 13:51 +0000
Subjectcannot find symbol?
Message-ID<km33or$omi$1@speranza.aioe.org>
>> class Ho3K{
>>   private String aS;
>>   Ho3K(){}
>>   public void setCtxt(String aS){ this.aS = aS; }
>>   public String toString(){ return(" aS: |" + aS + "|"); }
>>   System.err.println("// __ Ho3.getCtxtDTO() : |" + Ho3.getCtxtDTO() + "|");
>>   How do you do such a thing?
~ 
>What is "such a thing?"  What are you even *trying* to do?  You can't
>call "getCtxtDTO" on an object that only defines the methods "setCtxt"
>and "toString".
~
 my mistake. I (quickly and wrongly) replaced some of the text while editing my
own post
~
 Take a look at my initial posting. DTO_T_Ctxt06 and Ho3K are just mock objects
created in method "verifyCtxt" in class DTO_T_Ctxt, which I get as Data Transfer
Objects
~
> qwertmonkey has been told many times, but like Stefan Ram, he ignores all
> posts relating to his horrid coding style, and since people still help him,
> he probably just sees no need.
~
 Joerg I usually don't talk to politicians/people with "political" qualms, 
specially if they, not only assume some evil intention in your ways, but talk
from a "Godly" prescribing point of view, defending/standing for "we the people"
~
 It may relate to the fact that I am a teacher (so I am conditioned to be
lenient about people's ways) and researcher myself in consciousness studies/
neurobiology: I don't think that everyone should be right-handed or act and
"think" in a certain ways even if "the majority" does
~
 I have read and worked on -really- badly worded, formatted code. At the 
end of the day it is primarily "on the eyes of the compiler" determining what is
kosher or not to itself
~
 Haven't you heard the joke about how an engineer a physicist and a mathematician
fight a fire?
~
 For example, unnecessary noises bother the hell out of me, but when I notice, 
say, a woman (and they love those kinds of things!) walking on a wooden floor
with really noisy hard sole high heels. I keep my annoyance within myself and
don't extrapolate my own thinking into believing they are evil or the alignment
of stars in heaven will be altered because of that, nor would I disrespect or
mistreat them in any way
~
> What he may not know is that while some people help him, others don't.
~
 ... the bad part about that being?
~
 This is a fact of life regarding all matters and ultimately you do get at
things -your- way. In fact, I see the good in "politicians" not liking "me"
~
 lbrtchx

[toc] | [next] | [standalone]


#23824

FromDaniel Pitts <newsgroup.nospam@virtualinfinity.net>
Date2013-05-04 09:43 -0700
Message-ID<sUaht.15819$aX5.11256@newsfe27.iad>
In reply to#23823
On 5/4/13 6:51 AM, qwertmonkey@syberianoutpost.ru wrote:
>>> class Ho3K{
>>>    private String aS;
>>>    Ho3K(){}
>>>    public void setCtxt(String aS){ this.aS = aS; }
>>>    public String toString(){ return(" aS: |" + aS + "|"); }
>>>    System.err.println("// __ Ho3.getCtxtDTO() : |" + Ho3.getCtxtDTO() + "|");
>>>    How do you do such a thing?
> ~
>> What is "such a thing?"  What are you even *trying* to do?  You can't
>> call "getCtxtDTO" on an object that only defines the methods "setCtxt"
>> and "toString".
> ~
>   my mistake. I (quickly and wrongly) replaced some of the text while editing my
> own post
> ~
>   Take a look at my initial posting. DTO_T_Ctxt06 and Ho3K are just mock objects
> created in method "verifyCtxt" in class DTO_T_Ctxt, which I get as Data Transfer
> Objects

I posted the solution. Use interfaces. There are no such things as C++ 
style templates in Java.  You need to use interfaces. Is there a reason 
my solution isn't acceptable to you?

> ~
>> qwertmonkey has been told many times, but like Stefan Ram, he ignores all
>> posts relating to his horrid coding style, and since people still help him,
>> he probably just sees no need.
> ~
>   Joerg I usually don't talk to politicians/people with "political" qualms,
> specially if they, not only assume some evil intention in your ways, but talk
> from a "Godly" prescribing point of view, defending/standing for "we the people"
> ~
>   It may relate to the fact that I am a teacher (so I am conditioned to be
> lenient about people's ways) and researcher myself in consciousness studies/
> neurobiology: I don't think that everyone should be right-handed or act and
> "think" in a certain ways even if "the majority" does
> ~
>   I have read and worked on -really- badly worded, formatted code. At the
> end of the day it is primarily "on the eyes of the compiler" determining what is
> kosher or not to itself
Not entirely.  It is primarily the eyes of colleagues which need to 
modify the behavior of the code. The compiler, while less forgiving for 
syntax, is completely forgiving of semantics.  Humans are the opposite, 
and in fact that is the trait which we need. The syntax of a program can 
interfere with understanding the semantics of it.  This is why you find 
less help.  Why do you ignore the help you do get?
> ~
>   Haven't you heard the joke about how an engineer a physicist and a mathematician
> fight a fire?
No, I haven't.
> ~
>   For example, unnecessary noises bother the hell out of me, but when I notice,
> say, a woman (and they love those kinds of things!) walking on a wooden floor
> with really noisy hard sole high heels. I keep my annoyance within myself and
> don't extrapolate my own thinking into believing they are evil or the alignment
> of stars in heaven will be altered because of that, nor would I disrespect or
> mistreat them in any way
I would imagine you invite them over less often than you do less noisy 
women.
> ~
>> What he may not know is that while some people help him, others don't.
> ~
>   ... the bad part about that being?
Higher noise to signal ratio for your answers.
> ~
>   This is a fact of life regarding all matters and ultimately you do get at
> things -your- way. In fact, I see the good in "politicians" not liking "me"

There is a difference between politics and social acceptability.  As a 
hiring manager, if you presented this code to me, I would not hire you. 
  If somehow you got hired where I worked and I saw you made this code, 
I would do whatever I could to get you fired. This code costs at least 
10 times as much as any more conventional equivalent.

I would do this regardless of the type of job you were hired to do. 
Research, enterprise, embedded, teaching. Especially teaching.  It would 
not be a personal judgement against you, but a value judgement against 
what you contribute.

On an unrelated note, it would be more polite of you to follow standard 
usenet protocol for replying to messages.  Keeping the thread in one 
place makes it easier for me to follow along. However you reply now, it 
splits the thread into multiple. Maybe you need a different news reader.

[toc] | [prev] | [next] | [standalone]


#23825

Fromlipska the kat <"nospam at neversurrender dot co dot uk">
Date2013-05-04 18:29 +0100
Message-ID<hZ-dnTUZlcP-2BjMnZ2dnUVZ8kKdnZ2d@bt.com>
In reply to#23823
On 04/05/13 14:51, qwertmonkey@syberianoutpost.ru wrote:
>>> class Ho3K{
>>>    private String aS;
>>>    Ho3K(){}
>>>    public void setCtxt(String aS){ this.aS = aS; }
>>>    public String toString(){ return(" aS: |" + aS + "|"); }
>>>    System.err.println("// __ Ho3.getCtxtDTO() : |" + Ho3.getCtxtDTO() + "|");
>>>    How do you do such a thing?

Someone has suggested you use interfaces to achieve your goals.
Here is an example of Strategy pattern in Java. You need to scroll down 
a bit to see the Java code.

http://en.wikipedia.org/wiki/Strategy_pattern

No generics, just interfaces, if this approach is unsuitable perhaps you 
could tell us why, I'm intrigued as to what *exactly* you are trying to do.

lipska

-- 
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun

[toc] | [prev] | [next] | [standalone]


#23833

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-05-04 21:44 -0400
Message-ID<5185b96a$0$32118$14726298@news.sunsite.dk>
In reply to#23823
On 5/4/2013 9:51 AM, qwertmonkey@syberianoutpost.ru wrote:
>> qwertmonkey has been told many times, but like Stefan Ram, he ignores all
>> posts relating to his horrid coding style, and since people still help him,
>> he probably just sees no need.
> ~
>   Joerg I usually don't talk to politicians/people with "political" qualms,
> specially if they, not only assume some evil intention in your ways, but talk
> from a "Godly" prescribing point of view, defending/standing for "we the people"
> ~
>   It may relate to the fact that I am a teacher (so I am conditioned to be
> lenient about people's ways) and researcher myself in consciousness studies/
> neurobiology: I don't think that everyone should be right-handed or act and
> "think" in a certain ways even if "the majority" does

You are missing the point.

There is not one coding style that is better than all other.

But there are huge objective benefits of everybody using the same
or at least very similar coding style.

It is simple faster to read and understand code in a familiar coding
style.

So a better analogy is that:
- everybody driving at right side of the road or everybody driving at
   the left side of the road are equally good
- both are a lot better than some driving at right side of the road and
   some driving at the left side of the road

So either convince a few million Java developers to follow your style
or bite the bullet and use their style.

>   I have read and worked on -really- badly worded, formatted code. At the
> end of the day it is primarily "on the eyes of the compiler" determining what is
> kosher or not to itself

No no no.

Not all code that work are equally good.

Ease of maintenance is a primary goal in creating software.

>   For example, unnecessary noises bother the hell out of me, but when I notice,
> say, a woman (and they love those kinds of things!) walking on a wooden floor
> with really noisy hard sole high heels. I keep my annoyance within myself and
> don't extrapolate my own thinking into believing they are evil or the alignment
> of stars in heaven will be altered because of that, nor would I disrespect or
> mistreat them in any way

But you may (and you should) consider her less suited for a job where
making little noise is necessary.

Arne




[toc] | [prev] | [next] | [standalone]


#23834

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-05-04 21:47 -0400
Message-ID<5185ba23$0$32110$14726298@news.sunsite.dk>
In reply to#23823
On 5/4/2013 9:51 AM, qwertmonkey@syberianoutpost.ru wrote:
>   For example, unnecessary noises bother the hell out of me, but when I notice,
> say, a woman (and they love those kinds of things!) walking on a wooden floor
> with really noisy hard sole high heels. I keep my annoyance within myself and
> don't extrapolate my own thinking into believing they are evil or the alignment
> of stars in heaven will be altered because of that, nor would I disrespect or
> mistreat them in any way

And besides in this context I would argue that it is you that are
being impolite.

You want people to spend time for free on helping them with your
problem, but you don't want to spend the time making it easy
for them by making the code (and the post in general) easy to
read.

That is pretty rude behavior.

Arne

[toc] | [prev] | [next] | [standalone]


#23865

FromLew <lewbloch@gmail.com>
Date2013-05-06 13:12 -0700
Message-ID<6b534ed1-992a-4ed0-836f-7da025d4ed99@googlegroups.com>
In reply to#23823
On Saturday, May 4, 2013 6:51:23 AM UTC-7, qwert...@syberianoutpost.ru wrote:

Please do not omit attributions, monkey.

[ Joerg Meier wrote: ]
>> qwertmonkey has been told many times, but like Stefan Ram, he ignores all
>> posts relating to his horrid coding style, and since people still help him,
>> he probably just sees no need.

>  Joerg I usually don't talk to politicians/people with "political" qualms, 

What does that have to do with anything?

> specially if they, not only assume some evil intention in your ways, but talk

Again, relevance?

> from a "Godly" prescribing point of view, defending/standing for "we the people"

You've been advised about widespread and widely-adopted conventions. 
Why the piss-ant attitude?

>  It may relate to the fact that I am a teacher (so I am conditioned to be

Must be a real winner of a teacher with that attitude.

> lenient about people's ways) and researcher myself in consciousness studies/
> neurobiology: I don't think that everyone should be right-handed or act and
> "think" in a certain ways even if "the majority" does

Again, how is that relevant? Society has conventions. You, apparently, are sociopathic.

>  I have read and worked on -really- badly worded, formatted code. At the 
> end of the day it is primarily "on the eyes of the compiler" determining what is
> kosher or not to itself

You are writing to *people* for help. If the compiler sufficed, you'd not need to post here.

>  This is a fact of life regarding all matters and ultimately you do get at
> things -your- way. In fact, I see the good in "politicians" not liking "me"

You are just wasting people's time.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#23875

FromArne Vajhøj <arne@vajhoej.dk>
Date2013-05-06 21:52 -0400
Message-ID<51885e44$0$32110$14726298@news.sunsite.dk>
In reply to#23865
On 5/6/2013 4:12 PM, Lew wrote:
> On Saturday, May 4, 2013 6:51:23 AM UTC-7, qwert...@syberianoutpost.ru wrote:
>> lenient about people's ways) and researcher myself in consciousness studies/
>> neurobiology: I don't think that everyone should be right-handed or act and
>> "think" in a certain ways even if "the majority" does
>
> Again, how is that relevant? Society has conventions. You, apparently, are sociopathic.

Maybe it is time to enjoy the good spring weather?!?!

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web