WriteaCode (@WriteaCode) profile picture
Joined October 2026
WriteaCode retweeted
⚡ Domingo de C++: Un solo virtual faltante puede fugar gigabytes en producción Polimorfismo básico: creas un Derived, lo guardas en un puntero Base* y haces delete. ¿Se limpian ambos recursos? Comenta tu diagnóstico técnico #cpp #cplusplus #systems #programming #writeacode
2
1
2
81
WriteaCode retweeted
🐹 The historic Go 1.22 change that fixed Golang's most infamous gotcha 🐹 For a decade, this snippet printed 333 due to loop variable sharing across goroutines. What happens in modern Go? ⚡ Drop your answer below 👇 #golang #go #backend #cloudnative #writeacode
1
1
9
WriteaCode retweeted
🦀 Hacer .clone() "por si acaso" te está costando memoria innecesaria 🚨 Aprende a usar Cow (Clone on Write) en Rust para prestar referencias cuando no hay cambios y asignar en el heap solo cuando hace falta. ¿Eres team Cow o team .clone() para todo? #rust #rustlang
🤖 Made with AI
1
1
10
WriteaCode retweeted
🐍 The silent bug hiding inside Python lambda loops 🐍 At first glance it looks like it multiplies by 0, 1, 2, 3... until Python's variable lookup surprises you. 👀 What is the actual output? Comment below 👇 #python #backend #codechallenge #pythonic #writeacode
1
1
1
12
WriteaCode retweeted
🐍 El bug silencioso de los lambda dentro de bucles en Python A simple vista parece que multiplicará por 0, 1, 2, 3... pero Python evalúa las variables en un momento distinto al que crees. 👀 ¿Cuál es la salida real? Comenta abajo #python #codechallenge #pythonic #writeacode
1
1
1
9
WriteaCode retweeted
Late Binding Closures
🤖 Made with AI
1
1
8
WriteaCode retweeted
☕ How Java 21 eliminates incomplete switch statements at compile time Combining sealed interfaces with Pattern Matching turns the compiler into a safety net against missing business cases. 🛡️ What happens here? Drop your answer below 👇 #java #writeacode #cleanarchitecture
1
1
1
11
WriteaCode retweeted
Respuesta correcta: B) Error de compilación: el switch no cubre todos los casos posibles ☕
1
1
1
11
WriteaCode retweeted
🤖 Made with AI
1
1
9
WriteaCode retweeted
💡 Explanation: When id transitions from 1 to 2, React commits the new DOM first, then runs the previous render's cleanup function (which still closes over id = 1), and finally runs the new effect with id = 2.
1
1
7
WriteaCode retweeted
⚛️ In what exact order does React run useEffect cleanup functions? ⚛️ Mastering this lifecycle order is the secret to preventing race conditions during data fetching in React. 🔄 A, B, C, or D? Test your React internals 👇 #reactjs #javascript #webdev #frontend #writeacode
1
1
1
11
WriteaCode retweeted
React useEffect Cleanup: Can You Guess the Output? ⚛️ Discover how React useEffect, cleanup functions, dependency arrays, and JavaScript closures work together.
🤖 Made with AI
1
1
9