- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
Damn you! I almost LOL'd which would have given away that fact that I am not actually working!
Admin
Admin
A mathematician named Sy Was always tortured by pi. He ran out the door Yelling, "Three point one four!" And hung himself by his own tie.
What does this have to do with batch files? Nothing.
Admin
echo Press F6 prior to pressing ENTER to complete your entry type CON > puke.txt
:)
Admin
It might be necessary to use GOTO, but it is not fine. Even assemblers have jump to subroutine to save the return location.
Admin
Now I can mention Cheif Sohcahtoa or that an occupied bathroom in an airplane is a 'high-pot-in-use'.
Admin
Admin
Which is short for "stash the next PC in the designated register and GOTO"
Admin
I've had to do quite a bit of batch programming at my current job. I've considered putting it on my resume.
On a bet, I wrote a simple version control system using nothing but batch files and utilities that shipped with XP. It had branching and a rough way of doing labels. If you paused it in the middle and looked at the environment variables, there were about 80 extra just for the bat file.
Admin
All the "why?" comments apply just as well to the math part of the post as they do to the batch part of the post.
The answer: /because I can./
Admin
Admin
Koalas aren't bears, except when asking "how much can a koala bear?"
Admin
so, the wtf is that someone knows how to program in batch?
Admin
A mathematician named Klein Thought the mobius strip was divine He said "If you glue the edges of two you get a neat bottle like mine."
What does this have to do with anything? Nothing. Happy Friday all...
Admin
What do win batch files have to do with coding? Nothing.
Admin
Admin
I've just found a genuine use for this wonderful thing ... as a benchmark.
I copied it (into Notepad, naturally. I thought of using DOS edit, but that's waaaay too feature-bloated) and ran it on my very sickly XP Home machine whilst downloading a Fedora DVD ISO. It took half the time you quote. Good grief, man, what are you running on? DOS emulation inside a Commodore 64?
At some point in HHGttG, Ford Prefect defends Zaphod with the following line:
"There's a thin line between genius and insanity."
I think we've just found the thin line.
Captcha: Miniscule. Is that related to a word in the English language, perhaps?
Admin
If you are sticking to the "them" then you are insulting Don by calling his work "brillant."
Admin
Poseur. I opened a dos prompt, typed echo > pi.bat and pasted the text, which i'd copied from the post, hit ^Z.
Admin
With an authentic "poseur" keyboard, one would have to hit ^W. That's because an authentic "poseur" would use only the finest, Executive, keyboard: hand-crafted from extruded Columbian polyvinyl.
Sadly, the drivers for these things are shit. The keyboard layout is "qwertuiop," but us poseurs gotta know our "azerty" before we are True Masters of Da Batty Filez.
(Don't even get me started on Mexican IBM keyboards.)
Admin
Admin
I submit that this -- in the best possible sense of the adjective -- absurd .BAT file is an excellent proponent of the theory that the DOS command language is Turing Complete.
It's still borderline insane, though.
Admin
Could you use SETLOCAL and ENDLOCAL to create environmental variables that could be used by calling batches? I assume that the only kind of function for the Windows Batch language is to call another batch file (using EXIT to pass a return code, and %1, %2, etc to access the arguments).
Admin
And what do you think the WScript.Network object with it's MapNetworkDrive method are?
Admin
And to think I just wrote small programs that performed arithmetic on their parameters and returned the result, which could then be found in the ERRORLEVEL variable.
Admin
Admin
Funny that you would say that because the algorithm used in the batch file looks exactly like the canonical arctan power series to me.
Only if by "nothing wrong" you mean that logarithmic (vs. linear) convergence is acceptable. I once wrote an assembler program that calculated the first 4000 digits of Pi (on a 486) using the same power series. Took a few minutes to complete, operating directly on the decimal representation. Figuring out how long this program would have taken using x=1 is left as an exercise for the reader.
Admin
@echo off call :subroutine echo World goto :eof
:subroutine echo Hello goto :eof
Admin
Anyhows, I get my coat..
Admin
I can't figure out if this is brilliant or insane. I've long considered Windows batch files torture and now I have yet another reason not to change my view.
PS: What's you're next project? Sleeping in an Iron Maiden? Pushing pins underneath your fingernails? Vacationing in a Stalin era Gulag? Enquiring minds want to know!
Admin
Hey, at least batch programming makes you think a bit and is relaxing. And much less painful than Java or Perl :P
Admin
Hmm... 20 seconds... I believe I can produce the same number of decimals in the same time, with no help of digital means.
Admin
Admin
TRWTF is he should have used BPP
Admin
Gah..BBP I mean...stupid typos
Admin
Koalas are not bears per se, but they are commonly referred to as "Koala Bears"
Admin
Admin
LOL I you made me choke on my coffee >< what does that have to do with my Captcha (Saluto)? Everything. >>
Admin
I love it.. its frightening.. but i love it.
Admin
Every botanist knows that they aren't berries, and they don't have much to do with straw either.
(Mmmm, I'd love to have some delicious redconoidalpseudocarp pie right now.)
Admin
Admin
Don't use in-jokes that you don't understand, kid.
Admin
Wow, that was all kinds of awesomeness. Well done, Don! I do hope the hole that writing that batch file ripped you healed by now ;)
Admin
I wish I'd thought of that.
Particularly relevant when replying to the previous post, as I am led to believe was my point...
Admin
MS-DOS is for babies. Real men use PC-DOS v1.0.
Admin
WHAT
THE
FUCK
Admin
Wow! The most beautiful sculpture ever made from manure.
It does prove, though, that you can't polish a turd.
Admin
Admin