soulofmischief 6 days ago

I've been using web components liberally in my side projects, but for more complex SPAs I still reach for mithril as a frontend lib because it just leads to simpler, more idiomatic code which can be linted better than huge html strings.

Web Components definitely have their thorns, as well as the shadow DOM. They're still a lot more capable than people give them credit for. Nested CSS has also been great, but I still reach for SCSS because nested CSS is still missing a few syntactical goodies. However, LLMs really bridge the gap and allow me to quickly write decent small web components without worrying too much about the internals.

1
exiguus 6 days ago

In my professional role, I primarily work with Next.js, React, Vue, Golang, Rust, and various AWS technologies. These tools help address common software engineering challenges such as scalability, maintainability, and compatibility. Consequently, I prefer to adhere to native standards in my personal and side projects.

For web components, I utilize Lit for its syntactic sugar and because I appreciate the decorator approach. Since browser compatibility is typically not an issue in these projects, I leverage native CSS 3 features and avoid using SCSS as a polyfill for nesting, variables, and maintaining DRY principles.

I haven't heard of Mithril before. Thanks for sharing!