挑选正确的架构约等于选择正确的战斗并做好权衡
- 明确系统边界
- 用户案列 (描述哪些业务,事件,组合在一起会产生什么样的效果)
- 谁使用这个系统?
- 他们怎么使用这个系统?
Picking the right architecture = Picking the right battles + Managing trade-offs
data:text/html, | |
<style type="text/css"> | |
#e { | |
position:absolute; | |
top:0; | |
right:0; | |
bottom:0; | |
left:0; | |
font-size:16px; | |
} |
#!/bin/bash | |
##################################### | |
#Author: Leon Lee # | |
#email: [email protected] # | |
#QQ: 730395591 # | |
#Version: 1.0 # | |
#Note: If you have some good ideas # | |
# or advice, please mail me^^ # | |
##################################### |
First there was: http://snipplr.com/view/15246/color-coded-svn-status
Then there was: http://snipplr.com/view/16540/color-coded-svn-status-v2
A few days ago, I found a handy script online that colorized the output of SVN status. It worked pretty well, but needed a little polish and a couple of tweaks to make it use more common Python idioms. As I continued to use it and fix bugs and inefficiencies, I ended up replacing nearly every line in the original, but it was still a great starting point.
Additional changes include ANSI word-wrapping, a configurable tab expansion feature (for better code alignment), the 'colorizedSubcommands' sequence so that only applicable commands get colorized, use of proper subprocess
module calls so that piping through less
will work (for example, try svn-color diff | less -r
to see colorized diff output).
To use, stick it somewhere, make executable (`chmod 7