@mkupper said in An updated list of Notepad++ "Easter Eggs":
Npp’s code makes frequent use of hard coded values, negative logic, and path not taken style of coding. It keeps you on your toes.
You state this like it is overall a “bad thing”. IMO, it in general is very typical code for its time.
I’ll not agree with “frequent use of hard-coded values”, generally. The case you’re discussing, though, may be an exception with its introduction of -2. The use of -1 is fairly typical, though. I’m not a fan of it, as it often makes things “awkward”, but I did just use it myself in the code that returns the color id of a tab (where -1 signifies “no color”).
For use of “negative logic” and “path not taken”, I can’t comment unless some specific examples are given, but again I think N++ code is pretty typical of most code of its era in this regard.