Htmx, Raku and Pico CSS
The author simplifies web development using HTMX, Raku, and Pico CSS, emphasizing semantic HTML and dynamic content creation without JavaScript, while working on a project to rebuild HTMX examples.
Read original articleThe blog post discusses the author's approach to simplifying web development by utilizing HTMX, Raku, and Pico CSS. The author aims to reduce cognitive load in web projects by returning to a simpler structure reminiscent of early web design, where HTML is used for layout and CSS for styling. HTMX is highlighted for its ability to create dynamic web content without relying on JavaScript, making it suitable for most web applications, though not for complex platforms like Facebook or Google Maps. The author emphasizes the importance of semantic HTML, which enhances the meaning and structure of web pages. Pico CSS is presented as a favorable CSS framework that aligns with the author's goals, as it avoids cluttering HTML with excessive attributes, unlike Bootstrap and Tailwind. The post also mentions the author's ongoing project to rebuild HTMX examples using Raku and Cro, with a focus on creating a tab component, while acknowledging that Pico CSS supports dark mode. The author invites readers to engage with the content and share their thoughts.
- The author aims to simplify web development using HTMX, Raku, and Pico CSS.
- HTMX allows for dynamic content creation without JavaScript, suitable for most web applications.
- Semantic HTML is emphasized for improving the structure and meaning of web pages.
- Pico CSS is preferred for its clean approach to styling, avoiding excessive HTML attributes.
- The author is working on a project to rebuild HTMX examples with Raku and Cro, focusing on usability.
Related
Show HN: Plain Vanilla – a tutorial website for vanilla web development
The article discusses web development using only HTML, CSS, and JavaScript, emphasizing Web Components and modern CSS. It encourages experienced developers to explore this simpler, standards-based approach for building applications.
From React to Htmx on a real-world SaaS product (2022) [video]
David Guillo shares his experience replacing React with htmx in a SAS product, highlighting htmx's advantages for creating rich user interfaces without JavaScript frameworks, emphasizing accessibility and ease of use.
VanillaJSX.com
The article highlights using vanilla JSX for creating reusable DOM elements, featuring examples like a click counter and todo list, and discusses the "imlib" library for efficient application development.
Pico CSS: Minimal CSS Framework for Semantic HTML
Pico CSS is a minimalist CSS framework for semantic HTML, enabling responsive designs with minimal classes, no dependencies, and customizable options, while optimizing performance and supporting light and dark themes.
Going Buildless
The article explores "buildless" web development, highlighting advancements in HTML, CSS, and JavaScript that simplify workflows. It suggests this approach is ideal for smaller projects, enhancing the developer experience.
- Many users appreciate HTMX for reducing the need for client-side JavaScript and enabling faster feature development.
- There is a sentiment of nostalgia for simpler web development practices, with some commenters expressing frustration over the complexity of modern front-end frameworks.
- Discussions around the semantic use of HTML and the implications of using JavaScript libraries for basic functionalities highlight concerns about best practices.
- Some users are exploring alternatives like Unpoly and expressing curiosity about classless CSS frameworks.
- Raku receives positive mentions, indicating interest in its features and potential in web development.
I am not sure if this is intended as humor, but JavaScript came before CSS.
Well, sort of! I suppose that for certain definitions of eliminating Javascript, this Javascript framework eliminates the need for Javascript completely.
(I'm not quite sure if this is the author's sentiment), but the point shouldn't be to escape JS entirely, but make it into something that can be used in a repeated pattern that works in lockstep with your application, such that you are neither creating custom JS for each page (e.g. React), nor blindly manipulating the DOM (like JQuery).
The division of roles between CSS and HTML is an almost contradictory point - your styling and layout should be coupled if you are to impose any meaningful order in your design. If you are rejecting the "decoupling" of front-end and back-end that React gives you, then why would you expect to be able to do it between HTML and CSS?
I also really liked an idea about class-less CSS frameworks, as I was frustrated with all the `<table class="table">` and so on. Then I've tried it for one project where I had to integrate Leaflet map on a page. And it's just not possible to do with class-less CSS frameworks.
Since then I write `<table class="table">` and have zero problems with that.
…and look, that’s an okay mistake to make — it takes time to learn this stuff — but when you also go out of the way to pine for “the halcyon early days of the web before Netscape dropped the JS-bomb” it makes it difficult to take you seriously. A list of links is, like, the most basic essence of a website; if you aren’t able to make that work without a JavaScript library, what are you even pining for?
I know that HTMX has a much larger userbase, its main dev is well known and beloved, and the landing page doesn't look web 1.0
With that said, unpoly appears to have a similar feature set and one feature that HTMX doesn't: The ability to create modals without loading a new page.
soul = spiritual part of a human)
so except if there's a really fitting html5 tags (like footer, h1 , main ), we will have `<x-card>` `<x-avatar><img ></x-avatar>` (In case we must have an additional ) so that it's easier to convey the semantic (especially when looking in the dom inspector)
for the css we've been using tailwind (and couldn't be happier), but for personnal projects I guess picocss would be a really nice fit with `<x-semantic>` tags
> I am a simple sole [sic]
`href=#` + JS library + config file + setting routes for each tab button doesn't feel simple
I completely completely disagree. This is all you need.
I am never going back.
The endless thrashing on front end borders on psychosis. Something is clearly broken, and that thing is my feeble mind.
Related
Show HN: Plain Vanilla – a tutorial website for vanilla web development
The article discusses web development using only HTML, CSS, and JavaScript, emphasizing Web Components and modern CSS. It encourages experienced developers to explore this simpler, standards-based approach for building applications.
From React to Htmx on a real-world SaaS product (2022) [video]
David Guillo shares his experience replacing React with htmx in a SAS product, highlighting htmx's advantages for creating rich user interfaces without JavaScript frameworks, emphasizing accessibility and ease of use.
VanillaJSX.com
The article highlights using vanilla JSX for creating reusable DOM elements, featuring examples like a click counter and todo list, and discusses the "imlib" library for efficient application development.
Pico CSS: Minimal CSS Framework for Semantic HTML
Pico CSS is a minimalist CSS framework for semantic HTML, enabling responsive designs with minimal classes, no dependencies, and customizable options, while optimizing performance and supporting light and dark themes.
Going Buildless
The article explores "buildless" web development, highlighting advancements in HTML, CSS, and JavaScript that simplify workflows. It suggests this approach is ideal for smaller projects, enhancing the developer experience.