I wish Anton saw how many LOCs Todo app in Svelte has.
@RawCoding Жыл бұрын
Alright there big man, write it up and drop a link to source. Make sure it has a backend to persist state.
@nark4837 Жыл бұрын
Can this be combined with Razor, to use similar to JSX components?
@carlosjosejimenezbermudez9255 Жыл бұрын
1 year ago I built an app with AlpineJS and HTMX, it was an amazing experience even if a little hard to figure out at first.
@yourockst0ne Жыл бұрын
Backend devs are trying to kill JS/TS by any means necessary 😂. If it's not by using web assembly, it's by going back to stateless html generated by the backend. Frontend devs are replying with serverside components and server actions aka Nextjs. And others are escaping js quirks with compilers/transpilers aka svelte or imba
@zakraw Жыл бұрын
World Web War
@RawCoding Жыл бұрын
We have to come together!
@SharafMansour Жыл бұрын
2 years ago I was team react. Last year I became team svelte. Now I am team SolidJS. Shouldn’t everyone just create their own framework or something 🤣
@yourockst0ne Жыл бұрын
Hey 👋 @@SharafMansour do you use the SolidStart meta-framework with it or do you still use a c# backend? Btw before React, you were team Blazor 😉
@SharafMansour Жыл бұрын
@@yourockst0ne I still use blazor, and I am currently learning solid start. I am also up to date with svelte kit. The idea of naming the file +page.server.JS makes the code run server side is pretty insane
@nanaalfy Жыл бұрын
What's the value this brings? All I see is another library to abstract HTML, CSS and JS. What am I missing? I genuinely want to know.
@RawCoding Жыл бұрын
if you have a json string, you need to parse it to work with it. HyperTextExpression allows you to express html in data structures which can be manipulated (as if you parsed html in to an XmlDocument) why that's useful? I can build a skeleton of a website, pass it through different functions and that will generate themed variations. data data data When I picked up htmx, I didn't want to go back to thinking in terms of razor pages & handlers & partials etc... I wanted to generate html and return it from minimal api endpoints.
@nanaalfy Жыл бұрын
@@RawCoding thanks for this feedback. Much appreciated. I'll read more about it
@nicholaspreston9586 Жыл бұрын
I might try this library out. Thank you. It could save me a lot of time.
@RawCoding Жыл бұрын
Let me know how it goes
@leresche2816 Жыл бұрын
It is inspired by Flutter?
@RawCoding Жыл бұрын
hiccup
@yourockst0ne Жыл бұрын
@@RawCoding I see why he's asking, but I see what you are doing. It's like the ".NET MAUI Markup Community Toolkit" with their extension methods, they are trying to get rid of XAML to write UIs.
@yourockst0ne Жыл бұрын
I have (jQuery + MVC) PTSD looking at this
@RawCoding Жыл бұрын
it was the best
@yourockst0ne Жыл бұрын
@@RawCoding are you building something like the the vue h() vnode constructor to be able to write a new templating syntax for c# ?
@nic_s3385 Жыл бұрын
Well... seems I'm not that crazy. I've been working on and off on generating HTML and what should happen when the user interacts with that HTML server side using just C# for a few months now. I was using JQuery, but I want to try and not use any JS or C# libraries so it would be easy to transfer the idea/logic over to any language. My goal is to specify what I want and what it should do in code using simple objects. Then have it generate the whole page at load or just bits and pieces as the user uses the app. Much like you are doing here. This has proved to be really fast thanks in large part to not having a framework and no templates which rely on some form of find and replace logic. I just define what I want in code and it gets generated using the dumbest and simplest way I can think of without the use of any library. My stuff is still very very rough mainly due pretty much all of it being created from scratch (including dealing with client side logic) while your HTML generating seems quite polished. I'm considering HTMX as it will makes things so much easier, but then I'd be relying on another library which is something I want to try and avoid. I want to build a small app with it and see how that goes.
@RawCoding Жыл бұрын
Let me know how it goes!
@rubananderson3880 Жыл бұрын
I really like your library but I think it's a bit verbose. If only it had a declarative syntax like JSX it'd be perfect. Is your library open source?
@RawCoding Жыл бұрын
I agree, not sure how to do that with c# though. and yeah you can find it here: github.com/T0shik/HyperTextExpression
@Naton Жыл бұрын
holy man please use dark mode
@mahmoudalaskalany Жыл бұрын
Man , i will never try this 😂
@meetingattender8132 Жыл бұрын
Me neither lol
@jfest27 Жыл бұрын
lool same here@@meetingattender8132
@Mhblabla Жыл бұрын
Abstracting HTML (and CSS/JS) behind a bunch of proprietary extension methods that I have to learn from scratch: yeah, right. Razor (or just pure SPA with REST backend) is light years better than this.
@saymehname Жыл бұрын
htmx4life
@ManderO9 Жыл бұрын
lmao, change underwear
@_b001 Жыл бұрын
I really love how web development has come full circle from seperation of concern to whatever this is 🙄🙄
@ivankovachev8835 Жыл бұрын
You can thank that damn Javascript for that.
@harrybilsonia Жыл бұрын
"whatever this is" is what the definition of REST api is
@TheNorthRemember Жыл бұрын
seeing this remindes me of html and php in one file