Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Am I doing anything illegal by publishing code from a book?
2 points by _fsbf on April 6, 2013 | hide | past | favorite | 1 comment
Finally started going through K&R C using a github repo to save source code from the book. After an interesting chapter, I find it useful to implement the exercise and run it to get a better feel for the language. After publishing a few exercises on my public github repo, I realized that I may be breaking some copyright law. Googling around a bit didn't help. Maybe someone here on HN can help answer the question:

What is the policy on publishing source code from books? Is there a general answer to that question or does it differ with every book? Am I doing anything illegal or immoral by publishing code from a book on my github repo?



There is probably an explicit copyright policy inside the book.

If there isn't you should assume you are violating their rights if you are publicly publishing their works and you would be better off using a private repository.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: