Better HN
topnewbestaskshowjobs
Log inSign up

JLehtinen

37 karma · joined Nov 1, 2012 (14y ago) · 45 submissions

Submissions

comment 2y ago · link · parent

I find it a little bit backwards that semantic CSS class names should be invented by the developers. If there's a working and well-organised design system in place, then there should be little need to come up with arbitrary names for things. At the very least the designer(s) should be consulted, because they have experience and insight into which elements have common styling with each other and how they are placed in context. In general, I think Tailwind's popularity has a lot to do with developers typically not being designers.

comment 2y ago · link · parent

Several reasons to use "primary" class for buttons – `button` is just one of the elements that gets used with button styling, but there might also be `a`, `div` or `input` tags that look like buttons, depending on the use (or source).

comment 2y ago · link · parent

They are (encapsulated in reusable components). But when the project grows big, Tailwind's shortcomings become apparent, the biggest ones being the loss of context (cascading) – and of course the lack of separation of concerns, when the concerned parties are also separate (developers and designers).

When building a design system, there are a bunch of default styles, and then there are variations based on context. To put it in a real world example, imagine a newspaper heading style that varies depending on where the heading appears. Front page headings are bigger, sports pages might use a different style, and so on. Same with buttons, cards, tabs, what have you.

This isn't impossible to build with Tailwind by adding, say, react logic, but it becomes a mess quickly. If you have a well-built design system, class naming shouldn't be that hard to figure out and communicate to developers. But deciding on a coding logic to account for these context changes and sticking to it seems not as easy, especially when developers come and go.

comment 2y ago · link · parent

I’ve worked on some large projects including refactors with Tailwind and my view is opposite. I can see how Tailwind would work on small projects, or ones where the designer never touches the styling inside the code. But on the other hand, avoiding naming because it’s hard isn’t how I approach organising design, and it doesn’t sound like a good approach to coding either. But I can see how there may be a need to bypass it in projects where there is no designer, or a design system.

comment 2y ago · link · parent

Being a designer who does his work inside code, Tailwind is a nightmare. I hand off my design files, the developers do their thing. But then, maybe I want to tweak things after a review, or the design system changes, so I have to do a sweeping change to those buttons. Now I need to touch dozens of jsx/tsx files around the platform and make humongous pull requests, and the result is often dozens of merge conflicts. If I only touched CSS/SASS files, there might not even always be a need to have the files reviewed.

Another problem is readability. When things aren’t getting named, the files are often unreadable at first glance. And that’s what they are to external services like Pendo, which rely on classes to tie their thing into the UI. Which are now susceptible to change on a very regular basis, because when you change Tailwind styles “that only changes that particular instance”, or so the story goes.

comment 6y ago · link · parent

Agreed 100%. However, the previous all-male panel of government party leaders was also thankfully noted in the media.

comment 7y ago · link · parent

I've seen a sneak peek before and learned that things evolve pretty quickly at this point :) Cannot wait to see where all this goes, congratz on the release!

comment 11y ago · link · parent

We find the Free version extremely good value considering it offers unlimited users/traffic/data.

comment 11y ago · link · parent

We're Finns afterall. https://www.youtube.com/watch?v=DvidoBBJSRA

comment 11y ago · link · parent

Well Tero's fiercest opinions typically take the form of code :)

Riot 2.0 was completed and submitted yesterday after lunch (Finland time), blog post was completed today at the same hour. We genuinely felt they were worth telling the world about and people seem to agree.

comment 12y ago · link · parent

This blog entry offers more detail on the Redis setup: https://muut.com/blog/technology/redis-as-primary-datastore-...

comment 12y ago · link · parent

Yes, embedding is done by inserting a couple of lines of html, and styling to make Muut look like the rest of your site is easy with the included CSS designer tool. You can also write CSS by hand if you wish.

13.

Riot.js v1.0 and API documentation released(muut.com ↗)

3 points · by JLehtinen · 12y ago · discuss

14.

Muut(muut.com ↗)

2 points · by JLehtinen · 12y ago · discuss

15.

Flowplayer Drive — Video hosting and publishing(flowplayer.org ↗)

2 points · by JLehtinen · 12y ago · discuss

comment 12y ago · link · parent

Check https://moot.it/upgrade — we currently offer 2 paid upgrades, Branding and SSO. — Janne/Moot

comment 13y ago · link · parent

Thanks! They were drawn in Adobe Illustrator.

comment 13y ago · link · parent

> There's almost literally nothing here

True. There's 0.85kb + license.

19.

Significant fails in Apple iPhone touch accuracy(optofidelity.com ↗)

1 points · by JLehtinen · 13y ago · discuss

20.

Moot forums partner with Crisp to fight against spam(moot.it ↗)

3 points · by JLehtinen · 13y ago · discuss

comment 13y ago · link · parent

Reasons for why Moot is a hosted solution: https://moot.it/docs/technology.html#distributed-service

comment 13y ago · link · parent

Yeah, yeah, I know: I'm just a graphic designer without a deep knowledge of the technology... But what happens in the diagram is still pretty close to what you describe, to be fair: messages duped and delivered simultaneously. Absolute accuracy would have made for a pretty complex illustration. Point taken anyway, I'll try harder next time!

Btw, did you notice it has blue heads? I thought those were cool.

23.

Moot v1.5: Single Sign-On, Branding(moot.it ↗)

3 points · by JLehtinen · 13y ago · discuss

24.

Moot v1.4 — Focus on text(moot.it ↗)

2 points · by JLehtinen · 13y ago · discuss

25.

Moot Forums and Commenting – v1.3 (moot.it ↗)

6 points · by JLehtinen · 13y ago · discuss

comment 13y ago · link · parent

I'm also not a big fan of his use of hyphens '-' for dashes '—', since we're so passionate about typography.
12