Tell me more about the story of optimizing report speed: what did you do, what did you face, what difficulties did you have, how did you solve them?
Golang
```go func main() { wg := sync.WaitGroup{} for i := 0; i < 10; i++ { wg.Add(1) go func(wg sync.WaitGroup) { defer wg.Done() fmt.Println(i) }(wg) } wg.Wait() fmt.Println("some text") time.Sleep(1 * time.Minute) fmt.Println("some text2") } ```
Where is it better to declare an interface — at the implementation site or at the consumption site?
Tell me about yourself briefly
Tell about your experience, interesting tasks, what you enjoy working on, what makes you proud.
Will the sequence of output of 100 goroutines be the same on each run? What does it depend on?
How to optimize a heavy analytical SQL query on a large production database?
Let's assume the task is on Go version 1.18. What will change in the program's behavior?
What is the difference between MergeTree, ReplicatedMergeTree, and Distributed engines in ClickHouse?
Do you know the architecture of Kubernetes — what entities are there, what is the control plane?
What would you do if you proposed an architectural solution, but the tech lead disagrees with you, and you are confident in your correctness?
How does the moderation system work to identify prohibited content, including similar images?
What makes it possible to run multiple isolated environments on a single local machine (Docker/containerization)?
If you fix the bug with wg (pass a pointer) — what will we see on the screen when the program runs?
What helped reduce the processing time from 120 to 5 seconds?
```go func main() { wg := sync.WaitGroup{} wg.Add(8) for i := 0; i < 10; i++ { go func(wg *sync.WaitGroup, i int) { defer wg.Done() fmt.Println(i) }(&wg,i) } wg.Wait() fmt.Println("some text") time.Sleep(1 * time.Minute) fmt.Println("some text2") } ```
How to make the unit added through append visible on the fifth line as well? Without changing the fill function's signature.