Re: Not = versus <>

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Sun, 22 Oct 2006 07:37:03 GMT, erewhon@xxxxxxxxxx (J French) wrote:
in <453b1f21.674141090@xxxxxxxxxxxxxxxx>

I am firmly of the opinion that VB code should read like English

If Not Me = Full Then Eat

Somehow that looks strange to me

If Me <> Full Then Eat

Better

If ( Me <> Full ) Then Eat

Much better

Generally I reckon that if one needs to squint at code then there is
something dubious about it.

Absolutely. And when you write self documenting code in that manner
comments are obviated.

---
Stefan Berglund

---
This posting is provided "AS IS" with no warranties and no guarantees either express or implied.

Stefan Berglund
.



Relevant Pages

  • Re: A Very British Trip Report - California 2005 - Day 11
    ... >Now here's a strange thing for you. ... >We haven't booked anywhere to eat and it's getting late, ... We find a Chinese restaurant (a Chinese ...
    (rec.arts.disney.parks)
  • Re: Hope springs eternal - meatloaf
    ... impossible "Karfiol" on the innocent Slovak language. ... he does not - who would want to eat all those strange things? ... That is because there was no veracity of any kind there! ...
    (rec.food.cooking)
  • Re: Predicting Test victories (The worms turn revisited)
    ... I'd have the same strike rate as your model if I got 100 green tree ... then got a bunch of drunk Frenchmen to eat a random one. ... Your 'taking it easy after winning' part is strange. ...
    (rec.sport.cricket)
  • Re: Whoe grain competition
    ... no point my liking something if she won't eat it. ... The "strange" two day effect isn't all that strange. ... it until I hit the spikes, then leave it alone for a month or two... ... Buckwheat has another odd effect. ...
    (alt.support.diabetes)
  • Visions of eating
    ... After week two...isn't it strange that we've not seen anyone EAT ... I know about Dave the putz not wanting to make a fire...but have we seen ... I could be wrong about this...but it seemed strange. ... Usually they show survivors eating rice and coconuts. ...
    (alt.tv.survivor)