ShaunR Posted September 29, 2010 Report Share Posted September 29, 2010 (edited) I've come across various variations of this over time How To Shoot Yourself In The Foot In Any Programming Language What about Labview? We need an entry in this prestigious list. Suggestions? This is my favourite C++ You accidentally create a dozen clones of yourself and shoot them all in the foot. Emergency medical assistance is impossible since you can't tell which are bitwise copies and which are just pointing at others and saying, "That's me, over there." Edited September 29, 2010 by ShaunR Quote Link to comment
vugie Posted September 29, 2010 Report Share Posted September 29, 2010 You create a toe class with all required properties and access methods and a proper icon, then a foot class with all properties and access methods, ..., then a man class out of all previous ones with all access methods, then a gun class with all properties, accessors and icon, a bullet class... Then you realize that if you want to shoot yourself in the foot, the man class, the gun class and the bullet class has to has a common ancestor, because otherwise you'll have class conflict on the wire. So you create it trying not to get crazy modifying all connector panes to allow dynamic dispatching (which means that you have change almost all controls to variants), you think hard how to name this class... Finally you start creating icon for it... after five minutes you give up, take a real gun and shoot yourself in the head. In the short time the bullet flies you realize that the only advantage of using classes in this case was to have fancy color wires instead of pink ones. 1 Quote Link to comment
ShaunR Posted September 29, 2010 Author Report Share Posted September 29, 2010 You wire a bullet to a gun and then to your foot, but when you press the trigger, the bullet shoots the gun and embeds the gun in your foot. Quote Link to comment
Mark Smith Posted September 29, 2010 Report Share Posted September 29, 2010 Just use the "Shoot Yourself" Assistant - until you get an "insane object" error Quote Link to comment
PaulG. Posted September 29, 2010 Report Share Posted September 29, 2010 Use the Shoot Yourself in the Foot Express VI ... in LV2009. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 29, 2010 Report Share Posted September 29, 2010 BD >>> Right Click >>> Programming >>> Structures >>> Global Variable Ben Quote Link to comment
soupy Posted September 29, 2010 Report Share Posted September 29, 2010 You want to shoot yourself in the foot, but a race condition pulls the trigger before the bullet gets loaded in the gun. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted September 29, 2010 Report Share Posted September 29, 2010 You want to shoot yourself in the foot, but a race condition pulls the trigger before the bullet gets loaded in the gun. shhhh.... That is projectile folding and is still in BETA. Ben Quote Link to comment
ShaunR Posted September 29, 2010 Author Report Share Posted September 29, 2010 (edited) BD >>> Right Click >>> Programming >>> Structures >>> Global Variable Ben Project>>New>>Create New>>Class . Its quicker Edited September 29, 2010 by ShaunR Quote Link to comment
Popular Post Black Pearl Posted October 1, 2010 Popular Post Report Share Posted October 1, 2010 It's very simple in LabVIEW: Create a gun.vi with a nice gun icon and an indicator (wired to ConPane). Create a foot.vi with a nice foot icon and a matching control (wired to ConPane). Place both vi's on an empty vi and wire them. Run the vi in highlight execution mode. Felix 5 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.