enum Bool
{
True,
False,
FileNotFound
};
My favourite DailyWTF. The more you think about it, the funnier it gets.Ask HN: Anyone know any funny programming jokes?
861–870 of 905 posts
Re: Ask HN: Anyone know any funny programming jokes?
#862Earlier quoted context omitted.
A Soviet engineer needs some plumbing done in his apartment, and calls for a plumber. The plumber arrives, does his thing, and hands over the bill. The engineer is shocked. -'What, this is like a quarter of what I make in a month - for half an hour's work???' Plumber shrugs. -'Well, why don't you come join us? Easy work, well paid, no responsibility - just remember to keep mum about your degree, as we're not supposed…
I think the integral is 4 * integrate sqrt(r^2 - x^2) w.r.t. x from x=0 to x=r which is from the equation of circle with radius r centered at the origin: x^2 + y^2 = r^2 => y = sqrt(r^2 - x^2) any other way achieve the same using integration?
If you've never set up and worked a few, try the dx version and the dy version, then maybe fiddle with a few others. They all work.
The concentric rings one is trivial to work out. Integrate over r from 0 to R. Each ring at radius r has thickness dr, and has length 2 pi r, treated simply as a rectangle, which is "close enough" since each is arbitrarily thin. Then the integral is
int_0^R 2 pi r dr = 2pi r^2/2 from 0 to R = pi R^2.
A really pretty one cuts the circle into wedges, then rearranges them by alternating direction to make a "rectangle" approx r high, approx pi * r wide, with bumpy top and bottom. In the limit this has area pi * r * r, and can be shown to kids without needing calculus.
And it's not magic or circular, since pi is defined (in this case...) as the ratio of circumference to diameter.
Re: Ask HN: Anyone know any funny programming jokes?
#863The husband comes back with 12 butters and says: "They had eggs."
Re: Ask HN: Anyone know any funny programming jokes?
#864Re: Ask HN: Anyone know any funny programming jokes?
#865Earlier quoted context omitted.
Reminds me of There are only 2 hard things about programming: - Cache invalidation - Naming things - Off-by-one errors
Cache invalidation isn’t hard, but it used to be and now we can’t get people to think otherwise.
Re: Ask HN: Anyone know any funny programming jokes?
#866Re: Ask HN: Anyone know any funny programming jokes?
#867Re: Ask HN: Anyone know any funny programming jokes?
#868Re: Ask HN: Anyone know any funny programming jokes?
#869This isn't exactly a programming joke but considering how many of us physics majors become programmers, I think it works: Heisenberg, Shrodinger and Ohm were driving down a highway when they get pulled over by a cop. The cop asks Heisenberg if he knew how fast he was going, as you can surmise, he claimed he didn't know because he knew exactly where they were. The cop, finding this suspicious (and because this is not…
Re: Ask HN: Anyone know any funny programming jokes?
#870An infinite number of mathematicians walk into a bar. The first mathematician orders a beer. The second orders half a beer. "I don't serve half-beers" the bartender replies. "Excuse me?" Asks mathematician #2. "What kind of bar serves half-beers?" The bartender remarks. "That's ridiculous." "Oh c'mon" says mathematician #1 "do you know how hard it is to collect an infinite number of us? Just play along". "There are v…
I prefer snappier versions of the first half, like: An infinite number of mathematicians walk into a bar. The first says, "Give me a beer." The second says, "I'll have a half a beer." The third says, "A quarter of a beer, please." The bartender pours two beers and says, "Come on, people. Know your limits." Copy-pasted from https://owlcation.com/stem/Worst-Math-Jokes-and-Math-Puns , but there are many similar versions…