I'm on the HTMX struggle bus right now

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024
  • Become a YT Members to get extra perks!
    www.youtube.co...
    My Products
    🏗️ WDC StarterKit: wdcstarterkit.com
    📖 ProjectPlannerAI: projectplanner...
    🤖 IconGeneratorAI: icongeneratora...
    Useful Links
    💬 Discord: / discord
    🔔 Newsletter: newsletter.web...
    📁 GitHub: github.com/web...
    📺 Twitch: / webdevcody
    🤖 Website: webdevcody.com
    🐦 Twitter: / webdevcody

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

  • @thespiritualjourney369
    @thespiritualjourney369 3 หลายเดือนก่อน +53

    Love ur consistency man. All this craving for learning new things, Very inspiring.

  • @MarkDeibert
    @MarkDeibert 3 หลายเดือนก่อน +12

    Really enjoying all this Not-NextJs content. I'm very much into all SSR and Htmx right now. Please keep the Htmx help vids rolling 🙂

  • @benjaminreid
    @benjaminreid 3 หลายเดือนก่อน +19

    I may be jumping the gun as chiming in as I saw it, but when you have that inconsistent state with the server at around 2:45, I’d probably aim to re-render and swap out that whole block underneath "Current List". Like whenever an action that should affect the "Current List" (add or remove an email), you render that whole block on the server then swap it out with HTMX. The ownership from first glance seems to be split between the FE of HTMX and the BE code. Something that revaildatePage in Next just does for us.

    • @WebDevCody
      @WebDevCody  3 หลายเดือนก่อน +2

      Yeah, I think that’ll make the code based more maintainable honestly. To me it felt kind of silly to send back a list of 2000 emails. If the user just adds one more to the list but treating entire sections just block you refresh is probably simpler.

    • @simonhartley9158
      @simonhartley9158 3 หลายเดือนก่อน +1

      once you want something dynamic in that way, would it be better for Alpine to handle that conditional fallback? You can have Alpine listen (x-on) for a rowsUpdated or rowCountChanged event coming from the HX-Trigger response header or you can do a js trigger via hx-on::after-request="htmx.trigger('#myList', 'myEvent')"
      htmx is pretty event oriented.

  • @neociber24
    @neociber24 3 หลายเดือนก่อน +16

    This makes me more interested or at least intrigued on HTMX but cannot lie, this remind me of PHP + JQuery.

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

      We still have a dead website deployed based on Drupal, custom PHP pages with heavy jQuery. When I feel low, I like to visit it's codebase time to time.

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

      This

  • @st-jn2gk
    @st-jn2gk 3 หลายเดือนก่อน +9

    Me personally, I’ve opted to using full stack js (remix in my case, can be next for you) plus golang. I feel like the full stack frameworks do UI exceptionally well, but struggle on any real backend work. So I do all the database calling along with all micro service work on the golang end, and all that remix or next does is call the golang endpoint and render. With this setup, everything is super simple. Deploying is super simple because I just use the default bundler config, and I just use sst and it works fine with the default config because ALL my js is doing is talking to my golang backend. React is extremely good for frontend. Golang is extremely good for backend. Use both.

    • @rand0mtv660
      @rand0mtv660 3 หลายเดือนก่อน +1

      Yeah this makes sense to me. Where I work we use .net core for backend because it's pretty powerful and developers like using it. Frontend just calls API endpoints served by .net core backend and that's it. Backend devs even annotate API endpoints with OpenAPI annotations so on frontend we just run a script that generates a full HTTP client in Typescript with all types coming from backend. I think it's a great developer experience and each team uses the technology they like using. Haven't seen any real drawbacks so far to be honest.

    • @oliverhughes169
      @oliverhughes169 3 หลายเดือนก่อน +2

      I see your direction and I had considered something like this too. However there are drawbacks, like you can't as easily share your request and response types between TS and Go, and if making a breaking change, you need to co-ordinate deploments between two different services with probably two different release pipelines. It's an extra service itself that you need to monitor and configure your tools (CI, coverage, etc). Also makes integration tests tricky, since you need to spin up your frontend and backend that are now in separate projects and languages.
      Not saying the approach doesn't have its advantages, but these considerations just convinced me to leave the API in written in Node in the same project as the React app.

    • @st-jn2gk
      @st-jn2gk 3 หลายเดือนก่อน +1

      @@oliverhughes169 Very insightful. I think the OpenAPI code-gen thing might fix the type issues, but everything else you said is completely true and valid. I'll still test a big project with this setup to see how it compares just for skill development and experience, but these will 100% be challenges I'll probably face. Smart comment!!

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

    You should always add vanilla action and method attributes to forms so that they would work even if js is disabled or failed. Also, try htmx multi-swap extension, it makes life easier by allowing to pick and swap multiple fragments from a single response.

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

      I’ll check that out. It sounds like oob swaps but from the other angle

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

      So far, I've found the multi-swap extension to be redundant. I use:
      hx-swap="none" hx-select-oob="#id1, #id2, #id3"

  • @Shr11mp
    @Shr11mp 3 หลายเดือนก่อน +32

    I gotta tell you, I'm in the same boat as you. I have a co-worker talking up htmx for it's simplicity and trashing Next.js and react for its bloat and over complexity. I've been trying htmx, but man, I'm just missing Next. Especially when you said it feels vanilla javascripty, ooooof I felt that. Not trying to head that direction.

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

      You're comparing pure tools with yes, bloated frameworks, the experience never will be the same

    • @Shr11mp
      @Shr11mp 3 หลายเดือนก่อน +9

      @@serge8085 Fair point, but I’m really responding to people who say it’s a better alternative as a blanket statement. I disagree.

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

      @@serge8085 yeah the difference is with bloated frameworks you'll have a job and with pure tools you'll get fired
      th-cam.com/video/2rP4vHPbelU/w-d-xo.html

    • @r.k.vignesh7832
      @r.k.vignesh7832 3 หลายเดือนก่อน

      Frameworks are objectively bloated and subjectively, with dependencies and all, complicated for the wrong use cases, though. Say a near static single or double page app, you don't strictly need React or Next for that. Blanket statements are generally not true (if HTMX was so much better, why would anyone still bother developing frameworks like Next or React?). At the end of the day they are just tools, and proclaiming that one is overall better than another is like debating that hammers are better than screwdrivers. A hammer can be better suited to drive a nail than a screwdriver, without either class of tool being bad for it.

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

      ​@@Shr11mp the way to use it is entirely different. I'd never write my applications like the way shown in the video - not maintainable...
      When you first start with react it takes a couple of months to be great at it, its the same thing here...
      I've been able to write JS for a very responsive/client-friendly social network with 500-1000 lines of code... Its not unmaintainable mess.

  • @blue_genes
    @blue_genes 3 หลายเดือนก่อน +1

    Hey Cody. When I first began web development, I was trying to learn react native. I knew virtually nothing and had a problem with my web socket implementation. I reached out to you on discord and you took the time to help me understand my problem further even though you could almost certainly tell I had no idea what I was doing. A few years later, I'm now working at a company developing mobile apps using react-native. I just want to thank you for remaining passionate and helping people like me understand web dev.

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

      Awesome glad I could help in some way!

  • @C4CH3S
    @C4CH3S 3 หลายเดือนก่อน +11

    If you know Pocketbase, the embedded admin dashboard it deploys is actually pure svelte, and the memory footprint is still really small. Maybe you should look into that instead of HTMX.

    • @dominicgerman5908
      @dominicgerman5908 3 หลายเดือนก่อน +2

      And the backend of Pocketbase is Go

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

      @@dominicgerman5908 yes, the front-end is deployed by pocketbase itself which makes it super lean.

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

      @@dominicgerman5908 yes, the front-end is deployed by pocketbase itself which makes it super lean.

  • @software_engineer_business_man
    @software_engineer_business_man 3 หลายเดือนก่อน +2

    This ecosystem is still new, but the experience I've had with GoLang and GoLang with Templ is definitely what I want for the future. I am willing to start dedicating my time to contribute to the Templ LSP and to improve the plugin for both VsCode and JetBrains' GoLand. I hope more people will see the potential and decide to contribute to open source, making it better and better! This stack "GoLang, Templ, HTMX, and Tailwind"is amazing. My enthusiasm for building full-stack apps has been completely restored.

    • @Ss-zg3yj
      @Ss-zg3yj 3 หลายเดือนก่อน

      HTMX is, like, 15 years old lol

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

      @@Ss-zg3yj Templ is less than 2 years old

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

    In your earlier video, you talked about preferring simplicity over complexity (dependencies), and I totally agree. Templ and frameworks like Vue or Svelte need extra IDE dependencies, which always seem to break or miss something. I know Go has a native template package, but Templ feels more natural to us JSX abusers. About your vanilla JS 'rant' these days, HTML and CSS have almost everything we need for native web components. I'm hopeful that once this is fully developed, SSR solutions will get even better. Hell, that's probably the moment I ditch the SPA world all together.

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

    Honestly most of the stuff here does not even need htmx. This app should work without any js, but the htmx can be used to improve the user experience in specific components.

  • @serge8085
    @serge8085 3 หลายเดือนก่อน +1

    I didn't watch the whole video (again), but about your first struggle and paradigm shift (funny it took only 15 years to shift back): your templates are your HTML, the same way as JS template engines work (don't have a tool name from the top of my head), then you hydrate your template with the data, the same way as you doing by passing JSON to whatever magic handlers JS toolset provides.
    In short: you have the same separation of logic, data and presentation, executing on the back and throwing ready to parse HTML to the front.

  • @KonradGM
    @KonradGM 3 หลายเดือนก่อน +1

    I think a lot of the struggles come more from "unlearning" certain patterns that you get used to from those frameworks. For me i find htmx to work best when mixed with different model, so as .net dev it is either with MVC razor for older projects, for blazor for newer ones. Generally doing everything in htmx would be / is in fact pain in the butt, buuut again it is for simplicity. HTMX isn't there to swap entire page loads etc, it's to dynamically update elements on html.

  • @SeibertSwirl
    @SeibertSwirl 3 หลายเดือนก่อน +23

    Love it!!!! Love you!

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

      You're the best!

  • @gabrieleiro4181
    @gabrieleiro4181 3 หลายเดือนก่อน +1

    Excellent video! I'm super excited by htmx and the idea of trying to simplify the frontend, but it's hard to find content on htmx's pitfalls and without that I can't judge whether or not it's a really good alternative to React. I'm looking for people who have used it in projects seriously enough such that the bad parts become evident. Thank you for posting this!

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

    I really find the balance in using react for frontend with tanstack and using go for apis.

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

    The series is great! Awesome to see someone proficient at React taking a stab at HTMX without fanboying
    And tbh, without a proper LSP, HTMX feels like Spaghetti code for a proper interactive app.
    Rails/Laravel/Phoenix have their own solutions. So ultimately it’s up to Python/Go community to carry the mantle on this. Which might take awhile

  • @hereallyfast
    @hereallyfast 3 หลายเดือนก่อน +1

    HTML/CSS/JQUERY/GO is the new radical stack

  • @paulroque4179
    @paulroque4179 3 หลายเดือนก่อน +2

    I have been writing lots of complex stuff in HTMX. Your issue with the login screen is because you are not using a progressive enhancement approach. The form in the login page should be designed to work without JavaScript, which means the backend should return a redirect response after a successful login. Then you simply add hx-boost to the form element so htmx will do the request and follow the redirect accordingly. Without hx-boost and progressive enhancement mentality, you will struggle. I have been there.

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

      Good info, I’ll try those out

  • @funkdefied1
    @funkdefied1 3 หลายเดือนก่อน +2

    Great progress report. I’m learning a lot from your experience.

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

    Using fasthtml Python framework made me rethink how I understand htmx, and now I've gotten better at it as a result

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

    You could also return status 302 with a "Location" header to make the client go to another url. That is what i did. So much fun seeing someone explore the same things i am exploring as well. Except I am using Astro to serve my endpoints. But I also want to find some time to learn some Go. It's on my list of things i want to learn. I do think we have a tend where web dev is going back to basics, and I am excited for it. Awesome video.

  • @yudistiraashadi6643
    @yudistiraashadi6643 3 หลายเดือนก่อน +2

    "I kinda miss Next.js" sounds so funny idk why lol. Anyway props to you to see and show us the other side. The grass always looks greener on the other side, as people said. Also you might learn a thing or two on your way, so I would say nothing valuable will be lost.

  • @ShootingUtah
    @ShootingUtah 3 หลายเดือนก่อน +1

    IDK HTMX seems more complex than React to me! Maybe I've developed React brain 🧠

  • @dave7244
    @dave7244 3 หลายเดือนก่อน +1

    One day I hope it comes back full circle and people would just use jquery again and learn how the plugin system worked.

  • @sylarfx
    @sylarfx 3 หลายเดือนก่อน +2

    there is no free lunch with any tech, btw with the memory issue that you day on railway, have you tried to profile it? or just use pm2-runtime to restart the container when it reaches too much usage

  • @MrHamsterbacke756
    @MrHamsterbacke756 3 หลายเดือนก่อน +1

    You can use css to only show some element if your list has no children.

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

    Which backend technology do yo suggest to learn as a frontend developer to be a fullstack developer? Python , Go or Nest.js itself ?

  • @al3030
    @al3030 3 หลายเดือนก่อน +1

    I’m using plain react with go. Love go, it’s simplicity and speed. Htmx is definitely not mature for production-level apps. Will you stick to go?

    • @WebDevCody
      @WebDevCody  3 หลายเดือนก่อน +2

      I like go, but ultimately I’m trying to be as productive as possible and I don’t think this stack is it

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

    Been using pocketbase as extended framework + astro js and svelte with client islands, man what a beautiful stack, it feels you are not missing anything

  • @OS-Advertising
    @OS-Advertising 2 หลายเดือนก่อน

    just reload the page and use url params to display things conditionally

  • @OhDevBeard
    @OhDevBeard 3 หลายเดือนก่อน +2

    Creating an aspnet core project using HTMX and Alpinejs. Keep running into antiForgery errors whenever I submit forms :rip:

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

    I doubt Neovim would solve the issue the "Go to definition" issue you described. I suspect it's an issue with the language server implementation of Templ which would affect all editors.

  • @antidegenerates7449
    @antidegenerates7449 3 หลายเดือนก่อน +1

    I appreciate if you tell us honest opinion after all, without looking at other "influencers" about this crap. Because this getting ridiculous and harmful. I feel sorry for newbies getting brainwashed by folks telling them to use HTMX.

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

    Hey Cody! I'm loving your newest videos. I wanted to ask, I saw that you are using Railway for hosting your apps. Any advice on how to backup the databases there?

    • @WebDevCody
      @WebDevCody  3 หลายเดือนก่อน +1

      There is a template which you can use to backup your Postgres database to s3 if you want

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

      @@WebDevCody Thanks! Do you mind sharing the link if you have it?

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

    If ur using the native go templating library to serve ur trmpates, the file extension can be html. I just make mine .html instead of .tmpl and that solves the intellisense issue mostly

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

    I think there is no need to panic when id not found. Overall nice progress 👍🏻. You tha best

  • @picklenickil
    @picklenickil 3 หลายเดือนก่อน +1

    It's a major step down from nextjs dev experience! It's safe to say htmx is in its infancy

  • @BSimone95
    @BSimone95 3 หลายเดือนก่อน +2

    I admit I haven't invested much time to learning htmx either, but I also had the impression that it was a step back in term of developer experience compared to a traditional js frontend.
    Maybe that goes away with more experience though

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

    JSX/TSX feels great with HTMX. You might like it a little better with Hono or Elysia

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

      I believe it

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

    This feels like code that I wrote over a decade ago... and the reason why I learned react. That didn't actually feel that simple, what would a medium size app look like? Or am I just stuck in typescript brain and don't get it...

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

    As someone who hasnt done any traditional server rendered stuff i really struggled with htmx so im glad im not the only one. I tried using it with astro as i gave up with the poor experience of templ but even in JS land its been pretty rough and slow going

  • @paulroque4179
    @paulroque4179 3 หลายเดือนก่อน +1

    Another issue is that you are not using hx-select. Your swaps are too granular. You don't need to have small pieces of UI that you manually replace here and there. Try to have bigger UI components that you can either swap the whole thing or just a piece of it using hx-select. You are still approaching it from a data-driven approach it seems.

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

    I'm planning to use react SSR with Rust/Go instead of HTMX. It would increase my speed of development and keep resource usage low once you build out the react app and not use V8/bun.
    Maybe that's something that would help make the transition easier?

    • @julianlindner1568
      @julianlindner1568 3 หลายเดือนก่อน +1

      If you are using SSR React you will be using a lot of resources in V8/bun, because your server running React is where most of your performance will go

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

      @@julianlindner1568 Not if you build the react project and use go/rust as the server to render things in SSR. V8/bun is only used during development.

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

    Have you thought or tried using html with python with fastapi and jinja2 for template rendering? I’m curious to try Django next but just want to know if you had any thoughts on it?

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

      Htmx *

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

      I’m not a big python fan to be honest

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

      @@WebDevCody ah I see is there a particular reason or just preference?

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

    The entire time I've been using this stack, I've been wishing for some multi-language lsp to exist that would have go to definition for htmx tags, same thing for templ templates. But I wouldn't work on it, because I'm lazy and I don't understand it.

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

    Neovim user here, temple lsp doesn't work well either in neovim. It's something that has to be addressed in general. The gD or go to Definition or go to reference or what ever does make sense to me that goes to the actual go file and not the temple one, I don't have much of a problem with that, not ideal but meh. But the suggestions that an lsp would be suggesting, are definitely needed and missing.

    • @hamm8934
      @hamm8934 3 หลายเดือนก่อน +1

      Try updating your Templ cli and lsp. They fixed this recently in Neovim around June I think. If you still have problems, just bind restarting your Templ LSP (restarts effectively instantly) and it should go to the correct gd.

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

    could you try pocketbase (extendable with go) + react to see how the DX and everything go? I like htmx, but building a lot of components that react community already had is a bit too much for me.

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

      What does pocketbase give me? I don’t get it

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

    Thanks for the overview. It seems that DX is not that good for making rich UX-friendly frontend 😢
    IMHO, it suits the ToDo list like frontend development only.

    • @rand0mtv660
      @rand0mtv660 3 หลายเดือนก่อน +1

      I think it's fine for basic CRUD apps or internal/admin applications where you don't want to overcomplicate things. I don't see anything more complicated than that being a nice experience to build this way, with this stack.
      The more important thing is to know when to reach for something like HTMX and when to reach for something like React (or Next.js).

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

    Kinda wonder how easy is it to make reusable components with a templating engine? For example, a button component that has dynamic optional attributes applied or dynamic optional classes applied. Most examples I see just use something like a normal html button element. Wonder how hard is it to create a button component with some base classes applied, but consumers of the button component could optionally apply additional classes as arguments to the button component like you can do in most spa apps?

    • @Zipp3rZero
      @Zipp3rZero 3 หลายเดือนก่อน +1

      You can style different buttons and pass in what kind of button you want via properties. Furthermore you can pass in on demand customization that gets appended to class. (With tailwind ofc)

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

      ​@@Zipp3rZero Is that the spread attributes in templ?

  • @BobKane-g6x
    @BobKane-g6x 3 หลายเดือนก่อน

    I'm just curious-are you moving faster and writing less code with this stack compared to Next.js?

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

      Moving slower right now, but honestly it’s mainly because the tooling around templ and htmx isn’t the best. Like air reloading with the proxy freezes up constantly forcing me to close my browser tab. Go is very verbose compared to node which is a pain

  • @siya.abc123
    @siya.abc123 3 หลายเดือนก่อน

    Lol yeah the dev experience of building web apps in Go takes a hit when coming from Nextjs. Thats why I still use next on frontend and proxy all /api/ to my Go echo backend

    • @z-aru
      @z-aru 3 หลายเดือนก่อน

      This, the proxy ssr is always my go to, if I want to optimize SEO related things

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

      when you proxy like this, do you feel your app takes a hit since now you got two server requests?
      Really curious what the real life experience with this pattern is since I like meta frameworks for their frontend conventions but hate their backend system

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

    Thanks!

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

      You bet! Thanks for the super comment!

  • @flor.7797
    @flor.7797 3 หลายเดือนก่อน +1

    I’m so much slower using htmx and everything looks like 💩

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

    Please try EHTML

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

    I commented back then that I wouldn't like to see HTMX videos, but this is not bad because you talk about it normally without trying to make the tool look good or hype it 👍👍.

  • @franciscopiaggio4278
    @franciscopiaggio4278 3 หลายเดือนก่อน +1

    It looks ugly. I know because it's probably a lot of new stuff for me, but that syntax looks harder even if you get used to it

  • @ac130kz
    @ac130kz 3 หลายเดือนก่อน +1

    same, I'm thinking state management is a HUGE pain. Imagine writing all the dependencies update logic and syncing it with the frontend

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

    htmx would have been a lot more fun and interesting to work in a world where we only had vanilla javascript or jquery. The fact that we don't have to write a lot of javascript would have been way more appealing then. With the all the frameworks present today and more coming in every day it does feel like one needs to change their mental model when using htmx for anything more serious than a todo list. You need to think to all the html you will return with each request rather than just worry about data, so the entire UI becomes dynamic rather than just the data.

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

    Use AlpineJS

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

    What a nightmare! It’s like buying a 1992 car while having they money for the 2024 version of it. You pay for commodity somehow… either you get the more performant version but with a horrible DX or you use the extra MBs of memory and get a better work flow…
    So happy with react… and the extra resources used by it in more than willing to accept. Nowadays, that’s not even that big of a factor

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

    next.js till i die

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

    Same issues here

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

    inb4 someone suggests htmx would be perfect if it just had a version of useState, then slowly htmx just becomes another complicated javascript framework

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

    I think you are using HTMX for the wrong use case. this project seems like a strong case for Next or SPA with an API backend. I see HTMX as any other template language like Jinja or mustache. it is intended for displaying simple stuff which don't need much interactivity. i would actually use this for a landing page that need some dynamic content. Not for this.

  • @hightidesed
    @hightidesed 3 หลายเดือนก่อน +1

    this seems miserable, i guess this is your learning experience for figuring out, devex is worth paying for, be it memory or performance

  • @MrHamsterbacke756
    @MrHamsterbacke756 3 หลายเดือนก่อน +1

    Templ seems like JSX just worse.

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

    Unfortunately there is always a trade-off between stacks

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

    "...still a lot of developers who use vscode"

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

      Its a bug theyre definitely going to fix. Its not like that for me in nvim

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

    I warned you, friend! You will end up Grepping substrings of those templates, because even Go is a golden treasure in my opinion, the majority of the community are Neanderthals who loves to work with sticks and stones, and that's why there's not enough people to advance with the dev. Tooling like in JS land

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

      I thought go devs were supposed to be smart? Why are they not making the tooling?

    • @danielmajer1648
      @danielmajer1648 3 หลายเดือนก่อน +1

      @@WebDevCody They are smart indeed, but you know those cousins who can solve Rubik cube under 5 seconds, but needs you to cut up their chick nuggets into triangles otherwise they don't eat?

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

      @@danielmajer1648 ☠️ 😆

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

    ngl. this specific framework looks awful to dev with

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

    I don't understand why you're doing a network request to validate a password regex. You shouldn't think of HTMX as a tool to completely replace client-side interactivity. If you are mutating state then you should save the state in a DB and use HTMX to replace the new UI resulting from the state change. Use whatever client library you want for interactivity that doesn't mutate state.

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

      You don’t understand why I’m validating a password on the backend?

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

    "Do this for me or I'll whine that you're alienating me"

    • @funkdefied1
      @funkdefied1 3 หลายเดือนก่อน +9

      “Make better tooling for this, or others won’t want to use it”

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

      neovim sucks

    • @z-aru
      @z-aru 3 หลายเดือนก่อน

      Geez, now I wonder why this stack isn't really popular 😮‍💨

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

    best ides where things just work are from jetbrains. Dont know tho if they have an ide for go

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

      They do it’s called GoLand. It’s great! Never used templ with it though

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

      GoLand is excellent

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

      They do -> GoLand