How to shoot yourself in the foot in any programming language
fullduplex.org
fullduplex.org
gun >= id foot
but this puts your gun in your foot. Then you write your data types data Space = Empty | Gun| Foot deriving (Show, Eq, Ord)
–if you’re right-handed, this code should work shootFoot = foldr (shoot bullet) Empty $ enumFromTo Gun Foot
–For southpaws foldl’ (shoot bullet) Empty $ enumFromTo gun foot
Violence.hs:5:35:
No instance for (Shootable BodyPart) arising from a use of 'shoot'
Possible fix: add an instance declaration for (Shootable BodyPart)
In the expression: shoot $ user ^. foot
In an equation for 'violence': violence user = shoot $ user ^. footEdit: Sorry, not group actions, monoid actions. Group actions would mean there was some kind of inverse bullet. Also note that bullets aren't commutative.
Then you go online and are helpfully told that what you really needed was a an abstract shoe, that bleeding feet are prone to infection and impurities, and if you had only read this one research paper there's a 2-liner in there showing you how to program Usain Bolt with wings.
_ _ _ .'`;
_(_)(_)(_)| |
(_) `--'
.-'``````---. ,-.______________,=========,
| ; [| )_____________)#######((_
`'-......---'' /===============.-.___,--" _\
.-'``'. "-._,__,__[JW]____\########/
| ( \ ( )) )####O##(
| \ \ \___/,.#######\
: \ `====" \#######\
: `. \#######\
: \ )##O####|
| | )####__,"
\ / `--""
`'-...-'`"Somewhere a gun goes off and hole appears in your foot, but you don't remember enough linear algebra to figure out how this happened."
* You send a message to your hand process to shoot yourself in the foot.
* Hand process sends a message to the gun process.
* Gun process sends a message to the primer process.
* Primer process sends a message to the foot process, using the bullet to contain state.
* Bullet state is passed to the foot process,
* Foot process creates a copy of your foot that contains a hole, and sends a message to the leg process indicating that it should accept the replacement foot...
Here are a few ideas:
You take the gun to a smaller room and it disappears.
You're left-handed but the gun doesn't support left-hand prefixed properties.
The gun is too big in your right hand but too small in your left hand.
You take the gun to a different range and your beautiful, well designed gun is suddenly too ugly to behold.
You miss your foot because you're standing in line next to a guy that's floating.
>You’ve perfected a robust, rich user experience for shooting yourself in the foot. You then find that bullets are disabled on your gun.
Anyone have a modern version for this?
> Javascript
> There're so many guns to choose from that when you finally choose one, it's suddenly no longer cool to shoot yourself with it so you look for another one.
ps. I love Javascript :)
self.shoot(function() {
holster.unclip(function() {
gun.remove(function() {
safety.disable(function() {
trigger.pull(function() {
// help I'm trapped in a callback factory
});
});
});
});
});http://users.cms.caltech.edu/~mvanier/hacking/rants/cars.htm...
[[[FSGun alloc] initWithGunType: FSGunTypeShotgun] shootBodyPart: FSBodyPartFoot side: FSBodyPartFootSideLeft onPerson: self]
Its rickety, it bends and moves when you use it, but no matter what it just keeps working. Although there have been new platforms to come out with superior technology, none can match its simplicity and ease of use, and because of this it has been used in more instances than any other. Hell, even a kid can operate it.
The only problem is that neither i nor anybody else alive today has any idea what 370 JCL is. Can someone repurpose this to be about the Cloud?