Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

First, I hope this was a good-natured joke; Tom's exploratory project ought not be held to production standards.

That said, this pull request does highlight one DRY opportunity: git submodules [1]. The jQuery+SproutCore integration here could've been two submodule 'links' rather than 24,000 lines of copied .js library code.

As long as the dependencies are on git and the commit 'version' you're linking to doesn't disappear, you're good.

[1] http://book.git-scm.com/5_submodules.html



I've used submodules quite often, but in my deployment setup the checked-out/built version ends up stored, since I keep the deployed tree in its own branch[1].

As long as you link to the version you link to, it won't disappear in your local repo, and you can re-publish that as necessary :)

[1] See https://github.com/bkerley/design-miami-challenge-apr-2011/t... for one using the free http://pages.github.com/ hosting.


I've preferred to use something like Braid[1] than trying to deal with submodules.

[1] https://github.com/evilchelu/braid




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

Search: