3 ms·
The "loosey-goosey" approach to data in coding is one of my biggest pet peeves. Some people absolutely insist on making everything as dynamic as possible, and t
by ratmeadow 2y ago
The "loosey-goosey" approach to data in coding is one of my biggest pet peeves. Some people absolutely insist on making everything as dynamic as possible, and then wonder why we end up with a buggy mess. I always found it very natural to move as much as possible into the type system, because why wouldn't I want the machine to find all my inevitable mistakes for me?
- deleted 2y ago[deleted]
- majewsky 2y agoMy personal favorite of this has got to be a particular mess of a Python API that led to me implementing "type veryFlexibleUint64": https://github.com/sapcc/limes/blob/9ea9d1f86383f8a5fe0fa1d11912a3456f50c568/internal/plugins/capacity_sapcc_ironic.go#L107-L135 https://github.com/sapcc/limes/blob/9ea9d1f86383f8a5fe0fa1d1...
- pbronez 2y agoSo brutal