▲ 341 ▼ reject modernity embrace htmx (iusearchlinux.fyi) submitted 3 years ago by soeren@iusearchlinux.fyi to c/programmerhumor@lemmy.ml 49 comments fedilink hide all child comments
[–] Dirk@lemmy.ml 35 points 3 years ago (6 children) I thought HTMX was a joke, but they're serious. permalink fedilink source hideshow 6 child comments replies: [–] soeren@iusearchlinux.fyi [S] 14 points 3 years ago (1 child) I am serious permalink fedilink source parent hideshow 1 child comment replies: [–] ledtasso@lemmy.world 9 points 3 years ago and don't call me Shirley. permalink fedilink source parent [–] ShortFuse@lemmy.world 5 points 3 years ago* (3 children) C'mon, what's not to like about bonding every UI action against a remote server? What's a few milliseconds anyway? I'm sure it works fine over cellular networks. I mean, it works great on my dev machine! /s permalink fedilink source parent hideshow 3 child comments replies: [–] soeren@iusearchlinux.fyi [S] 3 points 3 years ago (2 children) What kind of you UI action are you talking about? Most of the time you need data from the server and if you want have some animations with css it will be client side anyway also it's not like you cannot write JS. I mean downloading thousands of lines of js for some web framework over cellular does not sound better tbh. permalink fedilink source parent hideshow 2 child comments replies: [–] ShortFuse@lemmy.world 3 points 3 years ago* (last edited 3 years ago) (1 child) That's a strawman. I don't need 1000s of lines of JS to swap a UI. I can do it in 1 line with Web Components: oldElement.replaceWith(newElement). And those modules can be lazy loaded like anything else. This is just DX in name of UX, which is almost never a good idea. And maybe you're fine with throwing a server computation for every single UI change, but I'm not made of money and I much rather have stuff on a CDN. permalink fedilink source parent hideshow 1 child comment replies: [–] soeren@iusearchlinux.fyi [S] 2 points 3 years ago I think i missunderstood you I thought you were arguing for modern web frameworks. Nothing wrong with replacing elments with js and not sending it as a request to a server I would do the same for stuff that doesn't need data from the server. If you are really worried about latency you could throw your code in a cloudflare worker but I don't think it matters that much average loading time of websites on desktop is 2.5 seconds . So it doesn't really matter if the server is on the other site of the world latency will not be the biggest factor. permalink fedilink source parent
[–] soeren@iusearchlinux.fyi [S] 14 points 3 years ago (1 child) I am serious permalink fedilink source parent hideshow 1 child comment replies: [–] ledtasso@lemmy.world 9 points 3 years ago and don't call me Shirley. permalink fedilink source parent
[–] ledtasso@lemmy.world 9 points 3 years ago and don't call me Shirley. permalink fedilink source parent
[–] ShortFuse@lemmy.world 5 points 3 years ago* (3 children) C'mon, what's not to like about bonding every UI action against a remote server? What's a few milliseconds anyway? I'm sure it works fine over cellular networks. I mean, it works great on my dev machine! /s permalink fedilink source parent hideshow 3 child comments replies: [–] soeren@iusearchlinux.fyi [S] 3 points 3 years ago (2 children) What kind of you UI action are you talking about? Most of the time you need data from the server and if you want have some animations with css it will be client side anyway also it's not like you cannot write JS. I mean downloading thousands of lines of js for some web framework over cellular does not sound better tbh. permalink fedilink source parent hideshow 2 child comments replies: [–] ShortFuse@lemmy.world 3 points 3 years ago* (last edited 3 years ago) (1 child) That's a strawman. I don't need 1000s of lines of JS to swap a UI. I can do it in 1 line with Web Components: oldElement.replaceWith(newElement). And those modules can be lazy loaded like anything else. This is just DX in name of UX, which is almost never a good idea. And maybe you're fine with throwing a server computation for every single UI change, but I'm not made of money and I much rather have stuff on a CDN. permalink fedilink source parent hideshow 1 child comment replies: [–] soeren@iusearchlinux.fyi [S] 2 points 3 years ago I think i missunderstood you I thought you were arguing for modern web frameworks. Nothing wrong with replacing elments with js and not sending it as a request to a server I would do the same for stuff that doesn't need data from the server. If you are really worried about latency you could throw your code in a cloudflare worker but I don't think it matters that much average loading time of websites on desktop is 2.5 seconds . So it doesn't really matter if the server is on the other site of the world latency will not be the biggest factor. permalink fedilink source parent
[–] soeren@iusearchlinux.fyi [S] 3 points 3 years ago (2 children) What kind of you UI action are you talking about? Most of the time you need data from the server and if you want have some animations with css it will be client side anyway also it's not like you cannot write JS. I mean downloading thousands of lines of js for some web framework over cellular does not sound better tbh. permalink fedilink source parent hideshow 2 child comments replies: [–] ShortFuse@lemmy.world 3 points 3 years ago* (last edited 3 years ago) (1 child) That's a strawman. I don't need 1000s of lines of JS to swap a UI. I can do it in 1 line with Web Components: oldElement.replaceWith(newElement). And those modules can be lazy loaded like anything else. This is just DX in name of UX, which is almost never a good idea. And maybe you're fine with throwing a server computation for every single UI change, but I'm not made of money and I much rather have stuff on a CDN. permalink fedilink source parent hideshow 1 child comment replies: [–] soeren@iusearchlinux.fyi [S] 2 points 3 years ago I think i missunderstood you I thought you were arguing for modern web frameworks. Nothing wrong with replacing elments with js and not sending it as a request to a server I would do the same for stuff that doesn't need data from the server. If you are really worried about latency you could throw your code in a cloudflare worker but I don't think it matters that much average loading time of websites on desktop is 2.5 seconds . So it doesn't really matter if the server is on the other site of the world latency will not be the biggest factor. permalink fedilink source parent
[–] ShortFuse@lemmy.world 3 points 3 years ago* (last edited 3 years ago) (1 child) That's a strawman. I don't need 1000s of lines of JS to swap a UI. I can do it in 1 line with Web Components: oldElement.replaceWith(newElement). And those modules can be lazy loaded like anything else. This is just DX in name of UX, which is almost never a good idea. And maybe you're fine with throwing a server computation for every single UI change, but I'm not made of money and I much rather have stuff on a CDN. permalink fedilink source parent hideshow 1 child comment replies: [–] soeren@iusearchlinux.fyi [S] 2 points 3 years ago I think i missunderstood you I thought you were arguing for modern web frameworks. Nothing wrong with replacing elments with js and not sending it as a request to a server I would do the same for stuff that doesn't need data from the server. If you are really worried about latency you could throw your code in a cloudflare worker but I don't think it matters that much average loading time of websites on desktop is 2.5 seconds . So it doesn't really matter if the server is on the other site of the world latency will not be the biggest factor. permalink fedilink source parent
[–] soeren@iusearchlinux.fyi [S] 2 points 3 years ago I think i missunderstood you I thought you were arguing for modern web frameworks. Nothing wrong with replacing elments with js and not sending it as a request to a server I would do the same for stuff that doesn't need data from the server. If you are really worried about latency you could throw your code in a cloudflare worker but I don't think it matters that much average loading time of websites on desktop is 2.5 seconds . So it doesn't really matter if the server is on the other site of the world latency will not be the biggest factor. permalink fedilink source parent