
Hello, world! 🤙🏻 👨🏻💻 Software Engineer who loves to learn and code. 📝Blog: https://nitter.gq/t.co/ggAXvDPbbd
Lima, Perú
Joined January 2019
- Tweets121
- Following85
- Followers57
- Likes329
Pinned Tweet
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.
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.
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/
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! 👇
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" 👀
♥️ | 🔀 |🚀 | 🔖
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…
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
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
Learn how to use `next/font` for automatic self-hosting of your custom font, increasing the privacy and performance of your site.
vercel.com/blog/nextjs-next-…
Andrés Valdivia Cuzcano retweeted
`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:
🧵🪡🧶
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! 👇
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/
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! 👇
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.
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… 👈

















