1. 8
  1.  

  2. 2

    Reminds me of the classic https://github.com/Droogans/unmaintainable-code

    Some companies have a strict policy of no numeric literals; you must use named constants. It is fairly easy to foil the intent of this policy. For example, one clever C++ programmer wrote:

    #define K_ONE 1
    #define K_TWO 2
    #define K_THOUSAND 999
    
    1. 1

      Never underestimate the power of a bored college student and a preprocessor: https://github.com/Hashdump/Goodbye-World/blob/master/hello_random.c I still go back to that and disgust myself with what I created.

      1. 2

        what is that supposed to do?

        1. 1

          It prints “Hello World!”