Hacker News new | past | comments | ask | show | jobs | submit login

In general, if you want to make your source code available for others to learn, publish it on github or elsewhere.



Yeah initially I agreed with this article, but after reading the comments and thinking about the fact that i always use sass or stylus for css, I think it makes more sense to publish your source on github and put the github url in a comment - this is much better for learning anyway.


I'd give serious consideration to something like:

  static/style/foo.css
containing the comment

  /* See static/style/foo.css.src on this domain */
since you want the source for the deployed version, not master, and we're trying to make things easy for people grokking what's deployed, not express an opinion about branch naming and deployment practices :)

Publishing the repository URL and/or deployed branch/tag/revision might also be awesome, but it serves a different albeit overlapping set of goals.




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

Search: