Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

How Chiropractics Is Like Unit Testing

8/13/2016

0 Comments

 
This past weekend my uncle Keith came up from Virginia. He's a Chiropractor, and while he was here he adjusted me. Afterwards, I realized that what he was doing was very similar to software testing!

The Tests

The tests that a Chiropractor performs are obviously not automated; he is acting them out as he does them. But we can still take these manual tests and compare them to unit testing. He would say things like "put your arm in this position and then resist me putting pressure on it". Then he would do it an in some cases I would be very weak. Then he would use his adjustment tool, try the test again, and miraculously I would be able to resist his pressure much more easily. He said the science behind what he was doing has to do with your bones crashing into your nerves over time. The tests help expose where this is happening, and the tools / techniques that he uses helps to bring your body back to optimal status in terms of your spine and nerves and whatnot.

See It Fail, Make a Change, See It Pass

When writing unit tests, it's important to see the test failing, then make a change to the source code, and afterwards see the test passing. This helps build confidence that the test is actually checking the functionality that it should be. Interestingly, seeing the test fail (he can easily push down my arm when I resist), then watching him use the tool to press on a certain part of my body, and then seeing the test pass makes me think that there maybe really is​ something to this treatment after all. 

Live Life TDD

It's fine to be addicted to TDD and BDD so much that you start looking through the "test-first" lense for things of than coding; life, friends, movies... Once you enlightened to the tao of automated testing, it will take over your life. But don't fight it. Life is much better that way. ;)
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Want FREE access to
    my daily stock tips 
    ​newsletter called,
    "The Triple Gainers"?

    Sign up here!

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2021