mcdoker18
Re:Amazon: Not OK – Why we had to change Elastic licensing
on Tuesday January 19, 2021 @01:54PM (#25837135)
Interesting, how many there are such 3rd party's products that AWS offers as a service?
Who will be the next for license changing, Redis?
Re:The values of Emacs, the Neovim revolution, and the VSCode gorilla
on Sunday January 17, 2021 @02:17PM (#25813902)
The most significant value of Jetbrain IDEs is that all programming languages have good support. I switched between Java, Python, JS, Typescript, C, Golang, and so on regularly. For example, Java and Kotlin support are miles better than all other IDEs.
Re:REST Servers in Go: Part 1 – standard library
on Sunday January 17, 2021 @08:34AM (#25810509)
Good advice!
A small addition in the third point: you can create a separate interface for HTTP errors, for example:
type HTTPError interface {
GetHTTPCode() int
}
func ServeHTTP(w http.ResponseWriter, req \*http.Request) {
result, err := DoTheActualThing()
if err != nil {
statusCode := http.StatusInternalServerError
if httpError, ok := err.(HTTPError); ok {
statusCode = httpError.GetHTTPCode()
}
http.Error(w, ..., statusCode)
return
}
w.Header().Set("content-type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(result)
}
You can apply the same approach for the HTTP body in case of error.
Re:REST Servers in Go: Part 1 – standard library
on Sunday January 17, 2021 @08:14AM (#25810405)
I prefer the same approach, but I'd create a separated struct, such as TaskFilter, and using a pointer because zero ID or empty tag can be valid values.
Re:State of JavaScript 2020
on Saturday January 16, 2021 @03:15PM (#25805086)
As BE, I was surprised how many FE developers use PWA. I need to take a look at this technology.
By the way, I am happy that the usage of typescript increases over time.
Re:How to join a team and learn a codebase (2020)
on Saturday January 16, 2021 @10:46AM (#25802933)
I wonder why no one has not mentioned tests. For me, the tests are more valuable for system or service understanding than, for example, documentation.
But the best scenario when you combine tests and documentation. I have joined the new team recently. They have a lot of e2e BDD tests implemented using the Cucumber framework. It helps me to get a complete view of the system in the shortest possible time.
Re:Managed Kubernetes Price Comparison
on Saturday March 07, 2020 @12:23PM (#22512723)
Only Azure doesn’t charge for the k8s control plane, that is the most surprising thing for me.
Re:Handling Null Values in Postgres
on Saturday March 07, 2020 @12:14PM (#22512651)
I know that it's a valid expression, but are there any use cases for it?
Re:Handling Null Values in Postgres
on Thursday March 05, 2020 @03:40PM (#22497923)
Can someone explain the meaning to use 'x == NULL' expression?
Why does not PostgreSQL prohibit usage of this expression?