Leave the campground cleaner than you found it
- If a name requires a comment, then the name doesn't reveal its intent
- Use searchable, meaningful and pronounceable names
- Avoid mental mapping
| [user] | |
| email = [email protected] | |
| [color] | |
| ui = true | |
| [alias] | |
| co = checkout | |
| ci = commit | |
| lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
| [core] | |
| editor = subl -n -w |
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
| } | |
| export PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ ' |
| alias 1pass='wine ~/.wine/drive_c/Program\ Files\ \(x86\)/1Password\ 4/1Password.exe' | |
| alias apalogs='cd && tail -f /var/log/apache2/error.log' | |
| alias checkstyle='rubocop -a -f fuubar ; scss-lint' | |
| alias gl='git lg' | |
| alias openmysql='mysql --defaults-file=~/.local_db_conf' | |
| alias quality_test='checkstyle ; rake traceroute ; rubycritic' | |
| alias testall='bin/rspec' | |
| alias update_me_motherfucker='git checkout master && git pull origin master && bundle install && rake db:migrate' | |
| ----------------------------- |
Refactoring is the process of changing a software system in such a way that it not alter the external behaviour of the code yet improves its internal structure It's a process of clean up to minimize the chances to introduces bugs. Refactoring means improve the code design