Hacker Newsnew | past | comments | ask | show | jobs | submit | sorahn's commentslogin

It is, but it’s difficult. I am down visiting New Zealand and 3 times I have flown domestically here and there no ID check. I buy a ticket online, check in online, and scan a barcode at the gate. Is New Zealand an exception, or do a lot of countries not require an ID for domestic flights, and the US is the exception?


I don't think this is specifically a react problem. The problem is that people don't want to learn what modern CSS can do, or write it themselves (see Tailwind), and most new frameworks make it easy to just sidestep that with div soup.

Some of us _like_ CSS, and try to use as much of it when possible, but I feel like we are few and far between. I use react to manage the state of my app, but that doesn't mean I have to make a 27 div component to style an input.

The big problem is trying to convince the rest of the team that they should learn and use CSS.


I agree it's not just React - I think a lot of people simply do not know what CSS can do nowadays.

I do like Tailwind (I guess it fits with how I think). But to make good use of it you _do_ need to know how CSS works (for example, using variant selectors for picking out child elements, using container queries instead of global breakpoints etc).

One addition - I learnt a _lot_ about CSS by reading [Every Layout](https://every-layout.dev/).


I really don't understand Tailwind. I heard great things about it, and then I tried it and it seemed like setting style="" on all elements, but with extra steps.

Did we go off semantic CSS and returned to setting properties on each element, or was I using it wrong?


Plain CSS is very useful if all you have is an HTML page. Giving all buttons a consistent look is nice and easy if you can just specify that with a nice CSS selector. That's also the only place you can do it without changing all <button> tags.

If you're building a component-based UI, that need is less, because all your buttons are created in a specific Button component. That's also an easy place to attach styling. You don't even need a separate file anymore.

But that's a wash. It gets much more interesting if you have components that are used in different contexts. Unordered lists for example can be an unordered list in the running text, but also a navigation list in the footer, the menu, or as tabs. There's some semantic logic to having those things as lists, but they usually look completely different.

You'd use classes and descendent selectors to deal with those differences. The downside is that those leak very easily to instances that you don't want them in. Having normal lists inside tabs inside running text requires careful engineering of the selectors.

The larger and older your project grows, the harder it becomes to get that exactly right in a future-proof way. At some point changing something for one item somewhere, can completely mess up something on another part of your site.

Inline styling, or Tailwind-style utility classes, are useful in that situation. Every component gets to be responsible for the way it looks and no longer has to care what anything else does. HTML tags that are used in different contexts will have their context right there, next to the styling. All part of the component.

The few remaining things that you need for consistency between components (colors, sizes, fonts, etc.) can be handled with CSS variables.


Why not scope your styles in the component, using either a css in js approach, like Vue, Svelte, and surface do, or use the modern css @scope property?


That's interesting context, thank you.


You aren't using it wrong, the only thing tailwind does better than 99% of devs is having default values that both look nice and mesh together well.

Utility based CSS has been around as long as classes have, tailwind is just one iteration of that. GitHub use to have a utility css library as well before switching to their new design.


> having default values that both look nice and mesh together well.

So 99% of the value can be achieved with strict linting and autocomplete plugins.


Yes? I don't think anyone has ever argued that tailwindcss has a moat on anything, it has always been championed as a library created by a designer + dev who care about good UI design.

At least that's how I always seen it billed as, even when Adam was live streaming and saying as much in like 2018/2016.


If you're experienced with or like the way CSS works, and you didn't like Tailwind, then you were probably using it correctly.


> and it seemed like setting style="" on all elements, but with extra steps.

And extra benefits.

Generally more concise on the common usecase, but more importantly you can combine and use media queries, which can't be done with inline styles alone.


CSS is a little too low level for most web app design, Tailwind is a bit higher level and more concise than its CSS equivalent. It also has a bunch of sensible defaults for colors, sizes, spacing, and type.


Encapsulation, e.g. utility classes (and Tailwind, by extension) solve for project management or organization level problems, not styling problems directly. The nice defaults are a bonus but the actual value is a common and agreed upon approach to avoiding a write-only stylesheet that grows forever and for not fucking up cascading styles that impact someone else's feature or page you didn't intend to and causing releases to grind to a halt while they sort out what you did. Everyone here who misses that point is basically broadcasting how they are the cause of long term problems in their project or at their organization.


I gave up on the swipe for the same reason, but if you double tap the triple dot menu it hits the 'all tabs' thing.


I couldn't quite go for the 60%, but I have friends with the UHK60 and I really liked it as a keyboard.

I popped for the 80 as soon as the shipping times caught up to real time. It's a fantastic keyboard. I haven't gotten any of the clusters for it yet, but I'm very happy with my purchase.


Ya, mine is an original UHK60 v1 from years and years ago. It still holds up great.

I hope they make a UHK 110 key. I want all the keys.

Right now it's not worth the upgrade to me from the 60 to the 80. but I'd totally upgrade for a 101/110/120 or whatever keys.

Modes and multiple keys to do one thing is fine, but it's not as nice as just having a dedicated key. Which is why I want all the keys.


I cannot express just how much I _dont_ want twitch to just start playing some random fucking stream when I open it.

Whose brain dead idea was this?


Too bad that is impossible to do without a twitter/x account.

Oh well. Nothing of value was lost.


At least 2 or 3 major versions of macOS. Search for “modifier keys” in system preferences.


No. The entire point of these is to funnel the traffic onto and off the highway with out crossing any oncoming traffic, and to reduce the total number of traffic crossings overall.

Here’s a YouTube video that does a much better job of highlighting these benefits. https://youtu.be/A0sM6xVAY-A?si=qrk2ZFFYPA2-6rAS


Roundabouts don't have any traffic crossings, and sometimes don't even need traffic lights either so no one has to stop/give way


Raycast and Alfred have both added AI features recently.


Perfect, thank you (https://www.raycast.com/ this is neat)


macOS has an accessibility feature where you can hold ctrl (or something) and use the scroll wheel to zoom the entire screen in.

Not quite the same, but works really well for not breaking any layouts because it just scales the entire display out of the viewable area.


There is also a great piece of software that allows you to use ctrl+scroll to do the trackpad pinch-style zoom (and some other mouse-related things): https://macmousefix.com/


ctrl+scroll on Windows generally scales the text only. Even the built-in magnifier is extremly clunky and zooms only to 200%, 300% ...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: