Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What was the scary code comment about dragons?

Tags:

The phrase was used as a warning that the code was pulling some serious stunts. My google search for this is pulling up nada; but I remember someone doing a search of google source for the phrase quite a while back.

in lies dragons?

dragons sleep here...

Bah...

like image 510
CrashCodes Avatar asked Jan 02 '09 15:01

CrashCodes


2 Answers

Here be Dragons.

originally sourced from old maps, not that any old maps actually used the term!

PS. Not recommended to use the original latin "hic sunt dracones" unless you want to be really nerdy and appear superior to future code maintainers :)

like image 145
gbjbaanb Avatar answered Dec 01 '22 20:12

gbjbaanb


// Here be dragons


An example is in the source code of HipHop for PHP, at line 649 of /src/runtime/ext/ext_imagesprite.cpp as of July 13, 2012:

// Here be dragons. Thou art forewarned

If for some reason the programmer(s) doesn't quite understand what the code is doing, a comment saying "here be dragons" means that the code is "uncharted territory".

(Note my username :P)

like image 36
bwDraco Avatar answered Dec 01 '22 18:12

bwDraco