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

    gorgeous-ghost-95789

    11/25/2020, 6:39 PM
    (Yes, htmx is f'n rad)
  • m

    mysterious-toddler-20573

    11/25/2020, 6:39 PM
    I can give much better runtime errors w/ an interpreted runtime
  • m

    mysterious-toddler-20573

    11/25/2020, 6:40 PM
    i spent a lot of time transpiling it and now I think that, while I'll never forget those days, the good times and the bad, I'm going to now throw all that in the trash
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:41 PM
    Yeah. Though, it's not throwing it away. It's learning and iterating on those lessons.
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:41 PM
    Oh, another factor (still in favor of interpreting, I think)
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:42 PM
    Which one will be easier for other developers to dig into, so that you're not the only one who has to do this.. all alone.. at 2AM.. crying into a bottle of tequilla?
  • m

    mysterious-toddler-20573

    11/25/2020, 6:42 PM
    ☝️ 😑
  • f

    future-boots-43048

    11/25/2020, 6:43 PM
    Yeah. I second what ben said.
  • m

    mysterious-toddler-20573

    11/25/2020, 6:44 PM
    2021 is the year of hyperscript and I need to get serious about this thing. I think you are correct that we should focus on flexibility and maintainability
  • m

    mysterious-toddler-20573

    11/25/2020, 6:45 PM
    One other nice thing about interpreted: each parse node effectively acts like a continuation, so my goal of transparent asynchronicity will be loads easier to implement
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:47 PM
    Yes, and it potentially simplifies the goal of loading new fragments into the DOM, and only parsing them when they're needed.
  • m

    mysterious-toddler-20573

    11/25/2020, 6:48 PM
    nobody ever got fired for creating an interpreted programming language
  • m

    mysterious-toddler-20573

    11/25/2020, 6:48 PM
    they get fired for creating a programming langauge, period
  • m

    mysterious-toddler-20573

    11/25/2020, 6:48 PM
    unless they are Rob Pike
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:49 PM
    Plus, I'd really like to be able to send Hyperscript straight to the parser within my JS. Something like
    <script>hyperscript.run('take green from #node then add #blue to #node')</script>
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:49 PM
    Rob Pike is my spirit animal.
  • m

    mysterious-toddler-20573

    11/25/2020, 6:49 PM
    bro
  • m

    mysterious-toddler-20573

    11/25/2020, 6:49 PM
    plz
  • m

    mysterious-toddler-20573

    11/25/2020, 6:49 PM
    Copy code
    html
    <script type="hyperscript">take green from #node then add #blue to #node'</script>
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:50 PM
    Yes. That's better.
  • m

    mysterious-toddler-20573

    11/25/2020, 6:50 PM
    that will work one day, I promise
  • m

    mysterious-toddler-20573

    11/25/2020, 6:50 PM
    OKOK
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:52 PM
    But you'll still need a way to link into that from JS. I know I'm way outside of scope for right now, just planting seeds for 2021, the year of Hyperscript.
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:52 PM
    But while I'm on the topic....
  • m

    mysterious-toddler-20573

    11/25/2020, 6:54 PM
    yea
  • g

    gorgeous-ghost-95789

    11/25/2020, 6:54 PM
    How committed are you to making these two separate libraries? I think there's a lot of potential overlap (in the swapping logic alone) that might be useful to just combine them. They're each small enough that most people wouldn't mind a few extra K, but I think most use cases will need both tools anyway 🙂
  • m

    mysterious-toddler-20573

    11/25/2020, 6:55 PM
    I'm going to add this:
    Copy code
    js
      on whatever log it then js {
        rawJavascriptShennanigans();
      }
  • m

    mysterious-toddler-20573

    11/25/2020, 6:55 PM
    so you can inline JS in hyperscript
  • m

    mysterious-toddler-20573

    11/25/2020, 6:55 PM
    it won't get the transparent asynchronousness, but thems the breaks
  • m

    mysterious-toddler-20573

    11/25/2020, 6:56 PM
    hyperscript is already bigger than htmx
1...798081...1146Latest