Sobes.tech

How do blocking system calls affect the scheduler?

188

What is the difference between Dependency Inversion and Dependency Injection? What implementations of Dependency Injection exist?

188

What needs to be done to ensure PostgreSQL data is not lost after container restart?

179

What do you know about the sync package besides Atomic and Mutex?

179

What are the potential pitfalls when using the append method for a slice?

175

/** * Merge N channels into one * * Given n channels of type chan int. Write a function that merges all data **/ // 1. Implement a function to merge N channels into one func joinChannels(chs ...<-chan int) <-chan int { mergedCh := make(chan int) // ... return mergedCh } // 2. Write code to fill channels a, b, c with values // ...

174

Semaphore — what is it and where to get it in Go?

172

Have you conducted technical interviews and mentored others?

171

What programming languages did you work with before Go and when did you start programming?

171

Tell about sync.Atomic: what is it used for, have you used it in your work?

165

package main func oneStep(yield func() bool) { yield() } func f() { for range oneStep { print("f ") recover() } } func g() { for range 1 { print("g ") recover() } } func checkPanic(loop func(), c chan<- struct{}) { defer func() { println(recover() != nil) c <- struct{}{} }() defer loop() panic(123) } func main() { c := make(chan struct{}, 1) go checkPanic(f, c) <-c go checkPanic(g, c) <-c }

165

Tell me about yourself, what is your experience, what have you been doing, what is your experience with Go, are you familiar with Kubernetes?

165

How do you evaluate your experience with Kubernetes?

163

What is an empty interface (interface{}) and how does it differ from any?

161
/4