Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

That's a genius way to avoid fence post errors (http://www.dsm.fordham.edu/~moniot/Opinions/fencepost-error-...).


sort by: page size:

Classic fence post error.

Fencepost error– great visual, thanks

I’ve never before heard this described as a fencepost problem but its perfect.

Similar to the recent standup maths video where the town did it's art installation incorrectly - the fence post problem / off by one.

https://youtu.be/FAdmpAZTH_M?si=r_INH_C5j9mbpJSh


Always comment your fences.

Is this the fencepost problem but with time :P?

I mean, it wouldn't be the first time someone forgot one or two of their FENCE checks...

Even better: instrument the fence without removing it. You get the same knowledge without the chance of breaking stuff. If it's code, put it under a anti-feature flag.

I don't like that advice at all. So many fences have been installed for lousy reasons. And the results might be hard to predict so better to actually experience them. If you make a mistake, you can always re-install.

Chesterton’s fence is one I come across a lot. People see some confusing or not ideal code and immediately want to remove it, without understanding its purpose. I like stating it as “don’t assume the previous developers were idiots.”

https://en.m.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fen...


I hate Chesterton's Fence.

We keep knocking down fences and it keeps being great, the most recent being the millenia-long prohibition on gay marriage.

People put up fences for all sorts of dumb reasons. If you see a fence that seems to cause more harm than good, knock it down. In the rare situation where this leads to surprising problems, put the fence back up.

In software, most WTFs are just bad engineering. You should figure out what the code does and how you can do it better, not take a step back and contemplate the mind of its author.



Seems like an exemplary case for "Chesterton's fence":

https://www.chesterton.org/taking-a-fence-down/

Often the most important comments in a codebase are signs on such fences, preserving hard-won knowledge of pitfalls in software and human processes.


If millions of professionals are doing a thing a certain way, either they're all wrong and crazy or there's something I'm missing.

It's a Chesterton's Fence situation: http://en.wikipedia.org/wiki/Wikipedia:Chesterton's_fence


There's a term for this. Chestertons fence (https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence)

well maybe it would be better if you marked which fence post it was with something that you'd have in your car like maybe an ice scraper...

We need to apply Chesterton's fence [1] in situations like this.

[1] https://en.wiktionary.org/wiki/Chesterton%27s_fence


Always useful to keep in mind the concept of Chesterton's fence: https://fs.blog/chestertons-fence/ If something looks stupid or weird, you may not have all the relevant information to judge.

> The article makes the point that people do not build fences for no reason.

I think it’s more than sometimes reasons go away and sometimes people do unreasonable things. I don’t think anyone thinks that people literally build fences completely randomly.

next

Legal | privacy