VodkaScript


programming code that is written so poorly that it could only have been written by someone after that person drank an entire bottle of vodka. it runs without error, however, it may be overly inefficient, useless, or a re-implementation of a function that already exists as part of the programming language.
vbscript example written in vodkascript:

function cleanquotes(inputstring)
dim outputstring
dim position

for position = 1 to len(inputstring)
if mid(inputstring, position, 1) = “‘” then
outputstring = outputstring & “””
else
outputstring = outputstring & mid(inputstring, position, 1)
end if
next

cleanquotes = outputstring
end function

—————-

vbscript sample written correctly using built-in function:

dim strvariable ‘ contains some unwanted character

strvariable = replace(strvariable, “(unwanted character)”, “(replacement character(s))”)

where (unwanted character) is any character(s). i.e. ‘”,@!$ (in the case of a double-quote, use two double-quotes)

—————-

the way that the vodkascript sample above should have been written, for efficiency and re-use, is:

function cleanquotes(inputstring)
cleanquotes = replace(inputstring, “‘”, “””)
end function

Read Also:

  • vishal kumar

    n. an extremely pimp indian male. on a scale from 1 to 10, 1 being not so extreme and 10 being extremly extreme, the pimp factor in a vishal k-mar is a 12. also he must be good looking, a great dancer, and have deep pockets. d-mn! he is such a vishal k-mar. i can’t […]

  • Vorbal

    verb: when a armored sp-ce bear attacks a planet the past-tense of vorbal is vorbaled. that sp-ce bear totally just vorbaled that planet!

  • Voot

    “voot” is an exclamation, originally seen written in email or on usenet (now in web-forums). it means joy, pride, accomplishment, or, most often, sudden gain. voot! i just got married! voot — check out this deal i found! voot! i win!! voot! i’m a total brain! a girl who is s hot she makes you […]

  • Vorgan

    a v-g-n-. usually used to describe a somewhat gross looking v-g-n-. christ, did you see the vorgan on that one? or my vorgan is leaking menstrual blood.

  • Vox pop

    short for vox populi, the latin term for “voice of the people” often used to describe an interview with a person who is not an expert, and who is not directly involved with the issue at hand. also called a “man on the street” interview. guy1: did you see that vox pop interview on the […]


Disclaimer: VodkaScript definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.