Recent submissions

Comment · 23 days ago
The house called 19 of your 190 scored numbers and only 2 people were more random than me.... Hmmm
Comment · 3 months ago
You can't improve what you can't measure.

Consider this like if it were the first test

Comment · 1 year ago
But you can achieve the same thing (1:1 style:class mappings without hidden structures) using other libraries, like the ones mentioned here; styled components and vanilla-extract. You can even achieve that natively with web components.

So, I truly agree with this blog post, and I even wanted to rant the same things showing that you should not compare tailwind against classic CSS stylesheets from 2010, but against how different solutions looks like using different tools the community seems to have thrown away or forgot.

And I know is not relevant to your comment, but I will add that "but you will have to maintain more files instead of just a single HTML file" is not a valid argument for me. If that were something good, then just put everything into a single giant server.<your_language> file + separated lib dependencies.

We want maintainable easy to follow and understand files. Having a clean html with no cluttering + intuitive CSS styles being applied where we expect them and looking exactly as we expect them while reading the html, is the big win for me, and Tailwind definitely does a step back on this, especially when other tools can achieve that. (Lastly, we have set multiple projects with different tools, and the amount of "wtf"s we've seen with tailwind is way higher than just styled components to give one example)

I agree that the only good thing Tailwind achieves, is setting a default convention on having a single config file where you can set everything that you will need on every design across all your html files

Comment · 1 year ago
I think I don't fit in either of your groups.

I’m not against Tailwind, but I didn't used it yet because I struggle to see why it's a better approach compared to other options like Web Components or React Styled Components.

The biggest issue I have with Tailwind is how it clutters the HTML with a ton of utility classes making the HTML harder to read and maintain. Of course I see Tailwind being better than using large global CSS files with the classic CSS approach of naming html tags. But we do have ways where the CSS is scoped to a component without polluting the global namespace. Like Web Components and Styled Components. Both keep styles tied directly to the component (or more general, a specific group of html tags), making it easy to see which styles apply where.

And yes, with them there’s no need for global class names, without having to worry about unwanted side effects or clashes. If I remove a component, I also remove its associated styles without worrying about unused CSS being left behind since both are tied together. Plus, there’s no risk of one component's styles unintentionally affecting another (thanks to shadow DOMs).

I really value keeping HTML very short and readable by not mixing presentational styles directly in the markup. Tailwind’s approach, where the styling is all in the class attributes, makes the HTML feel cluttered, especially when you have long class lists on a single line, and GOD forbid you have actual class names to use there. It’s harder to understand what styles are applied at a glance since you cant even have it well indented, and it clearly reminds many reasons why we moved away from the inline style attribute in HTML in the first place. (Yes, we didn't left it for its limitations like pseudo classes and @media queries, they didn't even exist, we didn't add those new features because no one wanted to get back to those inline styling)

So, while I don’t hate Tailwind, I just don’t see the clear advantages over Web Components or Styled Components in terms of readability, maintainability, and separation of concerns, while I do have important unanswered important concerns about using it...

Yes, I've read the docs but never tried it out, I don't hate it, but I can't understand why I would choose it over other options. The fact of having a million classes in the middle of plain HTML makes them both unreadable for me.

And No, I don't like huge CSS files either, or the classic approach of using them. But it is hard for me to see why tailwind is a better approach than working with Web Components, or React with Styled components.

These two approaches allows me to not have to read presentational things in the middle of my html, and allow my html to be more clear and readable. I don't have to use CSS class names, it's easy to identify which CSS applies where, so, if you remove the component, you remove the CSS too, you don't end serving unused CSS rules. Each can have CSS not leaking to the global scope, and there is no risk on changing styles of another element...

So, there is no hate for me, but it is very hard for me to see the benefits of tailwind over these two approaches, and I really dislike the idea of having to read html elements with huge styling rules cluttering my html files, and worse, having all of them in a single line makin it hard to understand all the applied styling.

We left using style tag from HTML mostly for that reason, and not because of its current limitations (like not being able to use pseudo classes, media, etc)

Comment · 3 years ago
Issues like this are happening almost every 2 weeks. What has been happening to GitHub lately?
Comment · 6 years ago
HARD force yourself to close your laptop. Seriously. Then go for a walk just around your block, or go to the gym. Some activity that forces yourself to move
Comment · 6 years ago
I will wide this question a little bit based on my own experience...

1. Some people report that they can have multiple conversations at the same time in their minds. I find that really hard to do. For example, if I simulate a conversation between two people in my mind, I can't easily make one interrupt the other (and make both to talk at the same time). Is this an easy task for you? (However, I can think on a song and put that as a background music while I'm talking without losing any thread)

2. About the comment in this blog of "I saw in TV and would wish that to be a thing", that kept me thinking; I'm not good at drawing, can you "draw" in your mind? (In my case, if I start with a face, I make the hair, then their eyes, then the nose, but I started to forgot how the hair was drawn. Can't keep my draw in my mind...)

