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
| ================================================================ | |
| VI SHORTCUTS | |
| ================================================================ | |
| ---------------------------------------------------------------- | |
| MODES | |
| ---------------------------------------------------------------- | |
| i Insert mode (before cursor) | |
| a Insert mode (after cursor) | |
| I Insert at beginning of line |
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
| Meaningful Names | |
| Name says it all. It should tell you why it exists, what it does, and how it is used. | |
| Name should not say what its not. Avoid disinformation and noninformation. Avoid long names that differ slightly. No l or o. | |
| Name should be searchable, pronounceable. Avoid prefixes. | |
| Avoid mental mapping. Clarity is king. Clarity over entertainment value. | |
| Add context but not gratuitous context. | |
| Class name-noun, method name-verb. | |
| Functions | |
| Short body and Long descriptive name. |
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 | |
| wget https://dl.google.com/go/go1.10.2.linux-amd64.tar.gz | |
| mv go1.10.2.linux-amd64.tar.gz /usr/local/go1.10.2.linux-amd64.tar.gz | |
| tar -xvf go1.10.2.linux-amd64.tar.gz | |
| sudo chown -R root:root ./go | |
| sudo mv go /usr/local | |
| ##export PATH=$PATH:/usr/local/go/bin:$(go env GOPATH)/bin |