Get the latest tech news

The problem with invariants is that they change over time


Cliff L. Biffle blogged a great write-up of a debugging odyssey at Oxide with the title Who killed the network switch? Here’s the bit that jumped out at me: At the time that code was written…

At the time that code was written, it was correct, but it embodied the assumption that any loaned memory would fit into one region. That assumption became obsolete the moment that Matt implemented task packing, but we didn’t notice. This type of assumption is an example of an invariant, a property of the system that is supposed to be guaranteed to not change over time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Time

Time

Photo of problem

problem

Photo of invariants

invariants

Related news:

News photo

Don't waste your time recycling plastic

News photo

FTSE 100 Hits Record as London Stocks Catch Up With Global Peers

News photo

Prison Architect 2 delayed again, this time to September