News for hackers. Stuff that matters.
Re:Ask HN: What do you think of reusing code you write betwe... by __d on Saturday November 24, 2018 @04:55PM (#18524182)
My solution is to have side-projects that are open source, which I reuse across multiple jobs. Wherever possible, I get permission to "contribute patches to Open Source projects" included in my contracts, and thus grow the body of reusable code over time.

It usually takes some nights and weekends to get the initial body of open source code written, but since it is usually more-or-less a clone of something I've previous written and want to use again, it is fairly mindless effort.

If you're in a position where you retain the IP for what you write, (I assume you're permitted to use open source?) you could just do whatever tidyup is needed, and push it to GitHub, ready for reuse?

Re:Ask HN: What do you think of reusing code you write betwe... by Kaveren on Saturday November 24, 2018 @06:24PM (#18524479)
This is a good idea, I should definitely consider this. I do enjoy having the full "exclusive" licensing rights to my code, but in many situations in the future this probably won't be possible, especially when working in different domains.