// What will be output? ```go package main import ( "fmt" "runtime" ) func main() { runtime.GOMAXPROCS(1) done := false go func() { done = true }() for !done { } fmt.Println("finished") } ```
Golang
Why was the result negative when overflowing int32?
Why couldn't the entire showcase be built on the client side and simply display metrics on the front end through a service? Why was the logic wrapped on the service?
Do you know warehouse topics? SKU, NM, CR — do you know what they are?
If an operation takes 10-12 minutes, data is actively changing, and there is active writing — how to solve this? How was replication used?
// Question 4. What will be displayed on the screen package main import "fmt" func subis(is []int) []int { is = append(is, 5) return append(is, 6) } func main() { is := []int{1, 2, 3, 4} subis(is[2:3]) fmt.Println(is) }
Is there a lot of logic on the services, or do they just pass data?
Why is it necessary to recalculate historical data every night?
Did you specifically create and calculate logistics routes?
```go import ( "fmt" "runtime" "time" ) func main() { runtime.GOMAXPROCS(2) var c chan int for i := 0; i < 5; i++ { go sleeping(i, c) } for i := 0; i < 5; i++ { gopherID := <-c fmt.Println("routine ", gopherID, " has finished sleeping") } } func sleeping(id int, c chan int) { time.Sleep(3 * time.Second) fmt.Println("... ", id, " time to stop ...") c <- id } ```
Were the reports built from the same database that is actively being written to?
What is the difference between JOIN and UNION?
What motivates you to work as a programmer?
What is your experience with PostgreSQL? Have you had to write complex queries or optimize?
How many Kafka channels were used to compile reports?
Business development or infrastructure? What are the strengths?
Where did the data come from? How did it flow to you?
DevOps configured the main pipeline, and you tinkered with Kubernetes manifests or looked through the cluster logs?
How did you write data to the database — one record at a time or in batches? Could one Kafka message contain 500 records?
How does the Garbage Collector work in Go? What is the stack and heap?