absurd and useless code

fernando_g

Senior Member
Whenever you are bored with life, have had too much cheap whiskey or mind enhancing chemicals, or simply want to have a good laugh, you can read the following thread.
http://www.electro-tech-online.com/chit-chat/97603-0-volt-stabilizer.html

There you can find some brilliant concepts (some of which I'm proud to say, I have contributed to) like the following:

Bidirectional Diode
Noise Amplifier
Erase Only Memory
No Pass filter
No-blow fuse
and other Nobel Prize-winning ideas.

Along those lines, it got me thinking that there must also be some brilliant and Turing award-worthy code, that forum members could contribute such as.

absurd_loop:
if bit0 =0 or bit0 = 1 then absurd_loop
 

Dippy

Moderator
Code:
Repeat
  Gosub Fall_Over
Until Sober
I'm sure the Forum is littered with unintentional contributions.

I thought the book "The Puppet Masters" was much better than the film.
 

hippy

Ex-Staff (retired)
Something to think on : Can this code ever set Output 0 high ?

Code:
Low 0
Do
  If pin1 = 0 And pin1 = 1 Then
    High 0
  End If
Loop
 

BeanieBots

Moderator
Well that would depend on how the interpreter works but I'd guess it COULD return a true with spot on timing...

Also, bidirectional diodes DO EXIST and have a valid use.
 

Rickharris

Senior Member
As do 2 diodes back to back.
Code:
Do
Sleep
until not tired
Code:
side_two_please_turn_over:

goto side_two_please_turn_over

side_two_please_turn_over:

goto side_one_please_turn_over

end
Keeps the bottom set kids at school happy for hours - draw the flow chart - Follow through the logic. You are feeling sleepy!
 
Last edited:

BeanieBots

Moderator
Come to think of it, there are genuine things called "noise amplifiers" too.
However, you did miss "write only memory" off your list.
 

papaof2

Senior Member
However, you did miss "write only memory" off your list.
Most of us already have one of those - it's where the "I really don't want to do that" requests from others are stored ;-)

Also known to be caused by certain medications, alcohol, and other chemicals...

John
 

Texy

Senior Member
Code:
Repeat
  Gosub Fall_Over
Until Sober
I'm sure the Forum is littered with unintentional contributions.

I thought the book "The Puppet Masters" was much better than the film.
By Heinlein? I've just read that. I didn't know they did a film of it - how did they handle the nudity, out of interest?

Texy
 

Dippy

Moderator
Well, the bare facts are that the film didn't have any proper nudity.

Starring Donald Sutherland. Released 2003? Not sure.

In true 'Movie' style shall we say it was based on the book.
A good bit of fun but not as good as the book -a bit like Tom Cruise in War of the Worlds.

Not sure if it was popular at the box office - not enough F words which are, of course, mandatory ;)
 

Rickharris

Senior Member
This is quite valid but always catches beginners out

Code:
'LED on pin 2

start:
high 2
wait 1
low 2
goto start
Led isn't flashing sir!
 

fritz42_male

Senior Member
Heinlein is always a good read - my favourite is Job - a comedy of justice but Puppert Masters was good as well.

Shame that the cinematic people always screw up a good book.
 
Top