Another novice question

  • Thread starter Thread starter gordon
  • Start date Start date
Cor Ligthert said:
Jon Skeet.


This is not even misquouting, this is putting on this board (Internet)
something I never wrote giving people the idea that I did.

Maybe it is in your opinion not rude, I will not place on Interenet what my
opinion is about this kind of behaviour.

Well, you certainly *did* write this:

<quote>
I don't know if you believe in the great Englisman Darwin, otherwise
have a look in the Bibble both is about natural design. A static class
is never for me a Natural design as is not any class.
</quote>

Okay, I changed the word "natural" for "good" but I don't think that's
very much of a stretch. If you didn't mean that you don't believe
static classes are ever a good design, please explain what you really
*did* mean.

Similarly, if by writing (about static methods and variables and
classes:

<quote>
Just as rule for yourself, if you *can* avoid them, than avoid them.
</quote>

you didn't actually mean to be taken literally, then you should explain
more carefully what you really *did* mean.

I'll say it again: you can't blame us if you write things and we take
them at face value.
 
Some quotes from Jon. Complete they are below in the message.
Okay, I changed the word "natural" for "good" but I don't think that's
very much of a stretch.
you didn't actually mean to be taken literally, then you should explain
more carefully what you really *did* mean.

I'll say it again: you can't blame us if you write things and we take
them at face value

Strange if you are yourself changing the word "natural" as Nick stated in
"good". While I was only explaining that for me the meaning "natural" has
for me not any meaning inside a design, beside those as done by God or
Nature (depends on what you believe, for me it is Nature) but that has
nothing to do with developing programs.

If a design is good has for me, is depending on the circumstances it is made
for, what is in one case wrong can be in another situation good. Avoiding
details as using static or whatever in advance can not even come in my mind
by that. However I will stay saying to a novice who has never used classes
or whatever. "*Try* to avoid static classes". I know myself that I took the
first times quickly static classes (methods properties) while it was better
to do not (modular programming).

As well I don't understand why you are writing "us". Is Nick or somebody
else sitting beside you at the moment?

In my language the word "us" for a single person can only be used for the
Queen and AFAIK is that in Britain as well, I thought that you are living at
Reading not at Buckingham.

Therefore don't blame others for what you do yourself and bring yourself but
also others probably in confusion.

Cor
 
This is not even misquouting, this is putting on this board (Internet)
something I never wrote giving people the idea that I did.

Indeed. What you actually wrote was:

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
Just as rule for yourself, if you *can* avoid them, than avoid them.

They keep forever the memory occupied and therefore you should use
them in my opinion there were you are sure that you needs them endless
times and don't need more instances of them.
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

so a little confusion in people's minds is perhaps understandable.
 
Ben,

What is not right in that?

Cor

Ben newsam said:
Indeed. What you actually wrote was:

--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
Just as rule for yourself, if you *can* avoid them, than avoid them.

They keep forever the memory occupied and therefore you should use
them in my opinion there were you are sure that you needs them endless
times and don't need more instances of them.
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--

so a little confusion in people's minds is perhaps understandable.
 
Cor Ligthert said:
Strange if you are yourself changing the word "natural" as Nick stated in
"good". While I was only explaining that for me the meaning "natural" has
for me not any meaning inside a design, beside those as done by God or
Nature (depends on what you believe, for me it is Nature) but that has
nothing to do with developing programs.

Ah, I understand now. Sorry, it wasn't very clear before. I suspect
most of the confusion is due to English not being your first language -
which of course is no-one's fault at all.

I think your definition of "natural" is more limited than motst,
however. The meaning I was using is most closely aligned to one of the
ones in my dictionary at home: "as is normal or expected; ordinary or
logical".

As an example, consider a class which needs to represent a number
between 0 and 65535. You *could* represent it as two byte fields. That
would be an unnatural design. The *natural* design would be to use a
single ushort variable. Do you see what I mean now, and how it works
with the meaning quoted above?
If a design is good has for me, is depending on the circumstances it is made
for, what is in one case wrong can be in another situation good. Avoiding
details as using static or whatever in advance can not even come in my mind
by that.
However I will stay saying to a novice who has never used classes
or whatever. "*Try* to avoid static classes".

Except that's not what you said. You said:

<quote>
Just as rule for yourself, if you *can* avoid them, than avoid them.
</quote>

That's different. Even as "try" I would say it's bad advice. Better
advice would be:

"When designing classes, always consider which members should be
instance members (i.e. to do with that particular instance of the
class) and which members should be static members (i.e. to do with the
type as a whole. This is part of learning to design in an object-
oriented fashion."

That doesn't lend a bias towards either side of things, unlike your
advice, which would end up with people making instance members which
should really be static members.
I know myself that I took the first times quickly static classes
(methods properties) while it was better to do not (modular
programming).

And it's entirely reasonable to suggest to people that they should
think carefully about things, but to make people shy away from static
members unnecessarily is a bad idea IMO. I don't like making statement
for the sake of novices which end up causing problems later on.
As well I don't understand why you are writing "us". Is Nick or somebody
else sitting beside you at the moment?

No, but you've already indicated that you agree we both misinterpreted
what you wrote:

<quote>
You both read more in what I wrote than I have ever thought about.
</quote>

I think it's reasonable to write as "us" in a response - I doubt that
Nick would particularly want to distance himself from the last sentence
of my previous post.
 
Jon,

Maybe nice to know for you. In Dutch we have the word "Natuurlijk". (Very
much related to natural")
It has two meanings. Created by nature and something as "Of course" but not
that strict. Why would I than not use that the same in English? I find it
forever cheap telling that the reason is onothers language that you made a
mistake in a discussion. Than a professional developer verifies first if
what he had read is confirm what is the meaning of the one who wrote it.
This should be in my idea the first lesson for a developer before all things
as code..

Cor
 
Back
Top