5 ms·
This reminds me of trap streets (see https://en.wikipedia.org/wiki/Trap_street https://en.wikipedia.org/wiki/Trap_street) and makes me wonder if there is a dire
by ValentinPearce 7y ago
This reminds me of trap streets (see https://en.wikipedia.org/wiki/Trap_street https://en.wikipedia.org/wiki/Trap_street) and makes me wonder if there is a directory of those.
- divbzero 7y agoCurious. I wonder if analogous “traps” could be added to software.
- RugnirViking 7y agoCompilation makes it difficult to include this kind of useless detail in software, you'd have to do some demonstrably pointless task that survives the compiler somehow like filling an array with a specific sequence of hardcoded numbers
- lidHanteyk 7y agohttps://en.wikipedia.org/wiki/Easter_egg_(media) https://en.wikipedia.org/wiki/Easter_egg_(media)
- jlg23 7y agoYou could have dead code that the compiler cannot recognize as dead and therefore cannot optimize away (basically everything the type system cannot catch). For example, given a function(int x) where, to make sense, x can only be an even number that is a multiple of 42. You are free to handle all x that don't match the criteria however you want, though you'll burden yourself with bad error handling should an invalid x slip through at the caller's site. Much easier (and safer) would be to find n characters or words in strings which, when replaced with another one, don't change the program's behavior or misguide the user - documentation, menu labels, error messages and so on. This way you can even include a n-bit identifier to identify the copyright violator.
- eyelidlessness 7y agoThis is also mentioned in the article