narven's comments

narven | 2 years ago | on: Open-Source AI Is Uniquely Dangerous

Why would open-source AI be any different from any other AI? AI is AI. Being opensource does not make it better or worst. Is being built by people, and being used by people.

narven | 5 years ago | on: Gitlab default branch name changes to main

When I think that people are not that stupid, there's always someone that surprises me.

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

perfect command for a bash alias

alias godstatus='curl wttr.in'

narven | 6 years ago | on: Using Makefile(s) for Go

Nice article. I use makefiles a lot, mostly for all projects that I use, both for frontend and backend, mainly to have the same commands independently of framework/platform that im using. For me its helpful to just run `make` both to build and run a go project and a react project.

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

page 1