Django & HTMX - Optimistic Updates!

  Рет қаралды 3,070

BugBytes

BugBytes

Күн бұрын

Пікірлер: 37
@bugbytes3923
@bugbytes3923 20 күн бұрын
☕ Buy a coffee: ko-fi.com/bugbytes ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐
@aafan.kuware
@aafan.kuware 20 күн бұрын
appreciating your work isn't just enough.
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thanks a lot Aafan!
@aafan.kuware
@aafan.kuware 11 күн бұрын
@bugbytes3923 can you assist on django textfield, making it rich text editor, I used CkEditor5 and creates tables but that tables are overflowing on mobile device, tried customizing it but failed.
@zb9458
@zb9458 19 күн бұрын
Thank you Lyle!! Your videos on HTMX and Django are amazing
@bugbytes3923
@bugbytes3923 19 күн бұрын
Cheers! Glad you like them!
@Kabuki47
@Kabuki47 19 күн бұрын
Thanks a lot for the explanation of the new HTMX's technique, sir!
@bugbytes3923
@bugbytes3923 19 күн бұрын
No problem - thanks for watching!
@AmoahDevLabs
@AmoahDevLabs 19 күн бұрын
Amazing gist. Thanks for sharing.
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thanks mate!
@repotranstech
@repotranstech 20 күн бұрын
cool video as always
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thanks for watching!
@NilotpaulNandi
@NilotpaulNandi 20 күн бұрын
Great vid, thanks man 👍
@bugbytes3923
@bugbytes3923 19 күн бұрын
Cheers man!
@hakanbilgin6875
@hakanbilgin6875 17 күн бұрын
Thank you for video
@bugbytes3923
@bugbytes3923 14 күн бұрын
Thanks mate!
@seadude
@seadude 20 күн бұрын
So solid. Always clear as a bell. Thank you. Do you have a Django From Scratch series? Ideally, creating a CRUD app template. That would be awesome.
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thanks! I have some content that's in preparation for Django from Scratch, but I haven't worked on it for a while. I definitely want to do an intro-level course on Django in the future, though.
@seadude
@seadude 15 күн бұрын
@ Awesome, yeah, I’d pay for that! I’m tired of messing with streamlit when wanting to stay in the Python framework for the entire front/backend stack. I’m proficient in Serverless mid/backend but fairly clueless in best practices for PROD Frontends. Let me know how I can assist (serious).
@AdnanNazirAhmed
@AdnanNazirAhmed 12 күн бұрын
Thanks, very useful.
@bugbytes3923
@bugbytes3923 11 күн бұрын
Thanks a lot Adnan!
@MagnusAnand
@MagnusAnand 20 күн бұрын
💪💪
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thanks a lot!
@frameff9073
@frameff9073 20 күн бұрын
thank you
@bugbytes3923
@bugbytes3923 19 күн бұрын
Thank you for watching!
@plurallyplurally7948
@plurallyplurally7948 15 күн бұрын
How do you handle complex frontend state in HTMX? Do you have a video on that?
@djangodeveloper07
@djangodeveloper07 19 күн бұрын
great video, but for delete an item, no confirmation box ? i don't think so it's a good practice to allow users to delete items on a single click without any warning ? does htmx provide any attribute for that ? second can we add loading/spinner like Deleting..... because on live sites, query can take 1 or 2 seconds to execute.
@bugbytes3923
@bugbytes3923 19 күн бұрын
Good point, it's not shown in the video but you can use "hx-confirm" for confirming the delete on the browser. Spinners can also be added - check out the hx-indicator attribute for that.
@kennyPAGC
@kennyPAGC 12 күн бұрын
I'm not sure what's the point of the hx trigger header here (which btw I don't agree with this design because I lean for a more clear backend and frontend separation) since it could all be done with the response status code.
@JunHou-u4j
@JunHou-u4j 17 күн бұрын
why are you so cool man
@bugbytes3923
@bugbytes3923 14 күн бұрын
Haha not sure about that... :D Thanks though
@noob_coder001
@noob_coder001 20 күн бұрын
Please make a video working with htmx and using datatables library . In addition use hx-boost="true" with the datatable elements for tag its not working at the same time i got an duplicate datatable wrapper issue . 🥺 Please resolve my issuce man ,. Thanks in advance .
@codedjango
@codedjango 20 күн бұрын
In SPA's removing any element from the frontend before the server response is received may cause side-effects if its existence triggers any other event on the frontend...so I think "optimistic updates" are a big "NO" ....I think spinner would give an appropriate message to the user and also not add to the errors in the frontend...but thanks to showcase the optimistic updates anyways..
@legion_prex3650
@legion_prex3650 20 күн бұрын
not a big fan either to be honest.
@Jack-l8d7s
@Jack-l8d7s 19 күн бұрын
It’s just about use case. It’s pretty obvious that if an action triggers another event this probably isn’t the right option but for straightforward operations this is great!
@cagatay518
@cagatay518 18 күн бұрын
Let's call it cosmetic update. 😊
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 156 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 49 МЛН
The State of HTMX (2024)
15:36
HAMY LABS
Рет қаралды 9 М.
HTMX: 3 IRL Use Cases
18:33
ThePrimeTime
Рет қаралды 124 М.
HTMX and the View Transitions API
20:21
BugBytes
Рет қаралды 15 М.
uv - Ruff + Pytest Tool Management (in a FastAPI Project)
19:28
Django & HTMX App - Setup, Models and Management Command
25:35
HTMX - What they don't want you to know!
13:28
CoderOne
Рет қаралды 87 М.