| Thread overview | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 30, 2009 d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads This is also one of the java successful keys . thank you very much ! | ||||
April 30, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dolive | dolive: > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads > This is also one of the java successful keys . > thank you very much ! Are you trying to suggest to follow the Zipf's law in naming things in Phobos/Tango? http://en.wikipedia.org/wiki/Zipf%27s_law I agree. Bye, bearophile | |||
April 30, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to bearophile | bearophile дµ½:
> dolive:
> > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads
> > This is also one of the java successful keys .
> > thank you very much !
>
> Are you trying to suggest to follow the Zipf's law in naming things in Phobos/Tango?
> http://en.wikipedia.org/wiki/Zipf%27s_law
> I agree.
>
> Bye,
> bearophile
yes£¬is so
| |||
April 30, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dolive | dolive wrote:
> bearophile дµ½:
>
>> dolive:
>>> Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads This is also one of the java successful keys .
>>> thank you very much !
>> Are you trying to suggest to follow the Zipf's law in naming things in Phobos/Tango?
>> http://en.wikipedia.org/wiki/Zipf%27s_law
>> I agree.
>>
>> Bye,
>> bearophile
>
>
> yes£¬is so
I'm not very sure. That would suggest using exceedingly common names (the, on, go, do, be, and, use...) which are often imprecise because they are used in a variety of contexts (hence their frequency). I often prefer a word that has a precise meaning.
Andrei
| |||
May 01, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dolive | dolive wrote: > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads > > This is also one of the java successful keys . > > thank you very much ! I don't really understand .. you are suggesting to use short names or long names? Java is known for having very very very long names org.name.domain.SomeReallyLongClassName.SomeBoringMethodName( myObject.YetAnotherBoringMethodName( 10 ) ) Doing stuff like that is a ReallyBadIdeaInMyHumbleOpinion | |||
May 01, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to hasen | hasen дµ½:
> dolive wrote:
> > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads
> >
> > This is also one of the java successful keys .
> >
> > thank you very much !
>
> I don't really understand .. you are suggesting to use short names or long names?
>
> Java is known for having very very very long names
>
> org.name.domain.SomeReallyLongClassName.SomeBoringMethodName( myObject.YetAnotherBoringMethodName( 10 ) )
>
> Doing stuff like that is a ReallyBadIdeaInMyHumbleOpinion
Certainly short name is good £¡
Primary school student it can know of short name
dolive
| |||
May 01, 2009 Re: d assigns name Philosophy | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dolive | dolive Wrote:
> hasen �:
>
> > dolive wrote:
> > > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads
> > >
> > > This is also one of the java successful keys .
> > >
> > > thank you very much !
> >
> > I don't really understand .. you are suggesting to use short names or long names?
> >
> > Java is known for having very very very long names
> >
> > org.name.domain.SomeReallyLongClassName.SomeBoringMethodName( myObject.YetAnotherBoringMethodName( 10 ) )
> >
> > Doing stuff like that is a ReallyBadIdeaInMyHumbleOpinion
>
>
> Certainly short name is good ��
>
> Primary school student it can know of short name
>
>
> dolive
then i guess 95% of my private functions are doShit() and 95% of my public functions are doStuff().
| |||
May 01, 2009 Re: d assigns name Philosophy [OT] | ||||
|---|---|---|---|---|
| ||||
Posted in reply to hasen | hasen Wrote: > dolive wrote: > > Suggest the d Language and phobos lib ( And other lib ) assigns name to use the tallest phrase in the phrase of word frequency . This, should study toward the java . This is also the key that the java jdk source code easily reads > > > > This is also one of the java successful keys . > > > > thank you very much ! > > I don't really understand .. you are suggesting to use short names or long names? > > Java is known for having very very very long names > > org.name.domain.SomeReallyLongClassName.SomeBoringMethodName( myObject.YetAnotherBoringMethodName( 10 ) ) > > Doing stuff like that is a ReallyBadIdeaInMyHumbleOpinion Undefined identifier - do you mean: "ReallyAVeryBadIdeaInMyHumbleOpinionAndTheOpinionOfManyOthers". | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply