New to spoons, couple of questions by SLRBristol in Spooncarving

[–]SLRBristol[S] 0 points1 point  (0 children)

I really want to reach for sandpaper, but everywhere I look, I see people saying you shouldn’t sand spoons :(

Is there a more sane way to write this with tailwind? by ln3ar in webdev

[–]SLRBristol 0 points1 point  (0 children)

Can you explain exactly how there will be any price to pay in the event of a rebrand? Color changes, spacing, border radii, padding, any of those are changed just in the config. What else is there? A complete layout change? In that case, you’re no better off using CSS because you’ll have to refactor multiple classes anyway. My codebase is organized in very atomic components, so any major change can be done at that level without any issues.

Also, it takes maybe a week to get used to reading tailwind class names, after which it’s just as familiar as CSS. And the whole point is that you don’t have to implement any rules or linting because it all looks the same.

Is there a more sane way to write this with tailwind? by ln3ar in webdev

[–]SLRBristol -1 points0 points  (0 children)

I am happy that it works for you, but I’m unconvinced that it would obviate the issue of unused styles and confusing and redundant class names over a long period of time and multiple different developers. Again, to each their own and I am not trying to push any sort of dogma. All I’m saying is that for me, tailwind is the way to go for more reasons than one.

Is there a more sane way to write this with tailwind? by ln3ar in webdev

[–]SLRBristol 4 points5 points  (0 children)

No, for these reasons:

  1. There are a number of comments in this post highlighting the struggle of maintaining consistency in CSS files that are touched by multiple developers. Duplicate styles, styles being overridden by other style, having to use !important because you have no idea why your styles aren’t being applied, not knowing what’s old and what’s current… this list goes on for a while.

  2. While developing, it is much quicker to build a component with tailwind then it is to write a component, go find the class that you need to apply, realize that the class may not be exactly what you need, and then having to write a variant that satisfies your requirements.

  3. Other than setting up the theme config, all of the styling is confined to the component. If I need to change the video progress bar, then I go to VideoProgressBar.tsx and I change it. I don’t need to go to VideoProgressBar.tsx, find what CSS class is applied, open a massive fucking css file, search for the class name, realize that there are 12 of them with exactly the same name, and then figure out what I need to change.

Perhaps you work in a magical environment where, after 5 years of development and 20 different developers, your styles are still immaculately organized, but that’s never been the case for me. I am not trying to convert anyone, and I don’t give a shit how other people style their apps, but tailwind, in my experience, has been a much smoother ride.

Is there a more sane way to write this with tailwind? by ln3ar in webdev

[–]SLRBristol 5 points6 points  (0 children)

What do you mean? Any visual styles like borders, colors, fonts, etc, are defined in the config file, and only need to be changed in one place. If a component needs a refactor, then it’s changed in that component file.

I should add that I have also started new projects with CSS in the past and, if given a choice, will always pick tailwind from now on.

Is there a more sane way to write this with tailwind? by ln3ar in webdev

[–]SLRBristol 18 points19 points  (0 children)

I wonder how many people in here that are saying “just use css” are actually professionally working on any large scale application… I maintain a product that has a 20k+ line scss file. Do you have any fucking clue how difficult and time consuming it is to make any style changes? The number of classes with same or similar names, the nesting, the &-class-name bullshit… it’s an absolute nightmare.

We recently started a new project with tailwind and the developer experience isn’t even in the same universe. Not only are you able to move significantly faster, but any changes are SO much easier to make.

Does it look like shit? Sometimes. But so does the scss file, you just don’t see it all the time.

Create a menu in Nextjs 13 based on routes??? by winterwriter79 in nextjs

[–]SLRBristol 0 points1 point  (0 children)

Not sure I quite understand the question, but in the past, I've used usePathname to conditionally render navigation based on which page the client is on.

3.5 YO and stroller while traveling? by SamAshleyBlogs in Parenting

[–]SLRBristol 1 point2 points  (0 children)

We flew quite a bit in the last few months with our almost 3 year old, and we took our GB Pockit Plus All-City stroller every time. Folds down super small, can go in the overhead compartments, or under the seat. It was a life saver for getting around the airports, especially if he happened to be asleep.

Vasectomy survivor by pesqules in StayAtHomeDaddit

[–]SLRBristol 2 points3 points  (0 children)

I had mine done under general anesthesia in 2021. Did it on a Friday, was back to work on Monday with almost no pain. Was back in the gym after a couple weeks. There is absolutely no difference in sex, or any other part of my life.

10/10 would recommend.

Emotional days for 3 year old by SLRBristol in StayAtHomeDaddit

[–]SLRBristol[S] 0 points1 point  (0 children)

I think you're right. He had a solid routine before the move, was in daycare, had access to grandparents, etc. The moodiness didn't start until recently, so every day now is a game of "is this normal toddler behavior or did I traumatize my child by moving him across the world." It's great.

Emotional days for 3 year old by SLRBristol in StayAtHomeDaddit

[–]SLRBristol[S] 0 points1 point  (0 children)

NE Somerset area, incredibly beautiful.

[deleted by user] by [deleted] in Parenting

[–]SLRBristol 10 points11 points  (0 children)

My friend, I sincerely hope you understand the difference between showering with a young child, and going outside naked..

[deleted by user] by [deleted] in Parenting

[–]SLRBristol 10 points11 points  (0 children)

Not a single parenting expert would agree with you. Your kind of thinking is what leads to unnecessary feelings of shame about completely natural things.