Why did they name those props `justify-content` and `align-items` instead of `main-axis-arrangement` and `cross-axis-alignment` which makes more sense?
There is probably some explanation, but in general, I find many CSS properties confusing and unintuitive: `color`, `text-align`, `position: absolute` vs `position: fixed` (absolute is still technically relative!), etc.
Everything is laid out on the page in a flow, according to DOM order. Think how a typewriter produces text on a page: top-down, left-to-right. This is the flow.
Absolute takes the element out of the flow while relative maintains it in the flow.
What isn't clear (even to many experts) is that certain properties change the layout model entirely and that text has its own "pushing" box that contributes to sizing.
Either Google has shifted _so much_ focus to getting an LLM to tell you about very real Encanto 2 spoilers that its search capabilities have atrophied, or my surprise at there not already being a Tailwind plugin for this is justified:
Is it, though? How much easier to refactor it in the future can it be, other than being able to search-replace Tailwind classes when the need arises to?
Well, what is it then that is so complex about Tailwind? I’ve been hearing that for so long, but nobody was ever able to explain succinctly what Tailwind made so awfully complicated.
I strongly disagree; any large project using CSS tended to have arcane names for everything and turned into a Tailwind of its own, but worse.
I also like Tailwind because it’s so self-documenting. Even if Tailwind’s development were to stop, tomorrow, and all of the style sheets were lost globally, I would know what everything is meant to be.
Bull. I have no clue at this glance what .input specifies, or what I can override without a conflict. Heck, .input might not even exist, resulting in only stock browser styles. The bottom one, I can fully picture while it isn’t much longer, the above is opaque and gives me no information at all about the look.
Secondly though, and why this opinion is frankly stupid, is that I can just put this in my CSS code before it’s built through Vite:
It says ”input” right there in the classname. @apply might be the only sane way to use Tailwind, but it seems like a post-hoc mixin construct, and definitely has the same level of indirection of styles that you claim is an issue with classnames.
Strange you would be worried about accidental overrides with class selectors but then go ahead to target styles with tag selectors. Is that not objectively worse?
Btw, targeting input[type=”text”] means now you cannot apply those styles to a regular <span> or <div> using a class, which is sometimes useful, especially in very large projects.
I am still not at all convinced Tailwind is even slightly useful. It feels like shoehorning HTML4 <color>, <font> etc. into HTML5 classes.
All in all, your arguments come off as ad hoc rationalizations for a personal preference, not as substantial examples of Tailwind’s superiority over more traditional CSS approaches.
Solve a simple algorithm/problem every week in your fav programming language and commit. This is for people who stopped day-to-day coding professionally, but still write code for personal pleasure.
Excellent research and great output, this is something that I wanted for a long time, a movable timeline that shows the civilization at that time. Thanks for building this!
One improvement that I suggest is for the timeline. Currently if I have to go to the past/future, I have to move the timeline knob to the extreme left/right, and the timeline will jump. Instead of that if I can drag the timeline to the desired era and click on the timeline to place the knob (or something like that) it will be easy to use.
Not just terminal, but be it Neon signs or LED name boards, blue is the toughest on eyes during night time. It's always blurry from a distance, and can't even focus on it. I have seen big businesses putting up huge name boards in blue lights, and I think how they can spend a lot of money without even realizing that people can't read it.
Experience and domain knowledge also matters when designing. For some parts, futuristic thinking is not at all needed while other parts may need it. If you are building a ticketing software, you should expect to add different kind of printers (dot matrix, thermal, inkjet, etc.) so you add an abstraction. The ticket text format may change, so some abstraction will help. The API service hander might not change at all, so an abstraction is unnecessary in that case.
It mostly works — except I've noticed that html-midi-player will continue to play the last note if there's any kind of delay set, which is jarring. html-midi-player doesn't seem to expose a JavaScript API to make any of it simple...
RSS reader software won't be successful. RSS reader should be built into the browser and every time you open the browser, the RSS feed should be the landing page. Every time you open a new tab, it should show a minimal feed that can be fully expanded.
reply