Andrés Valdivia Cuzcano (@PandresDev) header
Andrés Valdivia Cuzcano (@PandresDev) profile picture

Hello, world! 🤙🏻 👨🏻‍💻 Software Engineer who loves to learn and code. 📝Blog: https://nitter.gq/t.co/ggAXvDPbbd

Lima, Perú
Joined January 2019
Replying to @natsumiangello
No importa el lenguaje, sino entender la lógica de programación. Júntate con personas que sepan más y aprende de ellos, aprende a leer la documentación y no solo veas tutoriales, haz proyectos para consolidar lo aprendido. No te compares, ve a tu ritmo, pero sin detenerte.
3
4
99
Ever fought extra wrappers, broken styles, or bad semantics in reusable components? 😤 asChild prop fixes that. I wrote about how the Slot Pattern keeps API clean and flexible and how you can implement it from scratch 🧐 dev.to/pandresdev/aschild-un… #React #WebDev #RadixUI #TypeScript
1
21
Andrés Valdivia Cuzcano retweeted
Por si alguien lo necesita 👇 La verdadera razón por la que estás cansado todo el tiempo: No es tu carga de trabajo. Son tus asuntos abiertos. El mensaje que no has respondido. La disculpa que debes. La decisión que estás evitando. La conversación que sigues posponiendo. Todo eso corre en el fondo de tu mente todo el día, drenando tu energía. Cierra tus pendientes. Verás cómo vuelve tu energía. El desorden mental es más agotador que cualquier trabajo físico.
This quoted post is unavailable.
10
153
10
1,230
59,719
Andrés Valdivia Cuzcano retweeted
El mejor lugar para aprender sobre Principios de Diseño con un montón de referencias y ejemplos reales 🤘🏻 principles.design/
98
408
20,218
Andrés Valdivia Cuzcano retweeted
CSS Trick ⭐️ You can create a resizable panel UI with CSS alone by leaning into resize and display:grid 👀 .panels{ display: grid; grid-template-columns: auto 1fr; 👈 } .resizer{ max-width: 100cqi; overflow: hidden; resize: horizontal; 👈 } Putting a resizable element into the first panel provides a way to resize the layout as we're using "auto 1fr". You could also do this with other layout techniques but grid was the first that came to me 😅 But, the issue with resize is you can't style the teeny tiny little handle the browser provides... 🤦‍♂️ So, a trick for that is to scale the resizable element up and then clip the part we don't need 😯 .resizer { height: 48px; transform-origin: 100% 100%; scale: 4; clip-path: inset(calc(100% - 12px) 0 0 calc(100% - 12px)); } And that gives you a slightly better hit spot for the resize handle plus the ability to move it around 🙌 It's not perfect by any means. It does raise the question of how hard would it be to implement support for styling the resize handle in the browser? @CodePen link below! 👇
33
302
14
2,334
331,619
Andrés Valdivia Cuzcano retweeted
Te mandaste una 💩 con en el repo y no sabes como resolverlo pero estabas usando Git? @ksylor documentó todas las que se mandó 🔥 y nos dejo esta página llena de preguntas con comandos 🧯 como respuestas buff.ly/2w5p9zi PS: probá "git reflog" 👀 ♥️ | 🔀 |🚀 | 🔖
3
60
217
19,126
Andrés Valdivia Cuzcano retweeted
✨¡Recuerda que HTML es más que etiquetas `<div>`! 🧪Si quieres aprender todas esas etiquetas HTML que no conoces aún, aquí tienes la Tabla periódica de los elementos HTML5. Agrupados por temática, haciendo click, obtendrás más info sobre esa etiqueta. lenguajehtml.com/html/introd…
6
188
656
58,618
Andrés Valdivia Cuzcano retweeted
Yo dawg, I heard you like Promises... #DEVCommunity #JavaScript dev.to/artxe2/javascripts-as…
3
20
2,557
New post 🥳: In this post we will talk about middleware in Redux and how to make them composable, we will also explain step by step how applyMiddleware works to wrap the store's dispatch and add functionality to it. #frontend #redux #webdevelopment #react dev.to/pandresdev/exploring-…
24
Andrés Valdivia Cuzcano retweeted
¡SORTEO de 5 Libros de Programación 📚! La edición física de "Código Sostenible" Pasos para participar: ❤️ Like y RT 🐦 ¡Sígueme! Participación abierta a todo el mundo 🌎 Haremos envíos internacionales El sorteo termina el viernes 7 de julio
196
2,769
32
3,318
198,722
New blog 🥳: Redux Enhancer In this blog we will talk about how an enhancer works and how it allows us to “create” a new Store Creator and "replace" the createStore function provided by Redux. dev.to/pandresdev/redux-enha… #frontend #redux #webdevelopment #react
21
Andrés Valdivia Cuzcano retweeted
You can now use Web Fonts with less layout shift! They cause layout shifts due to font swapping the local fallback w/diff dimensions. New CSS size-adjust & font-metric overrides fix this: https://nitter.gq/t.co/ZArvBgffB5 💜 @chrome & @nextjs shipped to next/font: https://nitter.gq/t.co/ehFkteEavU
1
53
3
285
82,896
`a = 0-x` is about 3-10x faster than `a = -x` 🤯 Let's jump into JavaScript VM details to see why and how to guard against this VM de-opt: 🧵🪡🧶
59
749
95
3,991
893,246
Andrés Valdivia Cuzcano retweeted
2
19
119
11,497
Andrés Valdivia Cuzcano retweeted
CSS Tip! ⚡️ You could use CSS trig functions to calculate animation-delay 🤓 Using them here with custom props for this DNA strand! 👩‍🔬 .node { animation-delay: calc( sin((var(--index) / var(--total)) * 45deg) 👈 * var(--speed) * -1s ); } @CodePen link below! 👇
35
217
18
1,876
182,661
Andrés Valdivia Cuzcano retweeted
Nuevo curso acerca del uso de imagenes en web.dev! Formato, responsive, performance, etc Y lo mejor: es GRATIS! web.dev/learn/images/
2
24
105
10,312
Andrés Valdivia Cuzcano retweeted
Future CSS Tip! 🔮 Create that cool gallery effect with the scroll-driven animations API 😎 ul, img { animation-timeline: scroll(root); 👈 animation: spin; } ul { --r: 270deg; } img { --r: -270deg; } keyframes spin { to { rotate: var(--r); }} @CodePen link below! 👇
22
142
10
1,148
111,372
Andrés Valdivia Cuzcano retweeted
Did you know that you can fork the MDN web docs GitHub repo? This means you can run MDN locally and access all the documentation even when you don't have internet. I might keep this in mind next time I'm traveling or need to work in places w/o wifi.
16
26
5
202
17,873
Andrés Valdivia Cuzcano retweeted
🧠 ¿Conocéis la propiedad box-reflect de CSS? Os permite crear el efecto reflejo de una imagen 👉 codepen.io/carmenansio/pen/p… 👈
21
216
3
1,343
137,201
Andrés Valdivia Cuzcano retweeted
🚀 Cómo animar un degradado en CSS La parte de "syntax" nos permite definir el tipo de propiedad, por lo que el navegador sabrá cómo hacer la interpolación entre los valores. Ejemplo en el siguiente tweet 👇
12
50
378
73,278