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

    some-airline-73512

    02/21/2023, 10:30 PM
    What do you consider integration tests? Send http request and assert html response?
  • m

    mysterious-toddler-20573

    02/21/2023, 10:32 PM
    broadly I think http is a bad medium to test at
  • m

    mysterious-toddler-20573

    02/21/2023, 10:32 PM
    i would test the back end domain logic exercised by the server side controller
  • m

    mysterious-toddler-20573

    02/21/2023, 10:32 PM
    and then have end-to-end front end tests
  • m

    mysterious-toddler-20573

    02/21/2023, 10:32 PM
    but I haven't done this style of testing in a while, so things may be different now
  • m

    mysterious-toddler-20573

    02/21/2023, 10:33 PM
    w/ better http testing tools (esp. since JSON is so popular)
  • s

    some-airline-73512

    02/21/2023, 10:33 PM
    I'm thinking e2e still a good choice, but somehow to fix the flakiness of them
  • s

    some-airline-73512

    02/21/2023, 10:34 PM
    Game developers do it all the time. Jonathan Blow is testing his game by recording how he plays each level and then replaying that
  • s

    some-airline-73512

    02/21/2023, 10:34 PM
    He is able to do 1k+ levels this way, single man
  • s

    some-airline-73512

    02/21/2023, 10:35 PM
    So the flakiness is the real problem no be solved
  • s

    some-airline-73512

    02/21/2023, 10:35 PM
    The real medium to be tested at is a human to computer interface
  • s

    some-airline-73512

    02/21/2023, 10:35 PM
    Which is real interaction
  • s

    some-airline-73512

    02/21/2023, 10:36 PM
    Flakiness to me seems like a bad implementation of the testing tool, that's it. Because when a human interacts with a website, he doesn't have any flakiness. So why the tool should have it? Doesn't make sense to me. Thus, that's the real problem to solve
  • m

    mysterious-toddler-20573

    02/21/2023, 10:38 PM
    humans are extremely resilient in the face of novel situations
  • m

    mysterious-toddler-20573

    02/21/2023, 10:38 PM
    https://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.html
  • NodeJS template engines
    l

    limited-teacher-83117

    02/21/2023, 11:01 PM
    Don't disagree with the spirit of this meme but I've been building a bunch of stuff with NodeJS and HTMX lately and if you pick a good templating engine you don't need a build step at all (and the async runtime is tremendous). Obviously that's not how most people do Node development, but if you're using HTMX you're already committed to evangelizing ๐Ÿ˜†
    s
    m
    +3
    • 6
    • 48
  • m

    mysterious-toddler-20573

    02/21/2023, 11:04 PM
    fair!
  • r

    refined-waiter-90422

    02/21/2023, 11:26 PM
    Yuuuuup. It can be difficult to be inquisitive as a node dev when constantly bombarded with frameworks that promise the universe if one adopts the magical convoluted stack / build system.
  • r

    refined-waiter-90422

    02/21/2023, 11:30 PM
    At least one gets the blissful thrill of a new framework every few months
  • l

    limited-potato-46306

    02/22/2023, 12:13 AM
    If my 2 cents are worth anything, htmx being 1 file drop in JS has been so helpful. I find a bunch of functions in 1 file easy to put break points in the browser to step through what is going on. This makes it easier for me to figure out what is actually happening when I can't figure something out from the documentation. If htmx were written in typescript and there were a bunch of build steps and all of that stuff, I wouldn't attempt to deal with the source code. If I am going to go through all of that and the team I am working with needs to go through all of that, it would call into question whether it makes sense to use htmx since one of its selling points vs. Vue/React/whatever-flavor-of-the-month is not having to know all that stuff (obviously love it for other reasons too).
  • e

    enough-petabyte-50314

    02/22/2023, 12:34 AM
    Yeah I learned perl with that book! As an intern at hgtv.com in 2012
  • e

    enough-petabyte-50314

    02/22/2023, 12:39 AM
    I like this discord server. Idk why exactly, but it's enjoyable
  • m

    mysterious-toddler-20573

    02/22/2023, 12:45 AM
    ๐Ÿ‘ด
  • l

    limited-teacher-83117

    02/22/2023, 12:55 AM
    I also think a lot of people underrate that javascript has some of the best backwards compatibility guarantees of any language (because the experience of using npm is the opposite). even if you haven't had the distinct pain of performing a TypeScript major version upgrade, JavaScript is guaranteed to work pretty much as long as browsers exist. that's a big deal!
  • m

    mysterious-toddler-20573

    02/22/2023, 1:07 AM
    say what one will, this is very true
  • m

    mysterious-toddler-20573

    02/22/2023, 1:07 AM
    I write my js code like it is 2012, and it continues to work
  • l

    limited-potato-46306

    02/22/2023, 1:09 AM
    I was actually going to write something like that in my initial comment. Especially if htmx goes unmaintained it would continue to work, but I didnโ€™t want to manifest that reality ๐Ÿ™ƒ
  • l

    late-king-98305

    02/22/2023, 1:37 AM
    I can't find the exact book I used to learn to program, but it was something like this...

    https://pictures.abebooks.com/isbn/9780782123210-us.jpgโ–พ

  • l

    late-king-98305

    02/22/2023, 1:37 AM
    ๐Ÿฆ•
  • c

    cuddly-keyboard-70746

    02/22/2023, 4:26 AM
    you should see my first programming book
1...103510361037...1146Latest