Not a Single Line of JavaScript has Been Written??

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 49

  • @ninilab
    @ninilab 6 หลายเดือนก่อน +23

    this simplicity is incredible, similar to good old times, rendering pure html, loving it. A breath of fresh air.
    just yesterday spent 1,5h in a meeting about redesigning a frontend application. the redesign supposed to happen with simultaneous switch to a new design system.
    but the new design system is still in progress and their timeline to finish is Q2 next year.
    so we gonna do a redesign but with old design system. and then migrate to a new design system later at some point.
    this is the burden of huge corps. so frustrating.
    even for a simple admin-ui change you need involve frontend people and discuss how things gonna look like, which data backend API supposed to provide.
    I guess only during that meeting alone you'd probably have already functioning CRUD UI based on htmx.
    I wanna try htmx for our apps just as a hidden ui for internal team usage to simplify certain tasks like maintenance that otherwise would need to be done via direct DB connection. it'd be so wasteful to include everyone just to discuss simple CRUD+some custom actions :(.

    • @ceigey-au
      @ceigey-au 6 หลายเดือนก่อน +1

      Basically my policy in the office right now is, does it need to face consumers? If so, API to whatever frontend. Otherwise, HTMX. We had success with a HTMX frontend for an internal tool that took a fraction of the time that fiddling with vanilla JS would require. There’s new caveats like we didn’t have the best organisation of our components and pages in that one off project but the same trouble comes with using React.
      (As for why not the consumer facing side, there’s a chance we’ll need to change that dramatically but the underlying business logic stays pretty much the same)

  • @MrAdBounty
    @MrAdBounty 6 หลายเดือนก่อน +39

    I also use HTMX with Go to build my app. I never did any JavaScript or web dev before and I'm really happy with my decision of not using react

  • @kishanbsh
    @kishanbsh 5 หลายเดือนก่อน +3

    Need a video on how you can approach complex form validations with this approach? Complex form validations felt so horrible with htmx when i last tried it as it lead to a lot of sphegetti code handling form validation states for each element

  • @it-kachalka
    @it-kachalka 6 หลายเดือนก่อน

    Thanks a lot for content like this! You are one of the few, who post content about replacing frontend frameworks to server rendering without worsening user experience, thanks, please continue!

  • @IvanRandomDude
    @IvanRandomDude 6 หลายเดือนก่อน +8

    But this will fire several API requests. One for fetching IDs and then separate request for each ID. In "cool" javascript frameworks for example you can do all of that in one request: fetch the IDs and returns initial html and then stream down the data for each graph. One request vs potentially 10 requests. This is the argument js defenders make for using "cool" javascript frameworks.

    • @ivantarjan7360
      @ivantarjan7360 6 หลายเดือนก่อน +4

      You can make an endpoint in the API that receives de ids as query params to do a bulk fetch, turning it into two requests to API and db instead of 10

    • @IvanRandomDude
      @IvanRandomDude 6 หลายเดือนก่อน

      @@ivantarjan7360 Sure but that request will be bulky and much slower. The power of streaming approach is that you send the data for individual chart to a client as soon as it is available as opposed to waiting for the data for all the charts to be fetched and send it back at once.

    • @ivantarjan7360
      @ivantarjan7360 6 หลายเดือนก่อน +1

      @@IvanRandomDude true, in that case you could use the goroutines to send server side events every time a query returns the data

    • @IvanRandomDude
      @IvanRandomDude 6 หลายเดือนก่อน

      @@ivantarjan7360 Yeah, definitely. But, need to write a lot of code to accomplish that (both on the client and the server). Now image you need the same functionality in 100 endpoints. Having framework take care of all of that would be nice. Also, this is not limited to javascript either. You can do this in Blazor out of the box for example.

    • @exponent42
      @exponent42 5 หลายเดือนก่อน

      Yes

  • @steliosgiokas6149
    @steliosgiokas6149 6 หลายเดือนก่อน +7

    How you are creating the line chart without js? Most of the example I have seen is using some js

  • @gpltaylor
    @gpltaylor 6 หลายเดือนก่อน +3

    "want to build with a small amount of people" 100% - I love this video - thank you

  • @ninilab
    @ninilab 6 หลายเดือนก่อน +4

    also loving how simple the backend code looks.
    how is db package imported and used without instantiating the service, connection etc the whole mumbo-jumbo?

  • @pythonantole9892
    @pythonantole9892 6 หลายเดือนก่อน +4

    "No Anthony, this is slow, makes several unnecessary requests and does not scale" This is usually the argument of JS framework fanboys. Every JS framework fanboy argues as if every application being built out there is at the level of Facebook or Instagram, yet the truth is many of us in our lifetime will never build an application for more than 100K users.

    • @benbowers3613
      @benbowers3613 3 หลายเดือนก่อน

      To be fair, that very argument, that we'll likely never encounter TRUE scale, could be used to say that we should go ahead and use the big clunky js frameworks so long as shipping to vercel remains the route with the highest dev velocity.
      The main benefit I see to using Go or something even faster on the backend is for saving costs in both scenarios: You can buy a weaker VPS and get the same results at the small scale, and then you will obviously ALSO save money once you move to something that's charge per compute.

  • @CesarFernandez-q1p
    @CesarFernandez-q1p 2 หลายเดือนก่อน

    I love your content! Wow, I've learned so much about Go thanks to your full application examples. However, could you add more zoom? A lot of us consume your content from mobile devices. 😁

  • @INFOXlive
    @INFOXlive หลายเดือนก่อน

    I agree, often the problem is the entire ecosystem. The dispute vanilla js vs frameworks is often pointless as the big elephant in the room is no touched. Instead you could generate your html on the server.

  • @benbowers3613
    @benbowers3613 3 หลายเดือนก่อน

    This is really great but I think it would be possible to avoid an individual request for every card, still using just HTMX. Put the hx-get for /marketplace/trade on the _container_ of the trade cards, now sending back the whole array of id's, and then return the whole list of loaded cards and swap out the loading ones all at the same time. I care less about multiple requests to the server than I do _multiple requests to the database_

  • @jc-aguilar
    @jc-aguilar 6 หลายเดือนก่อน +2

    I hope that browsers support natively what HTMX does. It should be already supported by them.

  • @ustav_o
    @ustav_o 6 หลายเดือนก่อน +3

    really nice. tried using that stack once but was to painful. skill issue? yes

    • @anthonygg_
      @anthonygg_  6 หลายเดือนก่อน +4

      No skill issue. Its just not documented properly

  • @opencode1
    @opencode1 5 หลายเดือนก่อน +1

    you look good brother. Really really enjoy your truthfulness. What type of headpohones do you use please?

  • @FolkOverplay
    @FolkOverplay 6 หลายเดือนก่อน +2

    How about saving settings like filter in the URL?

  • @flo3005
    @flo3005 6 หลายเดือนก่อน +1

    Thanks a lot for the great content Anthony! In levenue, do you have a view with a table with many rows that needs sorting/filtering? If so, how do you handle this?

  • @tevintchuinkam
    @tevintchuinkam 6 หลายเดือนก่อน +1

    What do you think about maragudk/gomponents ? I have been using that instead of templ because I like being able to write everything in 100% go. I'm curious what you think about it.

    • @jeffreysmith9837
      @jeffreysmith9837 6 หลายเดือนก่อน +1

      Gomponents is better. Much simpler. No special proxy compiler and LSP

    • @SandraWantsCoke
      @SandraWantsCoke 6 หลายเดือนก่อน +1

      yes, gomponents are much better as you can fetch inside the gomponents and do all the go stuff inside the function, which is not possible with templ. The only down side is ugly syntax

  • @calledtigermttv7184
    @calledtigermttv7184 4 หลายเดือนก่อน

    Hi Anthony! How did you create these charts?

  • @cristianoromaldetti6175
    @cristianoromaldetti6175 6 หลายเดือนก่อน +2

    thanks Anthony! i'm looking forward for the framework asap! i've kinda a boilerplate at the moment with GO/templ/htmx/tailwindcss/hyperscript(opt-in) that works fine, similarly to framework like nextjs it automatically detects routes using the file in the pages folder and other stuff, it's kinda primitive but i believe that is the HTMX time

    • @DamianPodraza
      @DamianPodraza 6 หลายเดือนก่อน

      Could you share the code?

  • @DOGERAZ
    @DOGERAZ 5 หลายเดือนก่อน

    I think it's a great solution for startups

  • @peterszarvas94
    @peterszarvas94 6 หลายเดือนก่อน +2

    making goth framework? hell yeah

  • @TheOpensourceGeek
    @TheOpensourceGeek 6 หลายเดือนก่อน +11

    What is the point of always streaming and never sharing the Github repos???

    • @anthonygg_
      @anthonygg_  6 หลายเดือนก่อน +31

      In cant share this repo or I go to jail

    • @WebDevCody
      @WebDevCody 6 หลายเดือนก่อน

      @@anthonygg_ htmx is a controlled substance. be careful

    • @manfredtkavetu4477
      @manfredtkavetu4477 6 หลายเดือนก่อน

      @@anthonygg_ 🤣🤣

    • @nielskersic328
      @nielskersic328 5 หลายเดือนก่อน +1

      Lol he is literally showing how he is building an actual real world product with this stack. A lot of people wouldn’t even do that and would just show you some shallow todo app or something. Yet it’s still not enough apparently 🤦🏻‍♂️

    • @WebDevCody
      @WebDevCody 5 หลายเดือนก่อน

      @@anthonygg_ lock him up

  • @agb2557
    @agb2557 6 หลายเดือนก่อน

    very cool! how are you creating those plots?

    • @nanonkay5669
      @nanonkay5669 6 หลายเดือนก่อน +1

      That's my question too, lol

    • @milanutekal5083
      @milanutekal5083 6 หลายเดือนก่อน +1

      this is probably the go-echarts library

    • @tanko.reactions176
      @tanko.reactions176 3 หลายเดือนก่อน

      chartjs?!
      pretty much the standard!

  • @MukundSRajput
    @MukundSRajput 5 หลายเดือนก่อน

    thanks for teaching sir love from India ❤

  • @tanko.reactions176
    @tanko.reactions176 3 หลายเดือนก่อน

    damn, so beautiful!

  • @the_h15z
    @the_h15z 6 หลายเดือนก่อน +1

    So true JS is a nightmare ecosystem

  • @naranyala_dev
    @naranyala_dev 6 หลายเดือนก่อน

    more htmx

  • @sct848
    @sct848 6 หลายเดือนก่อน

    What is the coupon code for 60% off on fulltimegodev?