Pete's Log: oh yeah

Entry #888, (Coding, Hacking, & CS stuff)
(posted when I was 22 years old.)

yes, I must admit that this is true: I am a badass. There's no point in modesty, because it's so blatantly obvious. So I'm reading through my compiler I wrote last year and am very amused by some of the comments I'm finding... I'll share a few that made me laugh out loud:
  • // we want to find the offset (blah, blah, where's my attention span?)
  • // doh!
  • // dear lord, this is ugly ... but hey, it compiles! and works!

But by far the best was a random comment in the middle of the code:
  // read this sometime:
  //http://techpubs.sgi.com/library/manuals/3000/007-3511-001/html/bentley.html

It was separated by several newlines on each side, so wasn't associated with the code, I don't think. So I went to the URL mentioned and it's this page called "Bentley's Rules from Writing Efficient Programs" and it seems like rather a good read. Unfortunately, I'll have to continue to keep it marked as a "read this sometime" cuz it's about time I got busy doing work. But I do wonder how I ended up throwing that url into the code...

So engineering at its best: I brewed a pot of coffee at 2 am. Then asked Brian to wake me before he leaves in the morning, if I've gone to sleep by then... so now it shall begin.