Todo App in HTMX

  Рет қаралды 10,337

Unconventional Coding

Unconventional Coding

Күн бұрын

In this video I create an awesome todo app with HTMX and PHP
GitHub: github.com/unc...
Support: buymeacoffee.c...
Consultations: www.buymeacoff...
Memberships: www.buymeacoff...
00:00 Include HTMX library
00:35 Adding todos to list
03:00 Creating a database
04:01 Save todos to database
05:42 Load todos from database
08:43 Add autoloader
09:38 Marking todos done
17:21 Marking todos undone
19:07 Task counter
22:43 Category list
24:34 Category todo counter
29:11 Error handling / flash messages
22:41 Resetting the form
38:20 Test everything
39:11 Filtering by category
48:37 PHP is stoopid
49:02 Filtering by category
50:04 Outro

Пікірлер: 38
@wolfgangschmidt2503
@wolfgangschmidt2503 8 ай бұрын
I like that you are intentionally making mistakes from time to time, that's a great way to get to know how htmx works.
@unconv
@unconv 8 ай бұрын
Yes, intentionally 🙄
@vlmo
@vlmo 9 ай бұрын
This PHP code was so nostalgic!
@versionoriginal
@versionoriginal 4 ай бұрын
Perfect HTMX introduction to PHP developers!! Thanks! 😉
@nathanstanfordsr
@nathanstanfordsr 9 ай бұрын
I enjoyed your coding in PHP as well as HTMX
@unconv
@unconv 9 ай бұрын
Thanks! :)
@VladimirMiroshnichenko64
@VladimirMiroshnichenko64 4 ай бұрын
never write php code like this.....I beleive this is only for demo purposes
@trentonwallace667
@trentonwallace667 7 ай бұрын
I like how Fireship's thumbnails have become a meme
@cuongphan8881
@cuongphan8881 Ай бұрын
You are so professional 🎉
@unconv
@unconv Ай бұрын
Thanks 😄
@voyager_ll
@voyager_ll 7 ай бұрын
Good length of the video and depth of the topic, thanks.
@LeandroPocai
@LeandroPocai 4 ай бұрын
good explanation of htmx!
@liviubarburo
@liviubarburo 4 ай бұрын
Wow! This was perfect. Please do a video with a simple user registration/login in php, htmx and sqlite.
@Ehsan-the
@Ehsan-the 8 ай бұрын
I just got where the voice of old TTS engines has come
@unconv
@unconv 8 ай бұрын
It was me all along
@Ehsan-the
@Ehsan-the 8 ай бұрын
@@unconv yeah, you've got a nice voice, like to listen.
@sanjayojha1
@sanjayojha1 9 ай бұрын
HTMX is cool, but we have almost similar tool, for example Livewire from Laravel, Hotwire from rails, and LiveView from Phoenix. Though HTMX is independent and can be used with any server side language.
@unconv
@unconv 9 ай бұрын
I'll have to check those out too, thanks
@vikingthedude
@vikingthedude 9 ай бұрын
I heard that liveview is even better because it’s kinda like react’s automatic dom diffing, but at the server
@televizor_9726
@televizor_9726 9 ай бұрын
NIce, now I understand why remixjs is much more convenient
@unconv
@unconv 9 ай бұрын
I guess I'll have to try it out then :)
@inteliconn995
@inteliconn995 Ай бұрын
Thanks!
@OlukayodeFadairofatherhero
@OlukayodeFadairofatherhero 9 ай бұрын
Thanks for this boss. Please do not forget the update you promised to do on the chatgpt library that will enable us change the maximum toke and temperature. Thanks
@nestor-martinez
@nestor-martinez 9 ай бұрын
Definitely read it as "everything" app.
@philanthropist91
@philanthropist91 7 ай бұрын
loved your video, i must say HTMX looks promising, Im just wondering if we can go big using just HTMX and no other frontend framework
@CristianKirk
@CristianKirk 3 ай бұрын
I'm really loving HTMX, but things can get pretty messy like it happened to you by the end of the video. Oh well, it wouldn't be programming if it didn't get messy I suppose. Thanks for the tutorial.
@DesignPro101
@DesignPro101 2 ай бұрын
I dont thing reactjs or nextjs can be replace by htmx because every one have good habit of js frameworks . At this point can we really make fully single page app in htmx ??
@viruxer
@viruxer 3 ай бұрын
Underscores in a URL is a no no. It's wrong to leave unneeded spaces on function parameters. You should use for inline echos. It doesn't make sense to have a brace block if you're only going to have one statement. It's just an unneeded line making the file bigger in view. The same goes for pdo placeholder parsing. I don't even know why you would hash the category...
@unconv
@unconv 3 ай бұрын
What's wrong with underscores in URLs? Spaces between function parameters are used in WordPress coding standards, which I'm used to, like and therefore use. Shorthand inline echoes are also generally not preferred and neither are oneliner ifs. Not sure what you find wrong with my PDO placeholders. Maybe that they're on separate lines? That's clearer when doing git diffs and using parameter names instead of question marks is less error prone. The category hash is a hack since I was lazy to implement IDs for the categories. And I hash it because the category name by itself might contain spaces or special characters that are not allowed in CSS classes. Thanks for the comments :)
@TomislavMiletic
@TomislavMiletic 7 ай бұрын
👏👏👏
@abishektamilan9733
@abishektamilan9733 Ай бұрын
Need more htmx and vanilla php
@Noritoshi-r8m
@Noritoshi-r8m 9 ай бұрын
Curious tech
@dexterliu1214
@dexterliu1214 7 ай бұрын
I give up using HTMX after watch this video.
@3relativesGroup
@3relativesGroup 9 ай бұрын
Hi, It is an amazing htmx explanation. Can you provide the source code link, please ? Thank you!
@unconv
@unconv 9 ай бұрын
Thanks! GitHub link is now in the description :)
@OM-bs7of
@OM-bs7of 8 ай бұрын
Dude, you need to work on your flow. You might not realize it but you're making excessive use of the word "so". Instead of saying "so" so much try pausing a little between sentences.
@unconv
@unconv 8 ай бұрын
I didn't realize it but now it's all I hear lol. Thanks
@nykowow
@nykowow 4 ай бұрын
it's an amazing framework but they need to implement routing
Creator of HTMX Talks HTMX
1:02:41
ThePrimeTime
Рет қаралды 176 М.
Build a Multi-Tenant B2B App With BUN and HTMX - FULL COURSE
4:05:24
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 5 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 184 МЛН
Logo Matching Challenge with Alfredo Larin Family! 👍
00:36
BigSchool
Рет қаралды 15 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 1,6 МЛН
Go, Alpine.js & HTMX - Building a Small Todo App ( Golang )
26:21
Raylib C/C++ Tutorial:   Enemies, A.I.,  and Defeating Enemies
11:13
PHP on the frontend! No more Javascript!
14:47
Aaron Francis
Рет қаралды 120 М.
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 321 М.
Introducing The GoTTH Stack - Go, Tailwind CSS, Templ & HTMX
28:29
Why We Switched From Svelte Kit To Golang + HTMX
9:54
Anthony GG
Рет қаралды 76 М.
HTMX: 3 IRL Use Cases
18:33
ThePrimeTime
Рет қаралды 113 М.
Simple, Fast Frontends With htmx
1:21:49
PyCharm, a JetBrains IDE
Рет қаралды 47 М.
HTMX For React Developers in 10 Minutes
9:26
Jack Herrington
Рет қаралды 41 М.
Data recovery from MicroSD using PC3000 Flash & Spider Board 😎
1:01
Что за "голый" Андройд? #pixel #android
0:40
Не шарю!
Рет қаралды 825 М.
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 15 МЛН
ПОЧЕМУ МИКРОФОНЫ ИГРОВЫЕ? 🧐
0:46
KEKTAR
Рет қаралды 496 М.
Google Pixel 9/Pro/Fold Impressions: They've Finally Done It?
13:25
Marques Brownlee
Рет қаралды 6 МЛН