Skip to content

Instantly share code, notes, and snippets.

================================================================
VI SHORTCUTS
================================================================
----------------------------------------------------------------
MODES
----------------------------------------------------------------
i Insert mode (before cursor)
a Insert mode (after cursor)
I Insert at beginning of line
@raziaa
raziaa / cleancode.txt
Last active June 8, 2018 08:54
Gist - Clean Code A Handbook of Software Craftsmanship
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.
@raziaa
raziaa / installgo.sh
Last active May 25, 2018 22:07
Install Go
#!/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