Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
claviska
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
claviska
6y ago
Marijn is one of the most talented and honest open source developers in the industry. His values are as solid as his work.
122.
▲
by
claviska
6y ago
This was an incredible piece of writing. Thanks for posting the link!
123.
▲
by
claviska
6y ago
I think this is perfectly acceptable. If the user hasn’t demonstrated a reproducible problem and more information is required, the user has a week to submit said information. If not, the issue is cleaned up automatically. I don’t see why th
124.
▲
by
claviska
6y ago
> To use Shoelace form elements at all, you'll end up writing a bunch of JavaScript. Shoelace author here. This is somewhat true (I wouldn’t call it “a bunch” though), and it will be until form-associated custom elements are standar
125.
▲
by
claviska
6y ago
Wasn’t it UPS that was prototyping a series of drones that docked on top of the truck, using it as a hub to deliver packages within a short range? I could see something like that being a logical next step for this tech.
126.
▲
by
claviska
6y ago
That's at least a tiny bit of good news then. Thanks for clarifying that!
127.
▲
by
claviska
6y ago
I know the Mozilla layoffs aren't news, but 25% is a lot and I haven't seen any sources saying exactly what happened in terms of the reorg. The fact that both of these teams have vanished is a major gut punch to developers.
128.
▲
Mozilla has laid off their dev tools people and the entire MDN team
(twitter.com)
314 points
by
claviska
6y ago
|
178 comments
129.
▲
by
claviska
6y ago
Lion is similar in that it’s intended to be customized from the start. For something more “batteries included,” see https://shoelace.style .
130.
▲
by
claviska
6y ago
I maintain an alternative web component library, and this is the Bootstrap comparison I like to use. [1] The API is easier, there’s less markup, and less room for error. A well-designed component also bakes in accessibility and provides enc
131.
▲
by
claviska
6y ago
Creator of a popular web component library here. Some observations: > one of them is already deprecated, and v0 of another one is also already deprecated. Sometimes you swing and you miss. Instead of moving forward with the initial desig
132.
▲
by
claviska
6y ago
This is a pain point of React + web components, but I’ve heard they’re trying to solve it in the next major version. In the meantime, I built a wrapper that lets you use custom elements as if they were React components. [1] 1 - https:/
133.
▲
by
claviska
6y ago
I'm no expert here, but Stencil is capable of SSR [1]. I believe you'd need to install Shoelace locally and tweak a few configs to get it working, though. 1. https://stenciljs.com/docs/static-site-generation
134.
▲
by
claviska
6y ago
Some of this stuff is bleeding edge and not every possible use case has been addressed. Web components bring a valuable contribution to what browsers are capable of, and everything will catch up in time. For example, there's already ta
135.
▲
by
claviska
6y ago
The shadow DOM encapsulates styles and behaviors in the component. Nothing leaks in, nothing leaks out. The concept can get confusing, especially once we start talking about how styles reflect on slotted content (i.e. elements in the "
136.
▲
by
claviska
6y ago
Tables can get quite complex as features get sprinkled on. I doubt any out-of-the-box solution will nail it for all use cases. I'm not opposed to including one in Shoelace at some point, but I'd want it to have an API that's
137.
▲
by
claviska
6y ago
This is an intended side effect of using a shadow DOM. I tried to outline the advantages in the Customizing section of the docs [1] and I think these three points will answer your question. - Customizations can be made to components with ex
138.
▲
by
claviska
6y ago
You can use Tailwind classes on all your markup as you normally would. In terms of Shoelace components, they're more limited to layout, spacing, flexbox, grid, etc. for arranging and positioning (e.g. don't expect class="btn
139.
▲
by
claviska
6y ago
Good catch. I'll get that fixed!
140.
▲
by
claviska
6y ago
Yes! I love Element. I mentioned it here in the attribution section. https://shoelace.style/?id=attribution
141.
▲
by
claviska
6y ago
Shoelace is more akin to Bootstrap. You can use it for quickly tinkering, prototyping, or as a foundation for your own design system. One thing Shoelace doesn't provide right now is a set of base styles. I've considered offering t
142.
▲
by
claviska
6y ago
Of course, there are underlying utilities that enhance the components. The resulting components are standard web components. From Stencil's website [1]: > Stencil is a compiler that generates Web Components (more specifically, Custo
143.
▲
by
claviska
6y ago
This was addressed here: https://github.com/shoelace-style/shoelace/issues/103 Just tested with Firefox 78 and verified it's working now. You may have an older cache.
144.
▲
by
claviska
6y ago
> I can start reading an article immediatly instead of waiting for content to stop jumping around or watching a spinner while a couple 100 kloc worth of js load an convert a bunch text in json to a bunch of text in html. I absolutely und
145.
▲
by
claviska
6y ago
Fair enough. Thanks for posting this, btw!
146.
▲
by
claviska
6y ago
The difference is in how they're built and consumed. UIkit sprinkles CSS and JS on top of existing HTML elements: <div uk-dropdown></div> Shoelace defines web components, which are custom elements: <sl-dropdown>
147.
▲
by
claviska
6y ago
> I’m not saying that JavaScript shouldn’t be used, but that the absence of JavaScript should be supported in general, even if it isn’t perfect. Aside from an SEO perspective, I don't understand why this is still such a popular pers
148.
▲
by
claviska
6y ago
Seems to be working for most people. Are you using a legacy browser?
149.
▲
by
claviska
6y ago
This is a great idea. I ended up publishing the documentation site _as_ the website and didn't even think to show some examples.
150.
▲
by
claviska
6y ago
Maybe Shoelace can save you some time. Thanks for checking it out!
More ›