• FaceDeer ( FaceDeer@fedia.io ) 
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    Indeed, my code has never been more rich in unit tests now that coding assistants make them so easy to add. If the coding assistant subsequently does something weird that changes program behaviour it knows immediately.

      • FaceDeer ( FaceDeer@fedia.io ) 
        link
        fedilink
        arrow-up
        1
        ·
        50 minutes ago

        They check to make sure that the code continues producing the expected results. For example if I had some code that added up numbers, I might have a unit test that calls that function with the parameters “2” and “2” and checks to make sure the result is “4”. If something changes that makes it start returning something else then a flag is immediately raised.