CliffEdge wrote:Sorcery wrote:bungeejumper wrote:Mike4 wrote:Sorcery wrote:Got to admit I am a Paschelbel fan, such a simple tune yet amazing how long it was written (440 years ago). This is a more modern orchestral version that goes on for 2 hours and
never gets boring :
https://www.youtube.com/watch?v=DRgl-2EOyTI
Never gets boring? I've had it on for 20 minutes and it feels just like waiting to get through to BT!
We cellists have a special place in hell for Pachelbel. The same bloody eight notes, over and over and over and
over again, while everybody else gets a go at the variations. Two hours of that, and we'd be like Gerard Hoffnung's oboeists, getting quietly sozzled while nobody noticed.
BJ
Ok Ok I get it. As a bit of background while trying to find a deep bug in C code that you just know is going to cause you have to write x * 100 printf statements in a dozen different sourcefiles to have a chance of working out what is going wrong and then delete them all once you find the bug, it's pretty good temper moderating stuff.
Only 8 notes for the Cello? Have you thought of writing a variation for the cellists?
Never heard of assert?
Here's one of those weird bits of coincidence; thread necromancy relating to a discussion I was having with a junior colleague yesterday (lovely Iranian lass who's not long out of her EE PhD)
Understandibly given programming isn't a core discipline of Electronics Engineering they skip a lot of the stuff that I'd consider essential in the real world "asserts" being one of those things...
- that said I've known plenty of "professional" programmers who are frightened to check stuff because "it works"
Anyways here's a bit of fun I picked up a long time ago for when your compiler doesn't have static asserts
Code: Select all
#define _STR_CAT(a, b) a##b
#define _STATIC_ASSERT_AT_LINE(predicate, line, file) \
typedef char _STR_CAT(assertion_failed_##file##_, line)[(2 * !!(predicate)) - 1];
#define STATIC_ASSERT(predicate, file) _STATIC_ASSERT_AT_LINE(predicate, __LINE__, file)
- yes... it's using the predicate failing to crash the compiler by defining an array of length -1
- can't fail faster than before it's been run
and to bring it round on topic:
Nathaniel Murphy's Crazy Arrangement of Queen's "Crazy Little Thing Called Love"https://www.youtube.com/watch?v=1BJ6Qficleo- which wasn't posted when this thread was first doing the rounds
- sd