Imagine that during writing software for the employer, I created simple helper function
IsPositiveNumber(x) which returns
true if x > 0 and
TrimBlanks(text) which returns text without leading and trailing spaces and tabs.
Let's say that those functions are very simple inside and can be re-created by an average developer in a few minutes.
Now, if I will create an open-source software or change the employer, how serious ownership violation would I commit when I will simply copy those two functions into new code?
Maybe shall I open-source such functions and then ask for permission to include that open-source library?
And even if I will write them anew, it is very likely that they will be 90% identical with original ones (including their names), because there are not many ways (in my mind) how to create their body or how to name them.
So does it matter if I copy those functions over or if I write them anew? Even if I write them anew, how can I prove that I did not copy them?
Or is this a thing on which no sane person will build an IP lawsuit?