This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| My thoughts on writing tiny reusable modules that each do just one | |
| thing. These notes were adapted from an email I recently sent. | |
| *** | |
| If some component is reusable enough to be a module then the | |
| maintenance gains are really worth the overhead of making a new | |
| project with separate tests and docs. Splitting out a reusable | |
| component might take 5 or 10 minutes to set up all the package | |
| overhead but it's much easier to test and document a piece that is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ## you'll have to do a couple extra steps to get this running | |
| ## there are probably other ways to handle svncanboot, but this is from the linux forum | |
| set -e | |
| if | |
| touch /etc/_testr_file | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CODESWARM_DIR="/home/user/src/code_swarm/" | |
| # extract from your git repo | |
| git log --name-status --pretty=format:'%n------------------------------------------------------------------------%nr%h | %ae | %ai (%aD) | x lines%nChanged paths:' > $CODESWARM_DIR/data/activity.log | |
| # convert to XML for CodeSwarm | |
| python convert_logs/convert_logs.py \ | |
| -g $CODESWARM_DIR/data/activity.log -o $CODESWARM_DIR/data/activity.xml | |
| # create a new config that points to the correct input XML and saves snapshots |