3. Meanwhile, I do have experience coding, and I can make some pretty persistent "sequence & activity diagrams" in my mind. I've found myself using that kind of "diagrams" in my mind to drive the thinking of other people when I try to explain myself about an idea. Now I'm thinking that is not the best way to do it... But, Can you do this also pretty easily? It is possible to sense if the other person is able to do something in his mind that you can not reproduce?

4. So, my experience is coding, what about your own experiences? What can you do in your mind related to that activity? For example, do musicians here, able to make music in their minds while keeping/updating its sheet music? What about other roles?

Comment · 7 years ago
The funny thing for me is that I met for first time this scalators on last month
Comment · 7 years ago
Basically, before finishing school, I've decided that would be better to make that choice if I had real experience first. So, I've started working on both. 8 months later I figured that I loved working as a programmer with engineers and that was my decision. As a plus, one year later I enrolled myself in university and was easier for me than most of my mates.
Comment · 7 years ago
Now start thinking on people living on rural areas outside first world countries... Lot of wasted talents...
Comment · 8 years ago
Nice link!. I should add that exist a correlation between objects and lambda calculus for functional programming. So, they are different perspectives of the same idea. And you have to take care of both perspectives.
Comment · 8 years ago
> How can a self-learner without access to a university or professor check their work?

Their "work" means: Find a solution, AND then check it. So, not checking it by yourself is being lazy too.

Also, if you are learning; software like wolframalpha can help you too to check your solution. [Thanks, throwawaymath for recall this basic answer].

> I wouldn't want a beginner programmer writing "production ready" code without code review, so why should we expect a beginner math student to write error free proofs?

"Code Reviews" are for checking "how did the programmer solved that problem". On the other side; you know if some code is giving good or bad outputs by checking it with "Tests" (In the worst scenario; manually). So, you have to learn to "test" your solution. The creativity is in how you managed to get the solution and teachers should give insights about your way to solve it and present you easier or better ways to achieve the same. (Just change "teachers" for "senior devs" and now, that is code review).

> These text seem to be designed solely for a classroom where students will get assistance and feedback from TAs and professors.

Probably that's true. You have to consider those types of books as "slides"; just like a guide for the teacher and memory refresh for students.

Comment · 8 years ago
This is old (2013). However, i think it's really ironic to talk trash about OOP while thinking in Java and pointing Alan Kay in the same post. Alan Kay being the father of OOP always made clear Java wasn't the OOPL he had in mind.
Comment · 8 years ago
The problem wasn't lisp... The problem was he didn't want to leave his comfort zone.

You can love lisp, Smalltalk, and all those beauty languages, but you should never stick to a single language. NEVER. Go to another, look it's strenghts, and if it's a bit weak on some sides, try to use the nice techniques you learned back to make it better.

To solve any problem, you can use different languages. Of course would be nice to use the nicest languages, but in some contexts they're not the right tool, and in others, you should have to consider outside factors like, how many people will maintain that software. All of them knows how to use the powers of those nice languages? Also, do you think would be easier to rotate people on that project using those languages instead of another ones?

Everyone can learn to use some tool, but experience using others may help you to discover better ways to use new tools.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton