Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Sik_the_hedgehog

Member Since 31 Jan 2009
Offline Last Active Private

Posts I've Made

In Topic: Why didn't somebody tell me?

26 March 2015 - 09:20 PM

You can use snprintf to calculate the length of the formatted string by passing a NULL buffer with size 0. Can't believe I went so long without knowing about it (probably because I was just assuming that NULL would just crash).


In Topic: Doge Indirection

26 March 2015 - 09:13 PM

Reminds me of this (it's westley in the IOCCC list).


In Topic: Best comment ever

18 March 2015 - 07:46 AM


If you look in the source of the error pages generated by some versions of IIS you'll find a comment 4k in length, with a note saying it's there because IE won't display error pages shorter than this for no sensible reason.

I thought the limit was 512 bytes o.o (when you get an error and the message sent by the server is shorter than the limit, IE will replace it with its own, on the assumption that the original message isn't helpful)


In Topic: Insane comment

18 March 2015 - 07:42 AM

I was under the impression that replacing it with 0 was a hack rather than a prank (I lost the count of times I'd use placeholder values until stuff was fully working), but without context that's impossible to know =P


In Topic: When you realize how dumb a bug is...

09 March 2015 - 11:30 PM

Ouch, and I guess that's why the LET command exists (I believe that in memory using or not LET was the same after tokenization). That isn't exactly a dumb bug though, that's directly falling into the traps from the limitations of that era. I wonder how much time was wasted from mistakes like that.


PARTNERS