DEV Community

Spyros Argalias
Spyros Argalias

Posted on • Originally published at sargalias.com

3

Programming first principles - 8. First principle - Proof that code works

This post (Programming first principles - 8. First principle - Proof that code works) was originally published on Sargalias.

We require proof that code works.

Why we need proof that code works

It follows from our basic requirement that what we produce must work:

  1. Without proof that the system works, we do not know whether it works or not.
  2. If we do not know whether it works, it means it may not work.
  3. If it does not work, we have failed the requirement that the system must work.
  4. On the other hand, if we have proof that the system works then we know that it works and we have fulfilled our requirement.

Therefore we require proof that the system works.

Requirements for our proof

Our proof must:

  • Be reproducible on demand, because we need it for every single change we make, because we must know the system works at all times.
  • Must be as effective as possible.

Suggested proof

Currently the only thing I know of is a good test suite.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay