The Software Essays That Shaped Me

(refactoringenglish.com)

28 points | by zdw 5 days ago ago

6 comments

  • jauntywundrkind 2 days ago ago

    https://news.ycombinator.com/item?id=45425568 303 points, 3 days ago, 47 comments.

    Great topic. But imo Too Soon (to post again).

    • typpilol 2 days ago ago

      I thought hackernews didn't even allow same links within 7 days.

  • eternityforest 5 days ago ago

    > Test code doesn’t have its own test code

    I would love it if we had better tools to make testing the tests explicit, line inline "This is what this code shouldn't do and it's a problem if there's no test that could catch it if it does" blocks.

    • jffhn 2 days ago ago

      When I do functional unit tests, they tend to include the same functional logic as the code to test. What I strive for is then to express it in a different and possibly clearer way, and I see the testing as mutual testing of two implementations, one more easily humanly checkable.

    • scarface_74 2 days ago ago

      I have always wanted to deploy mutatation testing and experimented with it back in the .Net framework days with a package called NinjaTurtles.

      https://stryker-mutator.io/docs/

      • 01HNNWZ0MV43FF a day ago ago

        Rust has a tool for mutation testing called cargo-mutants iirc. It's not perfect but it'll find low-hanging fruit