Adam
banner
acdvs.dev
Adam
@acdvs.dev
Full stack engineer. Building things with React, Next.js, Tailwind, Go, and Rust.
I built my website with Next.js’ SSG, but I honestly think it’s overkill for single pages. I recommend a simple Vite setup.
April 21, 2025 at 6:03 AM
Again, it’s about rapid styling without leaving your HTML. Having class styles written inline on your elements is far more readable and maintainable than separate CSS that is completely dependent on DOM structure. It goes hand in hand with component architecture paradigms.
April 21, 2025 at 5:55 AM
You're missing the point of Tailwind. It's meant to allow rapid styling directly from your HTML/JSX in a way that takes full advantage of modern CSS features. The @apply directive allows you to apply, for example, TW's shortcuts and theming in a CSS selector.
April 21, 2025 at 3:18 AM
Right, you mentioned the pseudo-element approach. What I’m getting at is if you want something simpler than that, you’re veering into an area that CSS isn’t meant for.
March 7, 2025 at 3:34 AM
You're asking for a visual styling technology to fix a user interaction problem, so you won't get a pure CSS solution to this. You have to use the right combination of CSS, HTML attributes, and maybe even a little JS for this.
March 6, 2025 at 11:19 PM
In the first example, you can set the onclick event on the whole card and `pointer-events: none` on the link button so clicks of the link button pass through and click the card.
March 6, 2025 at 11:04 PM
I love using those two together. Be careful with shadcn though. It's a convenient way to get a UI started with consistent design, but because it's entirely decoupled from package management you're more likely to run into upgrade issues in the future.
March 1, 2025 at 10:56 PM
I see your point, but I really think this is just extra complexity on top of a simple logical "or" fallback. Saying `const foo = getMean([]) || 'fallback value'` is simpler and just as configurable.
February 26, 2025 at 3:32 AM
This is a nice idea, but if you ask someone for the mean of an empty set of numbers, they'd just say "there's no mean because there's no numbers". So I think returning a value that explicitly says "there's no mean" (i.e., undefined) would be better.
February 26, 2025 at 2:22 AM
Are you asking about full stack hosting or do you really need a full VPS? Plenty of great free solutions for the former like Cloudflare Pages and Vercel.
February 26, 2025 at 2:10 AM
I’m moving to another planet if this happens.
November 21, 2024 at 11:29 AM
Be sure to use consistent variable naming (lowerCamelCase is the standard) and spacing around curly braces. Will make things easier to read. Looks good!
November 15, 2024 at 6:10 AM
If you have your own domain, use it to get an official handle so people know it’s you.
November 15, 2024 at 6:00 AM
Their API is a complete mess. OAuth also wasn’t designed with decentralization in mind.
October 21, 2024 at 5:35 PM