3 ms·
You know I came from a procedural background and struggled and struggled to learn LISP to see what all the fuss was about. It was really hard because I think li
by kls 9y ago
You know I came from a procedural background and struggled and struggled to learn LISP to see what all the fuss was about. It was really hard because I think like you (not that that is bad or good). Anyways, it was not until I heard it explained that procedural code is about time and functional code is about space that it really clicked. It was explained to me as lightning striking, you don't care when the lightning strikes you just care where the lightning strikes, that really clicked for me, my mindset changed and I got it. I don't think it about as easy or simple, I think it is about how our minds are naturally geared. It took me a lot of mental process to get my head around a distance based thinking about code as opposed to a time based but once I did, I find reasoning about where code is called is easier that figuring about when I want it to be called. But it was not the way my mind naturally worked.