¿Puedes contarme sobre tu experiencia trabajando con PostgreSQL: diseñaste esquemas, optimizaste consultas, administraste?
Golang
func buildOrderEmailBody(items []Item, totalPrice float64) string { body := "¡Gracias por tu pedido!\n\n" body += "Aquí están los artículos de tu pedido:\n" for _, } func CreateOrder(customerEmail string) { totalPrice := ListAndCalculateVAT() orderDetails := "¡Gracias por tu pedido!\n\n" orderDetails += "Aquí están los artículos de tu pedido:\n" for _, item := range items { orderDetails += fmt.Sprintf("- %s: $%.2f\n", item.NameOfProduct, item.PriceOfProduct) } orderDetails += fmt.Sprintf("\nTotal (incluyendo IVA): $%.2f\n", totalPrice) order = Order{Items: items, EmailSent: false} subject := "Confirmación de tu pedido" if err := SendOrderConfirmationEmail(customerEmail, subject, orderDetails); err != nil { }
¿Cómo rastrear que se envió un correo electrónico y qué hacer si no tuvo éxito?
¿Dónde se almacenan las cadenas en Go: en heap o en stack?
[nombre] preguntó: ¿Cuáles son tus banderas rojas — qué es inaceptable en el trabajo o en los procesos?
[nombre] preguntó: ¿Cómo se distribuyeron las tareas en tu equipo?
Agregaste un índice para la consulta, pero según EXPLAIN no se volvió más rápido. ¿Cuál podría ser el problema?
func init() { items = make([]Product, 100) } func AddItemToShoppingCart(item Product) {
[nombre] preguntó: ¿Cómo ves tu crecimiento profesional — hacia la gestión de personas o en un rol de ingeniería?
[nombre] preguntó: ¿Sabes algo sobre la empresa Tutu.ru, has utilizado el servicio?
[nombre] preguntó: ¿Cómo te desarrollas adicionalmente — qué lees o miras?
[nombre] preguntó: ¿Por qué criterios eliges actualmente una empresa?
var ( mu sync.Mutex items []Product vatRate = 10.0 order Order ) type Product struct { NameOfProduct string PriceOfProduct float32 } type Order struct { Items []Product } func init() { items = make([]Product, 100) } func AddItemToShoppingCart(item Product) { items = append(items, item) } func RemoveItemFromShoppingCart(nameOfItem string) bool { mu.Lock() defer mu.Unlock() for i, item := range items { if item.NameOfProduct == nameOfItem { items = append(items[:i], items[i+1:]...) } } }
Cuéntame sobre el principio de responsabilidad única (SRP). ¿Cómo aplicarlo a la función CreateOrder?
¿Es normal que el envío de correos electrónicos bloquee la creación de pedidos? ¿Cómo se puede solucionar?
¿Qué primitivas de sincronización existen en Go? ¿Qué mutex sería mejor en este caso?
[nombre] preguntó: ¿Qué te motiva más en el trabajo?
[nombre] preguntó: ¿Prefieres tareas relacionadas con el producto o tareas de infraestructura?
[nombre] preguntó: Cuéntame sobre tu área de responsabilidad actual y tareas en iiko.
[nombre] preguntó: ¿Qué no te gusta actualmente de tu trabajo y por qué estás buscando?