OscarCv (@oskarChv) header
OscarCv (@oskarChv) profile picture

Software Engineer | Helping devs & tech leaders stay ahead with high-signal insights on AI integration, AWS, & AppSec. Ed. @writeacode 📩 DMs open.

Mexico
Joined June 2011
Rust Tip: Mueve de un &mut struct sin clonar con take() 🦀 s.token.take() extrae el valor de una referencia mutable en Rust y deja None sin clonar. ⚡ ¿Ya lo usas en tu código? Detalles en el hilo 👇
🤖 Made with AI
Building a password generator is a great way to practice your Python. But it's not as simple as using random if it really needs to be secure. So here, Sameer explains how to write a secure Python script and handle user input the safe way. freecodecamp.org/news/how-to…
3
45
291
14,443
React Tip: Evita race conditions en useEffect con cleanup ⚛️ Si haces fetch en useEffect, una respuesta lenta puede llegar tarde y sobrescribir datos nuevos. Marca ignore = true en el cleanup para ignorarla. ⚡ ¿Ya usas este patrón en React? Detalles en el hilo 👇
🤖 Made with AI
21
🟢 Por qué Promise.all te hace perder datos cuando falla 1 de 10 peticiones Lanzas dos tareas en paralelo: una falla a los 50ms y la otra tiene éxito a los 100ms. ¿Espera Promise.all a que terminen todas? ⚡ Comenta tu respuesta 👇 #javascript #backend #webdev #writeacode
🤖 Made with AI
1
Por qué Promise.all te hace perder datos cuando falla 1 de 10 peticiones Lanzas dos tareas en paralelo: una falla a los 50ms y la otra tiene éxito a los 100ms. ¿Espera Promise.all a que terminen todas? Comenta tu respuesta 👇 #nodejs #javascript #backend #webdev #writeacode
1
Respuesta correcta: B) Catch: Err1 (a los 50ms) ⚡
1
💡 Explicación: Promise.all es fail-fast: en cuanto una sola promesa es rechazada (p1 a los 50ms), toda la promesa compuesta se rechaza inmediatamente sin esperar el resultado de p2. Si necesitas recolectar tanto éxitos como fallos sin abortar, usa Promise.allSettled().
🟢 Why Promise.all drops valid responses when 1 out of 10 requests fails 🟢 Two tasks run in parallel: one rejects at 50ms, the other resolves at 100ms. Does Promise.all wait for the rest? ⚡ Drop your answer below 👇 #nodejs #javascript #backend #webdev #writeacode
1
2
Correct Answer: B) Catch: Err1 (at 50ms) ⚡
1
💡 Explanation: Promise.all is fail-fast: the instant any input promise rejects (p1 at 50ms), the outer promise rejects immediately without waiting for p2. When you want every outcome regardless of failures, use Promise.allSettled().
2
A computer's operating system manages hardware & software and provides key services for various programs. And in this course, you'll learn all about how an OS works. It covers types of OSs, process management, CPU scheduling, memory management, & more. freecodecamp.org/news/learn-…
4
101
852
30,606
☕ The hidden scalability bottleneck when adopting Java 21 Virtual Threads ☕ Virtual Threads enable massive concurrency, yet one classic Java keyword can pin your underlying OS threads during I/O. ⚙️ What happens here? Drop your answer below 👇 #java #backend #writeacode
1
6
Correct Answer: B) Pins the underlying OS carrier thread ☕
1
1
💡 Explanation: In Java 21, executing a blocking call inside a synchronized block pins the Virtual Thread to its platform carrier thread, preventing it from unmounting and freeing the OS thread. Replace synchronized with ReentrantLock for I/O-heavy virtual thread code.
1
PostgreSQL can do a lot more than store relational data. In this article, Aaron shows you what it can accomplish using built-in features. You’ll also learn when Postgres is enough and where specialized tools are still the best option. freecodecamp.org/news/how-to…
6
69
1
578
27,752
🐍 Quitar unos paréntesis en Python cambia por completo la lógica de este if 🐍 En casi cualquier lenguaje ambos darían True, pero Python tiene una regla sintáctica oculta para operadores encadenados. 👀 ¿Cuál es la salida real? Comenta abajo 👇 #python #backend #writeacode
🤖 Made with AI
🐍 Quitar unos paréntesis en Python cambia por completo la lógica de este if En casi cualquier lenguaje ambos darían True, pero Python tiene una regla sintáctica oculta para operadores encadenados. 👀 ¿Cuál es la salida real? Comenta abajo 👇 #python #codechallenge #writeacode
1
6
Respuesta correcta: B) True False 🐍
1
💡 Explicación: En Python, los operadores de comparación se encadenan implícitamente: 1 < 2 == True no evalúa (1 < 2) == True, sino que se expande a (1 < 2) and (2 == True). Como 2 == True es False, toda la expresión resulta en False.
1
🐍 Removing parentheses in Python completely flips this boolean logic In most languages both evaluate to True, but Python's operator chaining rules work differently under the hood. 👀 What is the actual output? Comment below #python #backend #codechallenge #pythonic #writeacode
1
2
Correct Answer: B) True False 🐍
1
💡 Explanation: Python chains comparison operators implicitly: 1 < 2 == True does NOT evaluate (1 < 2) == True; it expands to (1 < 2) and (2 == True). Since 2 == True is False, the entire expression evaluates to False.
1