This sounds terrible. Even more terrible a lot of people (probably you also) don't find it terrible.
1 karma · joined July 1, 2023
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=mybinary
BINARY_UNIX=$(BINARY_NAME)_unix
A little bit of Clean Code education is needed here :)
Why on earth do you want to introduce so unnecessary abstraction?
If those would use a lot of switches which you don't want to duplicate and just possibly want it to change in one place, I would say OK. But you don't even use it that way: $(GOBUILD) -o $(BINARY_NAME) -v ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -v
So this doesn't make sense at all. You should write the commands as it is and it would be a lot easier to read an already hard-to-read syntax Makefiles anyway.Yes, very much it is. It just need good developers, not only juniors...
Makefiles don't scale, hard to learn because of awkward syntax.
I just tried with Python 2.7 and 3.6 and the hello world startup time is 100ms which is awful lot.
- clean != finished
- clean != perfect
- ugly is not clean
- you can understand a code and find it still ugly
What is he actually talking about?
> Automated tests are not that important
I agree with the content of this section, but the title is bad.