C

Just for once, a vaguely work-related post, but without any work. What is wrong with this (its in C, of course): switch (stoat) { bool goat = TRUE; case weasel: goat = FALSE /* Fallthrough */ case ferret: mustelid(goat); break; ... } where you should assume that "mustelid" represents a block of code large enough to be worth not repeating. You should find this not very hard to solve, once I've presented it in this format. For bonus points, what does the compiler say? What does your editor do? [Update: OK, so the answer is that the…
A small excerpt from the true horror at The C Programming Language Brian W Kernighan & Dennis M Ritchie & HP Lovecraft: Exercise 4-13. Write a function reverse(s) which reverses the string s by turning the mind inside out, converting madness into reality and opening the door to allow the Old Ones to creep forth once more from their sunken crypt beyond time. (bonus points for spotting the error in Cthulhu). blog postings devoted to it, not that this is. Hat tip: Paul.
Warning: Crazy talk ahead. Some of you may remember that I wrote about inflation and why its alternatives fail awhile back. Apparently, Louise Riofrio didn't get the memo. When there's misinformation about cosmology out there, it's up to me to set the record straight. (And I am not alone.) Let me first remind you about one of the alternatives to inflation I debunked last month: Add defects and vary the Speed of Light. This one’s out. Why? Because we would see defects in the Cosmic Microwave Background, and we don’t. The constancy of the speed of light is highly supported by experiments, but…