2 ms·
The largest improvement you can make to reduce the cognitive load of your code is to move to a functional language with immutable data and optionally static typ
by pmarreck 10y ago
The largest improvement you can make to reduce the cognitive load of your code is to move to a functional language with immutable data and optionally static typing. Empirical data about bug tendencies by language http://macbeth.cs.ucdavis.edu/lang_study.pdf http://macbeth.cs.ucdavis.edu/lang_study.pdf is IMHO indirect evidence of cognitive load issues.
- lacampbell 10y agoI'm a big fan of immutable objects. Best of both worlds in my opinion.
- pmarreck 10y agoWell, there's somewhat of an argument to be made that immutable data structures are a bit less performant than mutable ones... but it still seems to be the way forward, especially when you take any sort of concurrency into account
- lacampbell 10y agoThe real distinction I am trying to make is that objects are a higher level, cleaner and more composable way of organising code - much more so than the "module and record" nonsense most FP people seem to push.