News for hackers. Stuff that matters.
Re:Anti-Pattern of the Day: Type Keys by jameshart on Monday January 02, 2023 @11:15AM (#34219560)
Also: forgot the evolution into its final form, which is a list of rule objects.

A practical example:

Your program starts out accepting a config file that looks like this:

    enableLogging: true
Then it changes into:

    logLevel: WARN
Then that becomes:

    logging: {
        level: WARN
        file: system.log
    }
Then:

    logging: 
        fileLogger: {
            level: WARN
            file: system.log
        }
And finally:

    logging: 
        - fileLogger: {
            level: WARN
            file: system.log
        }
        - consoleLogger: {
            level: DEBUG
        }
Re:Anti-Pattern of the Day: Type Keys by i_am_toaster on Monday January 02, 2023 @04:49PM (#34224147)
The truth of this comment leaves me feeling somewhat emotionally violated.