3 ms·
Functional programming. I really like it when my computer crashes because someone decided that checking whether or not "-5435" was a valid array index was "too
by jrockway 17y ago
Functional programming.
I really like it when my computer crashes because someone decided that checking whether or not "-5435" was a valid array index was "too time consuming". Wait, I hate that. I have 4 cores that are idle 99% of the time. Let the computer do some self-checks that will keep my data intact.
(Read the ext3 source code some time and tell yourself that you trust important data to it. The only reason it works at all is because everyone has already been burned by the most obvious bugs.)
- Hexstream 17y ago?... Automatic array-bounds checking doesn't require functional programming. Besides, functional programming is not The One True Paradigm To Rule Them All either. Dataflow, for example, is an example of another superb paradigm.
- jrockway 17y agoThe general argument is against "it's too slow". People avoid FP because "it's too slow" in favor of languges like C that get you the wrong answer really quickly. (Functional programming is not "too slow", of course; consider the popularity of Ruby and realize that SBCL, OCaml, GHC, ... are often 50x faster. Of course, those are all 3x slower than C, so clearly should be avoided...)