I completed your React and Node.js tutorials and I have no words for thanks to you. I was struggling with node.js but you make it very simple , again , thanks a lot 😊.
It would be good to mention the upsides of generating some of the HTML on the server. Those include moving all the state management to the server so it is in one place. Also, the endpoints no longer need to be versioned since they are specific to the app, not shared like many JSON API’s are.
Hi, it was interesting Dave! I like the colors and design you've used on your website and your vedios on TH-cam and anything related to design, it doesn't bother eyes. 👍
Thanks for the tutorial. For others, if you get the error "'tsx' is not recognized as an internal or external command, operable program or batch file.", update npm and/or node.
A very useful explanation of the HTMX concept. As my weapon of choice is PHP (mainly Laravel framework) it is still useful, as I may use HTMX on my next project. Thanks - cheers
I'm somewhat excited about that htmx stuff and might explore it. but don't have any experience on that "backend-stuff". I thought I could do it with php or something. I'll see how it goes. x)
Dave is a real JS ninja :) My question is: do you have any experience with .NET and C#? And what do you think about this technology. I think if you could explain this - it would be super popular.
Oh my lord... I did this type of thing decades ago using jQuery Ajax where I'd hackishly return HTML content and inject to html. Then the industry moved to JSON paylods and having some UI framework render the data. Now we are going back to spitting back HTML content? I hope you're not planning on making APIs to some of your data as it seems like you might be doing double work (one end point to get /orders and return JSON... another for /orders to get order list for your front end).
@jinglyjones1677 the beauty of json is that its agnostic to the UI rendering it. It is up to the consumer on what they want to do with the data. If you spit html out, you're forcing them to use your html structure.
@@Xaero324 yeah I understand that. I'm wondering if a solution to your question is to have an API service returning Json (agnostic to usage). Direct calls to API hit this service and return Json. Then you also have a small UI server which calls the API, receives Json and produces HTML.
Maybe it’s just me, but I’m not understanding how this helps to make an application that can scale well? It seems like your backend code is now returning html or jsx elements that would have to be maintained separately from the frontend code. It’s an odd way to try to maintain an application for a large team development team I think, and makes it tough to keep track of what is the front ends responsibility vs the backend. Great video explanation either way, but I don’t necessarily see the advantage of making those two parts closer together in this way for a growing company. I understand that it’s meant for simple low traffic environments, though I think the re tooling for a scalable application is worth starting with a framework imo
It's much easier to scale using the HTMX approach because most of the code resides on the server and doesn't need to be sent to the client. Additionally, the server can use a more performant language like Go, which scales much better. This approach is quite similar to React Server Components, but simpler.
Hello, I know this has nothing to do with this video but youve helped me alot wiht videos and im lost so I want to shoot my shot :)... I have coded something in python which I was able to extract to an .exe but I want to send to an user for hhim to use. Which I cant becasue windows deffender detects it as malware and always blocks the download at the user end. I dont want him to download python or put off all anti viruses..
You might consider I've had a lot of requests for it. And I'm not an influencer. I'm an educator who loves code and learning new things. I don't push anything.
@@DaveGrayTeachesCode htmx is not a standard, it doenst solve anything and was made by a nobody. your shiny framework will die just like the rest of them, but hey you got your views 🤷this is why I stick to backend only, because stupid shit like this
I completed your React and Node.js tutorials and I have no words for thanks to you.
I was struggling with node.js but you make it very simple , again , thanks a lot 😊.
I've been waiting to learn HTMX from you. Great content, as always, with clear explanations and examples😊
the timing is just right. thank you so much dave.
Thanks Dave. Hono sounds interesting and a vid on it would be great.
Again one of the awesome tutorial. Thanks Dave 😊
Hey! Tuesday Dave! 🤘
Forgot to mention, Yes! absolutely do a Hono tutorial.
Htmx is really awesome.❤ It removes the headache of all js frameworks. Thanks Dave.
That's good. Looks like a great feature.Thank you Dave
Just the kinda guy I was waiting to learn HTMX from!!! LFG sir.
Sitting here learning Elysia as you posted this. Perrrrfect!
It would be good to mention the upsides of generating some of the HTML on the server. Those include moving all the state management to the server so it is in one place. Also, the endpoints no longer need to be versioned since they are specific to the app, not shared like many JSON API’s are.
Hey i liked some of your videos of advance topics in javascript, keep doing more videos like those please :D
Glad you like them!
finally, an htmx tut from you. thanks!
Thank you Dave this is a great first video on HTMX. I just find out a little bug in the backend part. PR added to your project :)
Hi, it was interesting Dave!
I like the colors and design you've used on your website and your vedios on TH-cam and anything related to design, it doesn't bother eyes. 👍
Thanks!
You are great at what you do. I apprecaite you!
Thank you so much
More video on htmx
Thanks for the tutorial. For others, if you get the error "'tsx' is not recognized as an internal or external command, operable program or batch file.", update npm and/or node.
A very useful explanation of the HTMX concept. As my weapon of choice is PHP (mainly Laravel framework) it is still useful, as I may use HTMX on my next project. Thanks - cheers
Nice, thx Dave 👌
I haven't touched htmx yet but man this looks super easy to implement with Firebase functions in a nodejs environment.
Welcome back Dave!
Very much needed ❤
Nice tutorial. How would I set the todo items to browser storage?
I'm somewhat excited about that htmx stuff and might explore it. but don't have any experience on that "backend-stuff". I thought I could do it with php or something. I'll see how it goes. x)
Dave is a real JS ninja :)
My question is: do you have any experience with .NET and C#? And what do you think about this technology. I think if you could explain this - it would be super popular.
I have limited experience with it. My oldest son prefers C#. It has a lot of similarities to TypeScript because they share the same creator.
I love your videos, thanks for making this tutorial. I have a request, can you make a tutorial of (GoLang+HTMX) simple full stack project.
I haven't covered GoLang yet. Good suggestion!
Great video teacher
It would be great if u make video hono . Btw Awesome video as always Dave
Oh my lord... I did this type of thing decades ago using jQuery Ajax where I'd hackishly return HTML content and inject to html. Then the industry moved to JSON paylods and having some UI framework render the data. Now we are going back to spitting back HTML content? I hope you're not planning on making APIs to some of your data as it seems like you might be doing double work (one end point to get /orders and return JSON... another for /orders to get order list for your front end).
I'm wondering how terrible it'd be to have your UI web server query your API, receive Json, inject to html for the the front end... ?
@jinglyjones1677 the beauty of json is that its agnostic to the UI rendering it. It is up to the consumer on what they want to do with the data. If you spit html out, you're forcing them to use your html structure.
@@Xaero324 yeah I understand that. I'm wondering if a solution to your question is to have an API service returning Json (agnostic to usage). Direct calls to API hit this service and return Json.
Then you also have a small UI server which calls the API, receives Json and produces HTML.
Would love to see Hono tutorial
Maybe it’s just me, but I’m not understanding how this helps to make an application that can scale well? It seems like your backend code is now returning html or jsx elements that would have to be maintained separately from the frontend code. It’s an odd way to try to maintain an application for a large team development team I think, and makes it tough to keep track of what is the front ends responsibility vs the backend. Great video explanation either way, but I don’t necessarily see the advantage of making those two parts closer together in this way for a growing company. I understand that it’s meant for simple low traffic environments, though I think the re tooling for a scalable application is worth starting with a framework imo
It's much easier to scale using the HTMX approach because most of the code resides on the server and doesn't need to be sent to the client.
Additionally, the server can use a more performant language like Go, which scales much better.
This approach is quite similar to React Server Components, but simpler.
hono video please, AND DAMM THANK YOU FOR THIS HTMX TODO
Thanks
I will learn it 🎉
Is Hono a backend framework?
Did you do the hone tutorial ....?
Do you write your code this clear the first time or you redo it at the end?
Yes for the hono video
This was the first time. However, it is always good to go back and clean up code.
is htmx sufficient to not use axios anymore?
You will not be using axios with HTMX.
Please, please, please create some project-based tutorials with HTMX.
It sounds great but it feels like it is reinventing somehow php by depending on a server. Edit: I love your videos. thanks a lot
please do hono and maybe how to deploy it on a server with htmx? thanks in advance..
Thanks for your tutorial.
I think Astro is better choice than HTMx. Please correct me if I’m wrong.
They can be used together. You don't have to choose one or the other.
The great content.
Have you grown your hair long? I like them
Hello, I know this has nothing to do with this video but youve helped me alot wiht videos and im lost so I want to shoot my shot :)... I have coded something in python which I was able to extract to an .exe but I want to send to an user for hhim to use. Which I cant becasue windows deffender detects it as malware and always blocks the download at the user end. I dont want him to download python or put off all anti viruses..
This could be a good discussion for my Discord that is linked in the video description. Other Python users will also be able to comment.
GO + HTMX is the best
5:50 Yes please that would be great.
it's great .
🎉Tnks
Why even distinguish between Frontend and backend? Just put everything in backend - even the index.html.?
My only question is, how can I run tests on HTMX ?
Great
Wait why is it a "monorepo" when there are 2 things, a backend and a fontend, I thought mono means 1 of something...
Lol that's legit question. There is one repo. That's the mono part. If using TypeScript it can share types between the two separate projects within.
bun bun bun
One bun will get it done lol... But yes, you could use it instead of node.
Thank you for the tutorial. First time hearing about it and I have to say…it feels yucky to me 🤢
I don’t like it lol
It does seem to have a polarizing effect. Either devs really like it or they really don't lol.
@@DaveGrayTeachesCode all love over here. If you like it more power to you. I don’t judge. Let them choose the right tool for them ✊🏾
Thanks again!
I am the first😅
unsubbed i dont care about another stupid framework these influencers try to push when they run out of content
You might consider I've had a lot of requests for it. And I'm not an influencer. I'm an educator who loves code and learning new things. I don't push anything.
@@DaveGrayTeachesCode htmx is not a standard, it doenst solve anything and was made by a nobody. your shiny framework will die just like the rest of them, but hey you got your views 🤷this is why I stick to backend only, because stupid shit like this
index.tx - line 38
where does this closing parenthesis come from?