3 ms·
> it's totally changed how i write js for example This may be a silly question. But could you give a couple examples of how you implement something in JS now v
by nequo 4y ago
> it's totally changed how i write js for example
This may be a silly question. But could you give a couple examples of how you implement something in JS now vs. how you would have implemented it 18 months ago?
- chii 4y agoi would wager that after having used LISP, you start thinking bottoms up, rather than top down. i.e, instead of thinking about a program as a large one, and break it down into smaller, and smaller components or pieces, you'd start with the most bottom-est, most small piece first. Even if that piece isn't useful on its own - or it's only of limited use. Then you'd build another small, may be even orthogonal piece. Once you have these small pieces of individual functions, you might end up building a glue (sort of a language or custom macro?) to bind them together.
- newaccount2021 4y ago
- zasdffaa 4y agoLearning a little haskell a million years ago was a revelation. In my next bit of JS (a large, non-web project) I did lots of FP in it - and for the better, not just because i could. I really cut down on boilerplate, made it more readable and reusable, and... it was just great.