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

    melodic-advantage-28381

    01/18/2023, 9:07 AM
    Haha yes of course if the code of conduct is all about inclusive language it's just missing the point. I guess what I'm saying is that maintainers also sometimes (even more often?) have a bad day and don't want to read "This lib is useless" as the second comment of an issue.
  • f

    few-vegetable-15970

    01/18/2023, 10:35 AM
    Today at work… Interesting…
  • f

    few-vegetable-15970

    01/18/2023, 10:37 AM
    "self"… what’s this? The actual endpoint itself?
  • s

    stocky-dentist-80693

    01/18/2023, 10:41 AM
    The
    _links
    section (and thus 'self') is part of a "standard" - https://en.wikipedia.org/wiki/Hypertext_Application_Language
  • s

    stocky-dentist-80693

    01/18/2023, 10:42 AM
    I think it's supposed to be like, "Here are some useful endpoints relating the main result that you can also do"
  • f

    few-vegetable-15970

    01/18/2023, 10:44 AM
    So maybe there is a little hope for “real” RESTfull JSON APIs…
  • s

    stocky-dentist-80693

    01/18/2023, 10:47 AM
    It's up for debate. One of the htmx essays goes into this a bit here - https://htmx.org/essays/hateoas/. Read the whole thing, but the relevant bit is the "HATEOAS AND JSON" section.
  • a

    adventurous-ocean-93733

    01/18/2023, 12:20 PM
    For those interested in the Hypermedia approach, I thought this Douglas Adams BBC documentary from 1990 about Hypermedia was very good:

    https://www.youtube.com/watch?v=1iAJPoc23-M▾

  • m

    miniature-lizard-24702

    01/18/2023, 3:17 PM
    BBC? Wow. My opinion of them has slightly increased
  • m

    miniature-lizard-24702

    01/18/2023, 3:19 PM
    ngl the intro felt like I was watching an old mr bean episode
  • a

    adventurous-ocean-93733

    01/18/2023, 4:23 PM
    Intro is a bit hard going but it gets really interesting 5 mins in
  • a

    aloof-farmer-99917

    01/18/2023, 4:25 PM
    "Look what they need to mimic a fraction of our power" meme
  • b

    big-airline-13935

    01/18/2023, 4:53 PM
    https://twitter.com/ben_pylo/status/1615754025034711040
  • m

    mysterious-toddler-20573

    01/18/2023, 5:05 PM
    the trick (and this took me a long time to appreciate) is that you need a hypermedia client as well. Creating a hypermedia API isn't that difficult at the end of the day (there are only two hypermedia controls and then some form-related stuff to mimic in HTML, after all). What's hard is creating a client that understands all that and that is general enough to also present it to a human in a nice form. building a client like a browser that respects the uniform interface of a hypermedia API and is also not a terrible experience for a human user appears to be really, really hard to me
  • t

    thankful-ice-8687

    01/19/2023, 9:13 PM
    what is going to have more perceived performance? something like sveltekit or htmx?
  • t

    tall-dinner-62086

    01/19/2023, 9:17 PM
    Highly dependent on the backend
  • t

    tall-dinner-62086

    01/19/2023, 9:17 PM
    and also on what you're actually doing
  • o

    orange-umbrella-16693

    01/19/2023, 9:20 PM
    if you don't use hx-indicator or something like that then sveltekit can be perceivably smoother otherwise i'd say its a tossup and it depends as @tall-dinner-62086 said, sveltekit or whatever does clientside rendering will surely use more CPU
  • t

    thankful-ice-8687

    01/19/2023, 9:21 PM
    node and/or golang mostly i've been hovering around htmx and considering transferring for a while now because i love the idea. i haven't done much other than cursory reading and occasionally looking at some of the docs as for what i'm doing, i was thinking i'd try to make something like sveltekit's mix of CSR with SSR with htmx
  • t

    thankful-ice-8687

    01/19/2023, 9:22 PM
    but more generally the use case would be small games, medium-sized web apps and websites
  • t

    tall-dinner-62086

    01/19/2023, 9:23 PM
    Assuming you're "as good" at svelte as you are at htmx, I don't think you'll really notice a performance difference in the majority of cases
  • t

    tall-dinner-62086

    01/19/2023, 9:24 PM
    Unless you're at an extreme case of server being very poor at rendering html while the client has resources to spare, or vice-versa
  • t

    thankful-ice-8687

    01/19/2023, 9:25 PM
    i looked at hx-indicator in the docs. so it has built-in UX features? thats pretty cool
  • t

    thankful-ice-8687

    01/19/2023, 9:27 PM
    is CSR possible with htmx? and if the performance is mostly imperceivable and can do the same thing, then htmx looks way easier and it might be worth the move
  • t

    tall-dinner-62086

    01/19/2023, 9:28 PM
    The whole point of htmx is to have the server do the rendering
  • t

    tall-dinner-62086

    01/19/2023, 9:29 PM
    However, there is a client-side template extension
  • r

    refined-waiter-90422

    01/19/2023, 9:31 PM
    you generally combine htmx with its own internal set of CSR functions, or jquery, or surreal, or umbrella, or hyperscript. htmx can get drastically lower latency, higher performance in a lot of situations, (ideal for games) because so many layers of complexity (slowness) are removed. But it's all about the patterns you decide to use.
  • r

    refined-waiter-90422

    01/19/2023, 9:33 PM
    There's nothing really faster than the direct-to-js approach htmx uses, in a vast majority of situations. No virtual dom or anything.
  • r

    refined-waiter-90422

    01/19/2023, 9:34 PM
    Faster in terms of latency.
  • r

    refined-waiter-90422

    01/19/2023, 9:41 PM
    If you need to go to the server for something, of course, you're always going to incurr that round-trip network time no matter what you use.
1...991992993...1146Latest