4 ms·
You also have to focus on the correct performance issues and personally I've never seen writing functional js/ts being the issue.
by tephra 5y ago
You also have to focus on the correct performance issues and personally I've never seen writing functional js/ts being the issue.
- lostcolony 5y agoDefine functional js/ts. If it's just "oh, hey, I am using first class functions everywhere" - yes, Javascript is great at that. If it's "I'm writing a bunch of recursive solutions for naturally recursive problems", Javascript is a pretty poor fit for it. You can do it, but it requires extra bookkeeping and care, as I mention on another comment.
- scns 5y agoI once benchmarked a simple loop, and the same loop done via recursion. The recursive solution was an order of magnitude slower.