Skip to content

Instantly share code, notes, and snippets.

View jccatrinck's full-sized avatar

Jessé Catrinck jccatrinck

View GitHub Profile
package main
import (
"fmt"
"log"
"net/http"
"strconv"
"sync/atomic"
"time"
)
@jccatrinck
jccatrinck / main.go
Last active October 9, 2020 17:37
Escale
package main
// Error type
type Error string
func (e Error) Error() string {
return string(e)
}
const (
@jccatrinck
jccatrinck / bad_code_theory.txt
Created October 28, 2019 17:55
Bad code theory
Visible sign of algorithm disorder create an bad environment that encourages further bad code, including broken ones.
It is suggested that minor bad codes errors such as below:
- Bad indentation
- Wrong identifiers names
- Not suggestive commit messages
It needs to be supervisioned by policies to help to create an atmosphere of order and lawfulness, thereby preventing more bad codes.