Profile avatar
acdvs.dev
Full stack engineer. Building things with React, Next.js, Tailwind, Go, and Rust.
22 posts 13 followers 16 following
Getting Started
Conversation Starter
comment in response to post
I built my website with Next.js’ SSG, but I honestly think it’s overkill for single pages. I recommend a simple Vite setup.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
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.
comment in response to post
I’m moving to another planet if this happens.
comment in response to post
Be sure to use consistent variable naming (lowerCamelCase is the standard) and spacing around curly braces. Will make things easier to read. Looks good!
comment in response to post
If you have your own domain, use it to get an official handle so people know it’s you.
comment in response to post
Their API is a complete mess. OAuth also wasn’t designed with decentralization in mind.