— Yup they are slow to start
— I always try to avoid extra function calls except when writing IOC code
— 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