The new jquery? Eurk.
Marko – A declarative, HTML‑based language
141–150 of 189 posts
Re: Marko – A declarative, HTML‑based language
#142Earlier quoted context omitted.
File-based routing is fundamentally flawed and it cannot be fixed. A number of libraries opt for it since it's easier for newcomers to pick up, but eventually you run into all of the cases where you do need something else. This in turn leads you to a hybrid system of multiple things where there's no single source of truth and everything is spaghetti.
Care to make quite a simple example where file based routing would struggle?
Re: Marko – A declarative, HTML‑based language
#143Earlier quoted context omitted.
How would you prefer to write those examples?
Personally, I'd either just put the content in an ID-ed span and have a script to replace the content. Another, perhaps better, way is to use Alpine.JS which excels at this kind of stuff.
Re: Marko – A declarative, HTML‑based language
#144After two decades of this churn we are back to the equivalent of JSP. It was the correct paradigm all along but millennials wouldn't be caught dead working with such a "lame" technology so they bestowed SPA on us and now they are slowly walking it back.
The only problem is that it won't necessarily scale to some insane numbers without some care.
(Not sure why the past tense, it does work and developed still)
Re: Marko – A declarative, HTML‑based language
#145Earlier quoted context omitted.
React is "just JavaScript" that you have to write in a very particular way, which the language in no way helps you enforce, for otherwise your "web app" will misbehave is bizarre and confusing ways.
There are no particular ways to code react where JSX is just JavaScript, it is not.
Re: Marko – A declarative, HTML‑based language
#146Earlier quoted context omitted.
There are no particular ways to code react where JSX is just JavaScript, it is not.
React is not the same thing as JSX. You can use React without using JSX and you can also use JSX without using React. This argument makes no sense from the get go.
Re: Marko – A declarative, HTML‑based language
#1471. native support for all http verbs such as put and delete in html itself without relying on JavaScript
2. sensible controls for drop down, select, multi select, date, time, datetime and so on without relying on any JavaScript
3. Submitting a form and submitting actions without reloading the whole page again without requiring any JavaScript
4. A whole lot of stuff yes without requiring any JavaScript
When I first heard the term htmx, I thought that was what htmx was but sadly it is just intercooler. What I am asking for requires broad support from browser vendors.
Re: Marko – A declarative, HTML‑based language
#148Earlier quoted context omitted.
Agreed on the syntax part. We’ve had good syntax for templates before: {% for user in users %} {{ user.firstName }} {% endfor %} And we have good syntax for templates now: {#each users as user} {user.firstName} {/each} Why do we have to squish everything into HTML-like-but-not-quite blocks? But no, JSX isn’t that great either: {users.map(user => ( {user.firstName} ))}
Why not use html/XML style syntax rather than mixing two syntax styles? For example, "{/each}" already looks like " ".
is about control flow, so it's a conceptually different thing.
I can't tell how convincing that argument is to be honest, and how much I'm just rationalising familiarity.
Re: Marko – A declarative, HTML‑based language
#149Honestly I don't know... I'm somewhat skeptical about these "next big thing that will fix all your pains in web development". There is so much fragmentation in JS libraries / frameworks. Angular, React, Vue, Svelte, Asto, SolidJS, NextJS, Nuxt, Qwik... The list is so overwhelming. Almost each one claims that it fixes a problem in other framework, and a year later the other framework fixes that issue... I think it's b…
Honestly I don't know... I'm somewhat skeptical about these "next big thing that will fix all your pains in web development". There is so much fragmentation in JS libraries / frameworks. Angular, React, Vue, Angular, Asto, SolidJS, NextJS, Nuxt, Qwik... The list is so overwhelming. Almost each one claims that it fixes a problem in other framework, a year later the other framework fixes an issue... I think it's better…