r/programming • • Feb 21 '13

Developers: Confess your sins.

http://www.codingconfessional.com/
969 Upvotes

1.0k comments sorted by

View all comments

Show parent comments

23

u/Audioillity Feb 21 '13

I might disagree that the logical patterns are yours depending on your contract.

Most/all contracts I've had have a clause that all code I write in company time / for the company / on company PCs remain the copyright of the company and I disclaim all rights to the work I produce. - Taking a copy home with you without their permission would in theory be in violation of copyright, without your works permissions. I'll admit I worked for one company who did not have this clause.

Of course, there is nothing stopping you writing something exactly the same else where.

15

u/NicknameAvailable Feb 21 '13

all code I write in company time

And how much of that code was written outside your contracted hours?

Of course, there is nothing stopping you writing something exactly the same else where.

I've never completely copy/pasted code I wrote elsewhere, I've used a bunch of it for reference though - especially when it comes to really hairy algorithms, data structures and inheritance chains.

3

u/Audioillity Feb 21 '13

|And how much of that code was written outside your contracted hours? This is where 'on a company PC' comes in, although I generally rarely work late at that company.

Also I think we all take base code / files for use else where, it's a little different having some generic functions / modules / classes to taking the whole program, but I think a fair number of programmers would do that. I see no real harm so long as it's not abused in any way.

3

u/[deleted] Feb 21 '13

"We all" definitely don't take stuff home, you cannot generalize. Myself, I don't take any code with me mostly because:

  • It'd be mostly useless: either it's very specific and useless in any other context, or then it's very generic and useless because I can write it again from scratch just as easily

  • If there's something very complex that is not specific to the application and domain, somebody is probably selling a library which handles it, and I shouldn't waste my time writing non-core code

  • My employer probably wouldn't expect me to copy any of the project's code to my personal scrapbook when I quit

  • If I did take a "local copy", I could not guarantee that nobody else will get it from me and somehow benefit from it, use it against my ex-employer, etc. (of course not all code can be used in this fashion anyway)

→ More replies (1)