Ask nicely...

  • I'm definately in the Verbs, Nouns, and Questions club, leading to coding like:

    if (PleaseHidePanel)

    "PleaseHidePanel" is unambiguously not a function name (HidePanel - VerbNoun), and not an object (HiddenPanel - Noun modified by an adjective). It is a request in the form of a boolean flag.


  • if something is really a request that needs to be DOing something (going and completing a task) then it should be an event (or a thread perhaps).   otherwise, if it's something that you are keeping track of to later make a change in the program as it is running it's normal course then it's a state and a simple boolean "hidePanel" would be better.  "PleaseHidePanel" is the silliest thing I've ever seen.

  • panelHiddenState


  • @lpope187 said:

    <BLOCKQUOTE><table width="85%"><tr><td class="txt4"><img src="/Themes/default/images/icon-quote.gif">&nbsp;<strong>lpope187 wrote:</strong></td></tr><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">I think richard forgot his tags . . . At least I hope he did.</td></tr></table></td></tr></table></BLOCKQUOTE>

    Damn forum ate my &lt;sarcasm&gt; tag in there.

    Yeah, I'd say it probably did [:)]

Log in to reply

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.