HTMX Is Amazing And This Is Why

Поділитися
Вставка
  • Опубліковано 9 лип 2023
  • ► Join my Discord community for free education 👉 / discord
    ► Exclusive Lessons, Mentorship, And Videos 👉 / anthonygg_
    ► Enjoy a 50% Discount on My Golang Course 👉 fulltimegodev.com
    ► Learn how I became a self-taught software engineer 👉fulltimegodev.com/#mystory
    ► Follow me on Twitter 👉 / anthdm
    ► Follow me on GitHub 👉 github.com/anthdm
    HTMX is amazing and this is why.
    SUBSCRIBE OR NO MARGARITAS
    ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
    ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
    ╠╗║╚╝║║╠╗║╚╣║║║║║═╣
    ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

КОМЕНТАРІ • 43

  • @anthonygg_
    @anthonygg_  11 місяців тому +1

    ► Join my Discord community for free education 👉 discord.com/invite/Ac7CWREe58
    ► Exclusive Lessons, Mentorship, And Videos 👉 www.patreon.com/anthonygg_
    ► 50% OFF on my Golang course 👉 fulltimegodev.com
    Thanks for watching

  • @MrAverageViewer
    @MrAverageViewer 11 місяців тому +33

    Glad you're covering HTMX!! Eager to see how far you can take an app, without a JS Framework. A PURE HTMX FRONTEND would be great!

  • @anshkumargarhewal8582
    @anshkumargarhewal8582 11 місяців тому +9

    Hey Anthony, just a suggestion that you can use "Ag-Grid" if you want to instead of that html/tailwind table just integrate it and pass your data as params in it has built in features like sorting searching filtering and even exporting it in CSV/excel.
    It saves a lot of time implementing those features by yourself.
    Thanks for teaching about the templating engine 🙇

  • @0zema
    @0zema 11 місяців тому +1

    holy hell, I was thinking about using htmx with templates for my admin dashboard 2 days ago! you're a lifesaver.

  • @ebukaume
    @ebukaume 4 місяці тому

    Thanks for all your videos and clear explanations. I love how organised your code always is. Do you always start with a UI/UX design or you just start with wireframes and figure the rest out along the line?

  • @eduardolagoeiro1810
    @eduardolagoeiro1810 11 місяців тому +3

    How do you create components with golang template (I see some django like syntax)? Did it cover cases where props are needed in components? Do you think about type safety on sending values to the template (intelisense would be fine)? I do not find anything to solve this issues like the SvelteKit solution.

  • @choleralul
    @choleralul 11 місяців тому +1

    Lekker hoor Tony!

  • @MaybeAwab
    @MaybeAwab 11 місяців тому +1

    nice content Anthony

  • @nefrace
    @nefrace 11 місяців тому +14

    The great thing i can see in HTMX is that it still can be rendered perfectly if the client doesn't have JS enabled if you handle the requests from client correctly!
    Definitely gonna make something with this stack

    • @0M9H4X_Neckbeard
      @0M9H4X_Neckbeard 9 місяців тому +8

      But HTMX itself is a JavaScript library that runs on the client - so how would that work?

    • @nefrace
      @nefrace 9 місяців тому

      @@0M9H4X_Neckbeard if the request has some htmx-specific headers then server will know that we have JS and HTMX and can just send portions of the page.
      If your anchor tag or form didn't get touched by htmx then the page will be refreshed on request and the server can just send full page.
      But you need to prepare your server to work with such situation
      I'm not sure if i described it correctly but i hope you understand what i mean

    • @David-gj6dc
      @David-gj6dc 9 місяців тому

      ​@@0M9H4X_Neckbeard Because it is just html with some custom attributes. The browser can handle that even without a JavaScript engine. With many other frameworks on the other hand you need JavaScript to even display anything meaningful because the HTML is usually just a div that you point the JavaScript to and the JavaScript running is what renders the application.
      Sure if JavaScript is disabled htmx apps won't function but they can at least still render.

    • @yawaramin4771
      @yawaramin4771 2 місяці тому

      ​@@0M9H4X_Neckbeard it would work if the backend correctly handles both htmx and non-htmx requests. For htmx requests it responds with the fragments that partially update the page. For non-htmx requests it responds with the fully rendered page. This way if JavaScript is disabled, the app works by just doing full-page loads.

  • @aggellos2001
    @aggellos2001 11 місяців тому +3

    Indeed htmx seems a good project for what it offers. Hope it gets more traction 🤞

  • @MVybz
    @MVybz 9 місяців тому

    would be really cool to see more HTMX videos 🤘

  • @Woeden
    @Woeden 11 місяців тому

    Very cool concept

  • @inigoarejula2147
    @inigoarejula2147 11 місяців тому +1

    Will be a video setting up tailwind for go? i tried it but i dont make it work :c

    • @anthonygg_
      @anthonygg_  11 місяців тому +1

      Discord community covered this. Join us

  • @savagemode2150
    @savagemode2150 11 місяців тому +3

    amazing content Anthony, I'm glad we have you to help us around

  • @shakerlakes
    @shakerlakes 11 місяців тому +4

    What did you call the stack at about 0:55? BORG? BORD? BOARD? It's not clear. The tech you mention is golang, postgres, htmx, and tailwind, which spells GPHT. 🤔
    Thanks!

    • @anthonygg_
      @anthonygg_  11 місяців тому +3

      Bored 😂

    • @shakerlakes
      @shakerlakes 11 місяців тому +1

      @@anthonygg_ as good a name as any. 😅

  • @eunesshshahithakuri7047
    @eunesshshahithakuri7047 11 місяців тому +17

    HTML becoming proper language now

    • @StevenRotelli
      @StevenRotelli 8 місяців тому +2

      UI/front-end engineers in a panic rn

    • @eli1882
      @eli1882 5 місяців тому +1

      ​​@@StevenRotellias they should be

    • @eli1882
      @eli1882 5 місяців тому

      Have you heard of a markup language?

    • @trentonwallace667
      @trentonwallace667 5 місяців тому

      They grow up so fast 😂

  • @hakanakdag9491
    @hakanakdag9491 7 місяців тому

    what about security? how are tokens authentication etc being handled?

  • @seanknowles9985
    @seanknowles9985 11 місяців тому

    If we wanted to add a mobile app to this using React Native, would we need to split the routes out into api routes. How would we handle serving htmx and splitting out the api so we can have multiple platform clients calling the same backend...?

    • @fumano2679
      @fumano2679 25 днів тому +1

      Well your backend service should have a service layer which is independent on your database and public handlers, then you can simply create 2 different routers one for the htmx and one for api. In the api routes you marshal the returned models from the service to json and in the htmx you marshal it to html

  • @megasuperlexa2
    @megasuperlexa2 11 місяців тому +1

    wait. WSL? how and why

  • @kabukitheater9046
    @kabukitheater9046 9 місяців тому

    is that tailwind?

  • @hfourie7121
    @hfourie7121 11 місяців тому +1

    Looking good

  • @interstellar1873
    @interstellar1873 11 місяців тому +2

    Simple and powerful tools = High throughput 🙃

  • @manofqwerty
    @manofqwerty 11 місяців тому +1

    I can't believe I wasn't subscribed

  • @bursoft8165
    @bursoft8165 9 місяців тому

    Nice video

  • @flflflflflfl
    @flflflflflfl 8 місяців тому +1

    Why do you call it SSL tracker? SSL was deprecated in 2015?

  • @m.x.
    @m.x. 6 місяців тому +1

    Why not just using Vanilla JavaScript at this point?