Coding Confessions
  • About
  • Confessions
  • Events
  • MAKE A CONFESSION
background

Confession

Trust your intuition!

Background

I was trying to set up a new simulation with a pre-existing fluid flow model. I wanted to simplify the situation I was modelling while I debugged it but it wasn’t easy to change the parameters so I hard coded one of them, the rotation rate, to be zero while I got on with the debugging (you can probably see where this is going, unfortunately I couldn’t at the time…)

What happened?

Well I fixed the problems with setting up the simulation but whatever I did I could not get anything that looked like rotating flow. I kept tweaking things and plotting the fields and muttering to myself “it’s almost like the flow just isn’t even rotating”. Honestly, it was over a week before I remembered that I had hard coded the rotation rate to be zero. I was furious with myself for forgetting what I had done, but more than that I was furious with myself for not trusting my intuition that the modelled flow was not actually rotating!

What was learned?

One thing I learnt is that it should be easy for users to set up new parameters for a model without having to dig into the depths of the code. I also like to have the simulation print out a log of what it thinks it is doing for me to check that everything is set up how I think it should be. But mostly I’ve learnt that when I start muttering “it’s almost like…” then that it is a very good clue for where I need to start with my debugging!

  • Anonymous

    By Anonymous

  • November 2021
  • Submit a confession to us
  • Read confessions from the community
  • Run your own event
  • Watch previous events
Coding Confessions

Normalising failure in
research software

Learn more

  • About the project
  • Read confessions
  • Submit a confession
  • Organising an event
  • Privacy and licenses
  • Github repository

Software Sustainability Institute

The Coding Confessions project evolved as part of a hack day event at the Collaborations Workshop 2021. The Software Sustainability Institute cultivates better, more sustainable, research software to enable world-class research.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 4.0 International License.

© 2021 Coding Confessions

Menu