272 karma · joined Sep 12, 2019 (7y ago) · 101 submissions
comment 4w ago · link · parent
comment 1mo ago · link · parent
Style encapsulation? You get that, but not fully, and good luck finding out which parts you don’t get.
State management? Back to query selectors, which btw work worse and need workarounds when reaching into the shadows. We went with DOM-as-state. I don’t want to talk about it.
Slots? After coming from a modern framework, slots are a clear step backwards. In React you can pass a component as a prop but in the shadow DOM world, you have to signify it with HTML. Multiply it by several slots and you get a lot of verbosity just to match the behavior.
Yet to mention using the platform directly means losing so much work around static verifiability. No one has to talk about this anymore, but sticking religiously to the platform by strictly using addEventListener means you can’t require event handlers to exist for any of your elements. People forget this, but the browser’s default way of letting you do anything is an enormous footgun for reliability.
Learn from our frontend org’s mistakes. Run, don’t walk, away from it.
comment 3mo ago · link · parent
Also, that ASCII art(or pixel art?) as the header looks serene. Any tips/rabbit holes on achieving that art style?
comment 3mo ago · link · parent
comment 3mo ago · link · parent
The ideal was to be close to the browser, but it’s mostly blown up in our face. The approach in this post would’ve been helpful, and it’s almost worth the cross-framework compatibility, but I just wish the entire web components standard didn’t come with an unbelievable amount of these and other problems
comment 4mo ago · link · parent
The flip side is that AI is making the underlying code more like a..compilation target? At least in the sense that, yes, as this site mentions, Scheme is ugly to read and would be hell to write the old way, but with the new way..maybe we can try because it would give us what native JavaScript and the latest browser standards never could: reliability
comment 8mo ago · link · parent
Maybe it's because I'm in UI dev, but intentions aren't enough at all
comment 1y ago · link · parent
comment 1y ago · link · parent
Maybe long form content solved a need back in the day when things were printed on paper and figured out well in advance, crossing their fingers on the relevance, and with where we are now we can suss it out without all the reading-as-middleman-to-knowledge
comment 1y ago · link · parent
comment 1y ago · link · parent
I wonder what this guy’s parents were seeing, what they were going through. From what I’ve seen from parents going through it, it can be really super challenging to handle a hyperactive child while still being, you know, an imperfect person yourself
comment 2y ago · link · parent
When I heard CrowdStrike was here, it just kinda made sense
27.
Ask HN: Intellectual property rights if I open source a code tool?
4 points · by compacct27 · 2y ago · 4 comments