Introduction to Scientific Computing 🦊
Switch branches/tags
Nothing to show
Clone or download
Latest commit 07e36d7 Jun 25, 2018

README.md

Scientific Computing (for the rest of us)

Come talk with us on gitter!

One specific challenge, when writing code as a scientist, is that we care a lot about getting the right answer; but of course, the right answer is not always obvious. So we should be very careful with the code we write. A piece of code that crashes is annoying; but a piece of code that runs, and give you the wrong answer can compromise your science and your career. This guide will help you adopt practices that make it less likely to introduce mistakes in your code, and more likely to catch them. Hopefully, this will let all of us write code we can trust more.

Good principles in scientific computing can help you write code that is easier to maintain, easier to reproduce, and easier to debug. But it can be difficult to find an introduction to get you started. The goal of this project is to provide reproducible documents you can use to get started on the most important points. You can use these lessons on your own, or as a group.

This material is aimed at people who have already interacted with a computer using a programming language, but want to adopt best practices that make their code more robust. It can also be used to facilitate the onboarding of new people in your lab or in your project.

Scientific computing can be very diverse, ranging from a few-step analysis of small data sets to simulations running for weeks on supercomputers. We focus on the most common situations that every scientist encounters at some stage of a research project: data analyses performed on a standard desktop computer. The general ideas and principles that we expose carry over to other situations as well, but the concrete tools and methods may not be suitable for tasks requiring special hardware such as GPUs or supercomputers, or for projects requiring a significant software development effort.

And do you want good news? You don't need to install anything! You can run everything on JuliaBox, a cloud-based service to run reproducible documents as notebooks. If you want to read a short introduction to notebook, we have written one here. We will use the Julia programming language; but you don't need to know anything about it either. We will keep the discussion very general, and not use any of the (very cool!) language-specific features and syntax.

In fact, you will see that good practices for scientific computing have very little to do with tools and technical things; instead, they rely on thinking about programming in a slightly different way. You will be able to apply these principles to any language you prefer to use.

Get started!

Contributing

There are a number of ways to contribute. Before you start, please have a look at our Code of Conduct. It boils down to be nice and respectful -- no contribution, no matter how amazing it may be, justifies or excuses bad behaviour.

The first thing you can do is comment on Issues that have the "Request for feedback" label. They represent situations for which we are actively seeking community feedback, and anyone is always welcome to chime in.

If you are not sure about opening an issue, you can use the chatroom. We'll be glad to have a more informal conversation with you!

If there is a more specific point you would like to raise, you can create a new Issue, and explain your idea, critique, or comment. And of course, you can always browse the current Issues, to get a sense of what is being discussed.

If you want to contribute more, then great! Have a look at the contribution guidelines first, to get you started with setting up a development environment. You can have a look at "Good first issues", if you want some inspiration.

Contributors

Comments, ideas, feedback: Hao Ye, Philipp Bayer, Tim Head, Ethan White

Lesson contents: Timothée Poisot

Other contributions: Konrad Hinsen

Want to read more?

In a rush? Yes you are. We suggest "Good enough practices in scientific computing" to get you started.

A little bit more time? We think "Best practices in scientific computing" might suit you.

Want a more complete thing to read? "The pragmatic programmer" is a masterpiece. I have also heard great things about "Clean code".

If you still have some time, you can read something about ways to improve user confidence in your software, or ways to elevate code as a research output.

Finally, a short Q&A at Nature Jobs about this project.

Other information

license Binder Gitter