Ernesto Ramírez (@_ErnestoR) header
Ernesto Ramírez (@_ErnestoR) profile picture

Between fatherhood, web development and video games, I'm having an increasingly harder time deciding what to say in short bios. Javascript Engineer.

Cuernavaca, Mexico
Joined June 2010
Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)Photo by Ernesto Ramírez (@_ErnestoR)
What if we could get statistics to write code? 🤔
1
58
Ernesto Ramírez retweeted
I swear we didn't plan this, but just today, we finally NUKED our entire AWS account at the 37signals company meetup! This followed moving out compute+dbs in 2023, then S3 this summer, and now finally the entire account is GONE 🎉
141
361
113
6,396
669,674
Ernesto Ramírez retweeted
STOP EMAILING ME CODES, STOP TEXTING ME THINGS LET ME ENTER A PASSWORD, 2FA AND OR PASSKEY
99
89
19
1,930
121,223
Ernesto Ramírez retweeted
✨ Tailwind CSS v4.0 is here! Huge performance improvements, radically simplified setup experience, CSS-first configuration, modernized P3 color palette, container queries, 3D transforms, expanded gradient APIs, @​starting-style support… …and tons, tons more.
296
1,039
228
6,553
507,552
Ernesto Ramírez retweeted
TIL you can do "multi zone" in Next.js basically independent Next.js apps running on a route / -> main app /docs -> docs next.js app
50
39
10
993
233,476
Ernesto Ramírez retweeted
Linked Lists aren't real.
113
408
77
3,699
183,479
Ernesto Ramírez retweeted
I wanted to share the following 10 Tailwind techniques. These will come in handy next week. For those who don’t use Tailwind, here be dragons! 1/10 - Let’s start simple. Set a CSS variable (width) based on state and use an arbitrary className.
93
581
44
5,471
348,955
Ernesto Ramírez retweeted
If you need truly dynamic styles with Tailwind, the pattern I always reach for is setting a CSS variable dynamically as an inline style, and referencing that CSS variable with a static class. This is easy for Tailwind to statically analyze, and produces less CSS too.
45
70
11
1,307
95,519
Ernesto Ramírez retweeted
I love waking up to breaking changes in @nextjs core 🙃 This one is going to be a pain to handle properly in @nuqs47ng 😓
9
14
5
184
46,752
Ernesto Ramírez retweeted
The worst kind of bug is the one that’s rare and seemingly goes away on its own, but whose enigma lingers on in the back of your head for the rest of eternity.
40
32
6
465
38,492
Do you remember when you joined X? I do! #MyXAnniversary
4
59
Ernesto Ramírez retweeted
scrum and soccer are very similar 90 minutes of running around and sometimes something happens
181
375
52
4,514
798,576
Ernesto Ramírez retweeted
for anyone still worrying about Devin and their job, Devin's company is still actively hiring software engineers despite "the first ai software engineer" sorry, human software engineer, definitely not lizards
60
138
15
2,246
122,848
Ernesto Ramírez retweeted
components / hooks / types / utils (and constants) is the split I'm seeing in many codebases, yet it's the one I dislike the most. It groups by type, not by domain. "useTheme" will live next to "useTodo", but not next to ThemeProvider ... why?
138
176
61
1,774
514,992
Ernesto Ramírez retweeted
🎬 Today, I'm sharing with you some of my favorite tips to help you write better test names in JavaScript. The link to the video is in the first reply 👇
3
3
55
15,950
Ernesto Ramírez retweeted
I can’t stress how much this is a not-good idea: csswizardry.com/2023/10/the-…
ONCE #1 is completely #NoBuild for the front-end. No bundling, no transpiling, no nothing. Just individual, vanilla CSS and JavaScripts served over HTTP/2. It's amazingly light and amazingly fast with exquisite cache expiration dynamics. Bliss to develop for too!
37
72
13
868
502,875
Ernesto Ramírez retweeted
CSS Tip! 📜 You can create scroll-driven micro-interactions with animation-timeline and custom properties 🔥 .search { animation: shrink; animation-timeline: scroll(); animation-range: 0 calc(var(--header-height) * 0.5); } @​keyframes shrink { to { width: calc(100% - var(--button-size); } } The --header-height is being used to dictate the container height for the header. You can use that for the animation-range used across different scroll animations 🤙 For another example, you can animate the box-shadow reveal on the header once the search has stuck 🍡 header { animation: shadow; animation-timeline: scroll(); animation-range: var(--header-height) calc(var(--header-height) * 1.5); } @​keyframes shadow { to { box-shadow: 0 5px 10px hsl(0 0% 0%); } } Then you have the little extras! 🧸🎈 Everything powered by the scroll() animation-timeline which hooks into the page scroll. And then using the --header-height in the different animation-range ✨ Give it a try! ⭐️ @CodePen link below! 👇
42
414
16
3,710
496,165
Ernesto Ramírez retweeted
React Aria Components has reached RC! 🚀 • Built-in form validation ↳ Native HTML constraints ↳ Custom validation functions ↳ Server validation – designed for React Server Actions • New Toolbar component • Improved Framer Motion support • Hover events • Simpler docs CSS
18
99
7
812
147,613