narven | 1 year ago | on: Why Don't I Like Git More?
narven's comments
narven | 1 year ago | on: What happens to Google Maps when tectonic plates move? (2020)
narven | 2 years ago | on: Only 90s Web Developers Remember This (2014)
narven | 2 years ago | on: Only 90s Web Developers Remember This (2014)
narven | 2 years ago | on: Open-Source AI Is Uniquely Dangerous
narven | 2 years ago | on: I Love Ruby
narven | 2 years ago | on: Privatisation has been a costly failure in Britain
Privatisation means, "you that don't give a fc... take care of that problem for me"
narven | 3 years ago | on: The Floppotron 3.0
narven | 4 years ago | on: Ask HN: What HN threads most influenced your thinking about startups?
narven | 4 years ago | on: Don't just shorten your URL, make it suspicious and frightening (2010)
is now http://www.5z8.info/how2printmoney_x5n2rg_lemon-party-redux
??? shorten in what way? the https becomes http ?
narven | 4 years ago | on: Terms and Conditions Game
narven | 4 years ago | on: Why I Love Coding (2012)
narven | 4 years ago | on: Let’s Destroy Bitcoin
narven | 5 years ago | on: Gitlab default branch name changes to main
narven | 5 years ago | on: Gitlab default branch name changes to main
What on earth has the name "master" to do with anything? Why dont we remove the word "master" from all languages in the world and make it a tabu to even speak of it. What does master/slave in relation to "hu-mans" has to do with anything else in the world that has the same name?
Just the amount of money and work hours done by everyone just to make this completely stupid change and not to mention behing completely stupid, its insane, could feed all the starving people on the world.
MY BRANCH WILL ALWAYS BE CALLED MASTER IN ALL THE PROJECTS I CONTROL, TILL THE DAY I DIE.
PS: Sometimes I wonder if people actually have work to be done, to take us to the futur and beyond, or they just go to the toilet and come up with these ideas.
narven | 5 years ago | on: Curl Wttr.in
alias godstatus='curl wttr.in'
narven | 6 years ago | on: Ask HN: What Technologies to Learn in 2020?
narven | 6 years ago | on: Ask HN: Do you still use RSS?
narven | 6 years ago | on: Why are my Go executable files so large?
narven | 6 years ago | on: Using Makefile(s) for Go
Another thing you can add is:
.DEFAULT_GOAL := start
start: fmt swag vet build run
Helps define you default command soyou just need to run `make` and will run all inside of `start`
Since most of us use `.env` files for enviroment files, you can use something like:
# this allows to import into this file all current system envs
include .env
export
And it will inject all of .env file into the current running `process`
Also have some other shortcuts (variables):
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOFMT=gofmt -w
GOGET=$(GOCMD) mod download
GOVER=$(COCMD) vet
GOFILES=$(shell find . -name "*.go" -type f)
BINARY_NAME=my-cool-project
BINARY_UNIX=$(BINARY_NAME)_prod
??