Live data from Hacker News

Show HN: I made a HTMX Playground 100% in the browser

lassebomh.github.io

111–120 of 126 posts

Re: Show HN: I made a HTMX Playground 100% in the browser

#111

I love the concept behind htmx & started reading the book today. But every time I think about using it, I remember that I'll eventually have to support native mobile apps as well and I'll be completely re-writing not only my frontend but much of my backend to do it. I know about hyperview.org but a react-native app won't really cut it for the use cases I'm interested in.

https://htmx.org/essays/splitting-your-apis/

keep your domain logic out of your controllers

Re: Show HN: I made a HTMX Playground 100% in the browser

#112

hey there, I'm the creator of htmx, and I really appreciate you making this! very cool!

Thankyou for the awesome library! I have a question. Is there a way to use HTMX with minimal server side changes. Specifically if I have an existing page that you fill in a form and submit and response is of course the entire page. I think it would be cool to tell htmx that the whole page is being returned BUT I only want to update #my-form and that way you don’t need any “if htmx request” kinda stuff on the server.…

hx-target="closest " hx-swap="outerHTML swap:1s" hx-push-url="false"

That'll return whatever partial thing you want to return and replace (with 1sec effect).

Re: Show HN: I made a HTMX Playground 100% in the browser

#114

[flagged]

Try Using techspypro, they know exactly what they are doing. Always make research before hiring a hacker and They are all scam. You can use “techspypro @ gmail com ” and you can be able to have some questions for them stay safe.

Re: Show HN: I made a HTMX Playground 100% in the browser

#115
post #94

Earlier quoted context omitted.

If you have time, I have a question I haven't been able to answer reading the docs or skimming the linked book. My company's front end apps communicate exclusively with a GraphQL orchestration layer. I tried a while back to learn HTMX by building a demo remake of one of our apps, and I actually couldn't figure out how to make those requests. Am I missing something, or is this just a bad use case for HTMX?

sounds like a bad use case for htmx, if your server isn't returning hypermedia you are making your life pretty difficult doable, but not fun

appreciate the response, that's what I was thinking but I couldn't quite be sure if I was missing something.

Re: Show HN: I made a HTMX Playground 100% in the browser

#116

I love the concept behind htmx & started reading the book today. But every time I think about using it, I remember that I'll eventually have to support native mobile apps as well and I'll be completely re-writing not only my frontend but much of my backend to do it. I know about hyperview.org but a react-native app won't really cut it for the use cases I'm interested in.

https://htmx.org/essays/splitting-your-apis/ keep your domain logic out of your controllers

Thanks for the link. I read both Carson's (your?) article and Max's. In general I see the point, but I think what's missing is a htmx-specific Android/iOS app template. Something that wraps a WebView but perhaps preprocess and reacts to mobile specific html tags or special hx-mobile-xxx attribues to existing tags that know how to do special mobile things. I'll have to think more about this.

Re: Show HN: I made a HTMX Playground 100% in the browser

#118
You could use a Service Worker to do this and then have multiple pages in a different tab to be able to navigate around. It would be too difficult to do that. Then you could just use native JavaScript or whatever the user wants for the pages to be generated.

This is cool though. Good job!

Re: Show HN: I made a HTMX Playground 100% in the browser

#119

I was seriously thinking about using HTMX myself, but I'm kinda scared it's developer pool seems too small to hire devs from. I'm used to proprietary frameworks, in my case I worked with intershop which uses isml. (this is comparible to something like thymeleaf). In recent years we tried to move away from this approach and go to the angular front end Stack because it's easier to hire a dedicated frontend developer th…

It's more about their back end skills as you would be hiring a back end dev who can do a little front end. No need to worry about having HTMX on their resume, just something like and JavaScript. And most developers that are web developers qualify for that.

Re: Show HN: I made a HTMX Playground 100% in the browser

#120
post #62

I was seriously thinking about using HTMX myself, but I'm kinda scared it's developer pool seems too small to hire devs from. I'm used to proprietary frameworks, in my case I worked with intershop which uses isml. (this is comparible to something like thymeleaf). In recent years we tried to move away from this approach and go to the angular front end Stack because it's easier to hire a dedicated frontend developer th…

How to counter it. HTMX takes no more than half a day to pick up, probably quicker than that. Keep in mind HTMX does not solve all scenarios, there are times when a SPA using a JS framework is required.

That's not entirely correct. It takes a day to pick up and a week to master :-). Well, it does take a little longer to learn all the nuances. Also, I've used this pattern in my personal apps (and for one app at work) and sometimes I felt that I needed to use a front end lib for a page, but after thinking about it I learned that I still didn't need a front end lib as hypermedia covered my needs.

I do agree there are times that a traditional front end lib might be needed but it is much rarer than we think.

Post reply on HN