How to fix your scientific coding errors

3 min read Original article ↗
  • TECHNOLOGY FEATURE

Software bugs are frustrating. Adopting some simple strategies can help you to avoid them, and fix them when they occur.

Cartoon of two beetles whose antennae form the square brackets to open and close a line of code

Illustration by The Project Twins

As a graduate student, Steven Weisberg helped to develop a university campus — albeit, a virtual one. Called Virtual Silcton, the software tests spatial navigation skills, teaching people the layout of a virtual campus and then challenging them to point in the direction of specific landmarks1. It has been used by more than a dozen laboratories, says Weisberg, who is now a cognitive neuroscientist at the University of Florida in Gainesville.

Access options

Access Nature and 54 other Nature Portfolio journals

Get Nature+, our best-value online-access subscription

$32.99 / 30 days

cancel any time

Subscribe to this journal

Receive 51 print issues and online access

$199.00 per year

only $3.90 per issue

Rent or buy this article

Prices vary by article type

from$1.95

to$39.95

Prices may be subject to local taxes which are calculated during checkout

Nature 602, 172-173 (2022)

doi: https://doi.org/10.1038/d41586-022-00217-0

References

  1. Weisberg, S. M., Schinazi, V. R., Newcombe, N. S., Shipley, T. F. & Epstein, R. A. J. Exp. Psychol. Learn. Mem. Cogn. 40, 669–682 (2014).

    Article  PubMed  Google Scholar 

  2. Strand, J. F., Brown, V. A. & Barbour, D. L. Psychon. Bull. Rev. 26, 291–297 (2019).

    Article  PubMed  Google Scholar 

  3. Strand, J. F. Preprint at PsyArXiv https://doi.org/10.31234/osf.io/rsn5y (2021).

  4. Neupane, J. B. et al. Org. Lett. 21, 8449–8453 (2019).

    Article  PubMed  Google Scholar 

  5. Clementi, N. C., Cooper, C. D. & Barba, L. A. Phys. Rev. E 100, 063305 (2019).

    Article  PubMed  Google Scholar 

  6. Curcic, M. & Haus, B. K. Geophys. Res. Lett. 47, e2020GL087647 (2020).

    Article  Google Scholar 

  7. Donelan, M. A. et al. Geophys. Res. Lett. 31, L18306 (2004).

    Article  Google Scholar 

Download references

Subjects

Latest on: