Critical code & static typing
Latest update:
I'd say critical code needs tests, not necessarily static typing, but
who am I to disagree with Rob Pike.
Date: Thu, 3 Aug 2023 18:32:27 +1000
From: Rob Pike <robpike@gmail.com>
Newsgroups: gmane.org.unix-heritage.general
Subject: Re: python
Message-ID: <CAKzdPgyA2cMpTxvZxhpLWsDsh9nNWmTEZzRbrNw3vbNhHWp9ug@mail.gmail.com>
I once inherited maintenance of a critical piece of infrastructure written
in exquisitely well written, tested, and documented Python. I mean it, it
was really really good.
It crashed about once a week and I had to fix it over and over because in
those exponentially vast combinations of paths through the code would arise
yet another way to turn a string into a list, or something analogous. It
was hell.
Critical code needs static typing.
-rob
Tags: quote, ойті
Authors: ag