User login

Navigation

You are here

Regression testing with the Command design pattern

Computational mechanics practitioners are not typically known for practising well-established software engineering techniques. That makes code developed by various research groups next to impossible to understand and modify.  I still see requests on iMechanica on how to implement Drucker-Prager models when every freshman student probably has their own implementation.  It is likely that the person who developed a particular code cannot themselves understand the code a few years after the relevant paper has been published.  

My new blog post discusses a way of quickly developing regression tests that can be used to check whether a small change in the code breaks the calculation.  Check it out at http://www.parresianz.com/c++/command-pattern/.  This is one of the small steps along the way to make codes last longer than the three years a student needs to complete their PhD.

-- Biswajit

Subscribe to Comments for "Regression testing with the Command design pattern"

Recent comments

More comments

Syndicate

Subscribe to Syndicate