Message from JavaScript discussions

July 2017

— Functions aren't THAT cheap in JS apparently

— 

I personally only use lambdas for one liners, but aside from that why not just use one of the string search builtins?

— Yup they are slow to start

— I always try to avoid extra function calls except when writing IOC code

— IOC?

— Right, but I guess he wanted all instances of the substring?

— :(

— What about readability? A vs B

— I'm pretty sure the first approach is ALOT more readable for the average programmer

— Inversion of control, usually callbacks

— This can be done with regular expressions and match

— No array splitting needed