The Weird and The Wonderful

The Weird and The Wonderful forum is a place to post Coding Horrors,
Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid
workarounds and developers just not quite getting it. And then somedays we come across - or write -
the truly sublime.

Post your Best, your worst, and your most interesting. But please - no
programming questions . This forum is purely for amusement and discussions on code snippets. All
actual programming questions will be removed.

I'm with the army, and do not bother with anything. Technically speaking it's the air force I'm with, but I still don't bother.
After two weeks I now think about starting a Zen Buddhism class, that's how much I bother.

Switzerland has an air force?
That doesn't involve folded sheets of paper?

Why was I not informed?

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

The airforce is probably the most useful part of the swiss military, and reasonably good equipped. They maintain their own fiberglass high speed network across switzerland, and even the radar stations on the top of the mountains are connected to it.

They maintain their own fiberglass high speed network across switzerland, and even the radar stations on the top of the mountains are connected to it.

Yeah. With breathtaking 8 Mbit/s transfer rate
I know that. Because well, thats what I did/do during my army time. Setting up radio stations to connect to that network. Well, it's enough for telephones and fax devices

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

I wanna trench!
I wanna exhaust port!
I want tiny Tie Fighters smashing into the walls!

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

I think, the member either didn't bother to comprehend your answer and just proceed to copy-paste the texts in your <pre> tags or he didn't comprehend it clearly. Either way, the 'begging' part actually makes me laugh.

Don't mind those people who say you're notHOT. At least you know you'reCOOL.I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64

I'm getting tempted to remove all my money from the bank, stop flying...

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

I once asked myself the question how I could add them... Of course nothing that a quick Google search couldn't answer.
Removing them... Now that's a whole different matter. Perhaps a nice addition for .NET 5.0? Optional inverted commams for everyone!

While PI = math.asin(1) * 2 may be mathematically correct, it's probably not the most accurate representation of π you could create. It depends upon the arcsine function implementation. You might get lucky in case they shortcut the value for an argument of 1, and simply return the library's value of π. If not, they're going to do the arcsine calculation using a numerical method that will approximate something close to π.

In other words, it would be more precise if the library simply gave you its value of π. For casual calculations, the difference may not matter. If you're doing a simulation, having your value of π off by a couple bits could have long-term consequences.