Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mikel Taylor

@Mikel Taylor
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The worst error message ever, ever
    M Mikel Taylor

    HA! Good Question. The circumstances were such that it really should have never happened. It was one of those "when a user clicks x and Venus is in retrograde" scenarios. So to answer you question: Once After that, I plugged the logic hole and put a "friendly" error in its place.

    The Weird and The Wonderful delphi visual-studio help

  • The worst error message ever, ever
    M Mikel Taylor

    While a greenie, the following code was (accidentally) released into production: Messagebox: Title "Oops" Message: "Mikel Sucks as a programmer since this should never happen."

    The Weird and The Wonderful delphi visual-studio help

  • Why is VB being forsaken?
    M Mikel Taylor

    ...and automatic event wireups ;)

    The Lounge csharp learning c++ dotnet

  • Why is VB being forsaken?
    M Mikel Taylor

    sure we do. string builders and generics are our friends, yes. (but we use a "&" ... we reserve the "+" for addition)... funny you ask because as i jump from project to project, I find myself concatenating string in sql with the "&" and in vb with a "+" kind of like when your grandma would call you and rattle off a list of your cousins prior to getting your name right, lol

    The Lounge csharp learning c++ dotnet

  • while (true) and for (; ; ) [modified]
    M Mikel Taylor

    I hate to sound like a politician, but it depends. However, when there is a clear way to use "either," I personally prefer "for" looping. If working with object arrays, data rows, etc, I prefer to either check the count in an "if" block (or the UBOUND in the case of an array >-1) prior to the for loop. This approach allows you to predetermine iterations (if any are needed) at runtime- with your max value value being a variable. I usually reserve the use of "while" loops for conditions that are not numeric in nature... i.e. Fuzzier routines. In these cases, I usually place a boolean variable AND a counter out of the scope of the procedure and wrap a MAX If on loop iterations. I usually only go down this road if I am having to enumerate using self-calling recursion or something complex like that.

    I float like a butterfinger & stank like a bee.

    The Lounge hosting cloud question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups