harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LvJimmy´╝îJing" <firep...@gmail.com>
Subject Re: Long,long testcase name...
Date Sun, 16 Apr 2006 03:29:47 GMT
2006/4/15, Geir Magnusson Jr <geir@pobox.com>:
>
>
>
> Jimmy, Jing Lv wrote:
>
> > One day,  with Harmony spreading all over the world, I don't want to
> > hear anyone saying: "Woo, who's that guy writing these tests named
> > 'test1,test2,test3',  it takes me a lot of time on understanding them,
>
> No one's advocating that, so please put that straw-man back whereever it
> came from.


OK, just  imagination,  ignore if you dont think so:)  But developers may do
laugh at those silly-looking code.

> even a mid-school student can do better than this!"
> > I agreed that our naming convention must:
> > 1. make it understandable for everyone, what does this method try to do,
> > or at least contain a hint (most important)
> > 2. easy to distinguish if there are some similar ones
> > 3. as short/easy as possible for people to read
> > Any comments?
>
> Yes.
>
> test<SomethingUsefulWithMaybeANumberIfItsOverloadedWhereYouUseYourGoodJudgement>
>
>
> or
>
> test<SomethingThatYouWouldLikeToEncounterIfYouWereReadingCodeForFirstTime>
>
> but not
>
> test<SomethingDogmaticJustForSakeOfDogma>
>
> :)


OK, perhaps dogmatic, but keep code in Harmony clear and readable, or even
in the same style in some way is properly good for everyone.

geir
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


--

Best Regards!

Jimmy, Jing Lv
China Software Development Lab, IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message