Comment by jammycakes

11 years ago

Here's a quick rule of thumb. If it's the kind of function you would ask a candidate to write at the start of a job interview, you shouldn't be importing a separate module to do it.

Should you rewrite it for every project you need it in, or copy and paste from the last one?

Should tests also be rewritten or copied each time you do this?

What do you do when you've used it in multiple projects and you find a bug or performance issue?