A developer shares a mental technique for writing more correct code by sketching informal proofs while coding. The post covers four key reasoning tools: monotonicity (identifying code that can only progress in one direction), pre/post-conditions (specifying constraints on function behavior), invariants (properties that must

19m read timeFrom blog.get-nerve.com
Post cover image
Table of contents
MonotonicityPre- and post-conditionsInvariantsIsolationInductionProof-affinity as a quality metricHow to get better at this

Sort: