Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23824
| From | Daniel Pitts <newsgroup.nospam@virtualinfinity.net> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: cannot find symbol? |
| References | <km33or$omi$1@speranza.aioe.org> |
| Message-ID | <sUaht.15819$aX5.11256@newsfe27.iad> (permalink) |
| Date | 2013-05-04 09:43 -0700 |
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.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web