https://htmx.org logo
Join Discord
Powered by
# 🔥-django-htmx
  • m

    mysterious-toddler-20573

    02/11/2022, 7:58 PM
    my biased take: if you are doing this in a professional situation where a lot of other people will be working on/looking at the code, alpine is the safer bet. If this is a solo project or you have a lot of control over it, and won't get in trouble for going a bit outside the normal lines, and if a quick read through the hyperscript documentation makes you smile, then hyperscript is worth at least a shot
  • a

    adamant-exabyte-92636

    02/11/2022, 7:59 PM
    Oh my word I’ve never seen the creator of a library/language downplay his own stuff so much as this guy 👆😂
  • a

    adamant-exabyte-92636

    02/11/2022, 8:01 PM
    He’s right of course, hyperscript is NOT mainstream (yet. well maybe never, cause it’s certainly different. Time will tell). If you’re building apps where maintainability is important (and it isn’t always, because some things just have a short shelf life), then hyperscript could really shine
  • a

    adamant-exabyte-92636

    02/11/2022, 8:03 PM
    That’s because of its highly read-optimized nature
  • a

    adamant-exabyte-92636

    02/11/2022, 8:05 PM
    For instance, for us it was a no-brainer, because a) it integrates well with htmx, b) we’re a product’s company, building SaaS apps for ourselves, that we have to maintain and grow for a long time
  • a

    adamant-exabyte-92636

    02/11/2022, 8:07 PM
    Plus we have mostly Fullstack devs working on our flagship product, who build everything, from DB to hosting config (you build it, you deploy it, you maintain it)
  • a

    adamant-exabyte-92636

    02/11/2022, 8:08 PM
    That’s a completely different game to people looking to have the most popular/mainstream stuff on their CV, to maximize employment options.
  • a

    adamant-exabyte-92636

    02/11/2022, 8:09 PM
    I hope that helps … even though that was clearly a biased/one-sided set of arguments for hyperscript
  • a

    adamant-exabyte-92636

    02/11/2022, 8:12 PM
    Last thing I’d say on this - try out both and see what works for you. They are not massive frameworks, and you can take both for a spin without too much of a time investment
  • f

    future-bear-20041

    02/11/2022, 8:48 PM
    Thanks a lot 💖
  • b

    brave-magazine-28098

    02/11/2022, 9:41 PM
    I use alpine for most stuff but I’ve stared using hyperscript to solve little tricky problems in a more compact way and am really liking using both in the same project. So I say don’t limit yourself to only 1 when you can have both! 😀
  • m

    mysterious-toddler-20573

    02/11/2022, 9:44 PM
    djhalperhype
  • m

    mysterious-toddler-20573

    02/11/2022, 9:45 PM
    djhalperhypernugen
  • b

    brave-magazine-28098

    02/11/2022, 9:45 PM
    basically anything that is async I use hypersceipt cause who wants to write setTimeout(dothing, 1000) when you can just write ‘wait 1s then dothing’
  • g

    gentle-notebook-11755

    02/13/2022, 10:31 PM
    @User hi, could you share more about your experience using htmx and Shoelace? I have never used it, but I am considering it for a new project. I wonder if there are any special considerations, gotchas to be careful.
  • b

    bland-coat-6833

    02/14/2022, 8:10 AM
    Does anyone have a recommendation for Django hosting? Preferably with the ability to host data in the UK (or EU).
  • m

    mammoth-family-48524

    02/14/2022, 9:10 AM
    Sure. I haven't tested everything in Shoelace - just sl-select, sl-button, and sl-input and they work quite well. They all fire events HTMX can listen for and the data is submitted in normal form encoding. One potential gotcha is the Shoelace form fields aren't automatically included by HTMX even if they're wrapped in a form, but I was able to use hx-include to include them. E.g. hx-include="find sl-input". I think HTMX is hardcoded to only find input, select, and textareas automatically. You can style most of the parts of the Shoelace elements using CSS parts (the Shoelace docs explain how). Some parts you can't style - just like with normal HTML elements - but I've only had one case of that happening and I contacted the devs and they added a new part for me to style which was awesome. The devs also consider accessibility of the components which to me was a big plus. Lots of frameworks don't bother.
  • f

    fresh-controller-36545

    02/14/2022, 11:24 AM
    Any VPS will do~ I personally host most projects when they have less than 7 concurrent users on a Raspberry Pi at home^^
  • g

    gentle-notebook-11755

    02/14/2022, 12:41 PM
    Amazing. Thank you so much. Really appreciate the tip about hx-include. I would have spent hours trying to figure that out. Thanks!! 👍
  • h

    hundreds-camera-24900

    02/14/2022, 3:01 PM
    I recently have using fly.io and render.com for my hosting
  • m

    mammoth-family-48524

    02/15/2022, 6:28 AM
    No worries - happy to help 😄
  • s

    salmon-xylophone-28580

    02/16/2022, 8:06 PM
    I like Hetzner Linux VPS. They start at 4 Euro per month. For most low traffic sites this enough. My stack: PostgreSQL, ngnix, systemd, Django, gunicorn. But you need some Linux knowledge to get it working.
  • b

    bland-coat-6833

    02/16/2022, 8:14 PM
    I’ve been doing a load of AWS IoT dev recently so I’m becoming a fan of serverless where possible. Google Cloud Run could be good though. Depends on what DBs they have.
  • h

    hundreds-camera-24900

    02/16/2022, 8:24 PM
    People have been talking a lot about hetzner recently
  • h

    hundreds-camera-24900

    02/16/2022, 8:24 PM
    I guess they're the cheapest
  • h

    hundreds-camera-24900

    02/16/2022, 8:24 PM
    I don't like GCR
  • h

    hundreds-camera-24900

    02/16/2022, 8:25 PM
    imho google cloud is fine but the documentation is inexcusably bad
  • h

    hundreds-camera-24900

    02/16/2022, 8:25 PM
    have you seen zappa? https://github.com/zappa/Zappa
  • b

    bland-coat-6833

    02/16/2022, 8:43 PM
    Nice. I shall investigate that. I’ve seen Mangum but that’s for ASGI apps. It’s more that I would like something that scales to zero - I’m just a cheapskate really.
  • b

    bland-coat-6833

    02/16/2022, 8:56 PM
    Timely: https://github.com/ehmatthes/django-simple-deploy Via: https://overcast.fm/+QkIpsLIQ4
1...495051...100Latest