Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
emmacharp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
emmacharp
3y ago
Well, I'm building websites and apps. And, as I'm sure you know, milliseconds are important in our craft. You can easily shave or add hundreds of milliseconds with HTML or CSS. And to be honest, I find your general line of inquiry
62.
▲
by
emmacharp
3y ago
mt-100 vs. margin-top: var(--100); And the IDE will help you autocomplete it all. The same is true for all the other properties you enumerated. If it's a Tailwind design token, it can be a pure CSS design token. No "whack-a-mole&q
63.
▲
by
emmacharp
3y ago
I understand this perfectly and is maybe the argument I have the most sympathy for. And, because you are absolutely right, I'm working right now on something like what you propose. The only way to convince people that CSS is a better (
64.
▲
by
emmacharp
3y ago
As I said below, I don't understand how the number of team members can impede our capacity to activate source maps. Again, I may be wrong so go ahead and tell me if that's the case.
65.
▲
by
emmacharp
3y ago
Yes, I have. And I don't see how it can impact the feasibility and easiness of activating source maps. I may be wrong, though. Don't hesitate to correct me if that's the case.
66.
▲
by
emmacharp
3y ago
Boilerplate? What do you mean? Any IDE can autocomplete 90% of any media query. And, on a sidenote, I was only talking about using Tailwind's default aesthetics in pure CSS, here. That's what the 20 minutes refers to. And I think
67.
▲
by
emmacharp
3y ago
How is that different than writing "bg-color-blue-500" in every component that needs it? As for the class, it's the name of the component, the same name you give to the component file. Does it really add that much work? Corre
68.
▲
by
emmacharp
3y ago
I'm not sure what you mean about "Stylelint having a problem". There's a default config, with only base rules, without the more opinionated ones. Then you configure/extend it as you would with almost any other tool.
69.
▲
by
emmacharp
3y ago
But can you split the Tailwind styles in multiple files so that only what is now displayed in the browser is loaded? That's the part I'm not sure of.
70.
▲
by
emmacharp
3y ago
I'm not sure you understood correctly what I meant. Or maybe is it me. Hehe. To reiterate: you can link and load CSS for a component just when this component is used instead of loading everything at first. So the first load of the page
71.
▲
by
emmacharp
3y ago
I'm talking about the design aesthetics included in Tailwind as default. Keep the values and the names if you want. Like this, for example: "blue-500" becomes --blue-500. That's it. This is a far cry from using Tailwind
72.
▲
by
emmacharp
3y ago
This is easy and should not be a problem. It also is the kind of help/solution that should be implemented first, before any librairies or frameworks are added.
73.
▲
by
emmacharp
3y ago
But you really don't have to do that. Naming components only (as you already are) really is sufficient. And yes, specificity and flexibility can easily be managed/included with CSS, particularly now, with all the new widely suppor
74.
▲
by
emmacharp
3y ago
If you give me a couple of examples, I can give you Stylelint rules to prevent them. At least I think so... eheh. And now that I think about it, that would be a great exercise in fact! Yes, I'd really appreciate it if you have some in
75.
▲
by
emmacharp
3y ago
If the Tailind defaults are used in a design language file, wouldn't it be simpler? If it's only a problem of "aesthetics", 20 minutes is enough to use Tailwind's defaults in pure CSS. No need for calling a designer
76.
▲
by
emmacharp
3y ago
Well, that is not using Stylelint I'd say. Within half a day of configuring, you can prevent almost all of the problems denounced in this thread. Ultimately, it really is "a couple hours of thinking/configuring a linter vs. m
77.
▲
by
emmacharp
3y ago
Food for thought: https://csswizardry.com/2018/11/css-and-network-performance/ Progressive rendering of CSS is a great boost in performance. Tailwind can't benefit from this technique I think and as such
78.
▲
by
emmacharp
3y ago
Well, this is bad CSS indeed. But it does not have to be that way. A little linting with Stylelint can make sure this does not happen. As an added bonus there are less dependencies and complexity.
79.
▲
by
emmacharp
3y ago
(Almost certainly) worse? Haha. Why would it be? If you really want to, you can even use Tailwind's naming for you language file. The thing is, you add complexity to do a job that could be done in the same way without adding complexity
80.
▲
by
emmacharp
3y ago
Why not use the devtools "to see how the button both looks and works"?
81.
▲
by
emmacharp
3y ago
You really don't have to do that. It is a pseudo-problem. Specificity and flexibility can also be managed easily in CSS only. Without naming everything. Linting can be used to enforce real good practices. Without any overhead costs.
82.
▲
by
emmacharp
3y ago
But these are self-inflicted wounds. Having standards and validation for CSS is easy. No need for all of this. No need for SASS either. Install Stylelint and there you are.
83.
▲
by
emmacharp
3y ago
You absolutely don't have to name everything in CSS. Naming components is sufficient. And you already need to do that. Using good HTML markup provides you with 80% of the styling hooks you need in a component. Specificity management an
84.
▲
by
emmacharp
3y ago
But you don't need Tailwind for that. A "designsystem.css" file with custom properties would do the trick. Without any added third party tech.
85.
▲
by
emmacharp
3y ago
I never got how is "context switching" such a problem. I mean, can't you have like, two files opened side-by-side in different IDE panels? Is it really that hard to "look jump" from one another? This justifies the a
86.
▲
by
emmacharp
3y ago
Every time I stumble upon a thread like this one, multiple posters react with "but everybody will stop working!". I always find this reaction to be curious. Why are we working now if, only by not being afraid of starvation and hom
87.
▲
by
emmacharp
3y ago
How is it different than any other political initiative? There several ways to objectively/scientifically establish an amount that matches the poverty threshold. That doesn't strike me as inevitable.
88.
▲
by
emmacharp
3y ago
Your comment infers that the great majority of citizens will just stop working altogether. But that's a wrong assumption. Multiple studies (and even logic) shows that the average person does not want to keep idle. You want to contribut
89.
▲
by
emmacharp
4y ago
Well, don't you already name component file after it? Maybe I still misunderstand...
90.
▲
by
emmacharp
4y ago
Easier, like in less characters? Because I wouldn't say using CSS media queries is hard.
More ›