News for hackers. Stuff that matters.
Re:Astro framework lowers competitors by ~40% on performance... by keb_ on Wednesday July 05, 2023 @09:42AM (#36600352)
I just want to say that open-source projects like these that have these fancy marketing pages and rely on a huge amount of marketing tricks & twitter reposts makes me less likely to use them. Unfortunately, this is all too common in the JS world these days.
Re:Astro framework lowers competitors by ~40% on performance... by senko on Wednesday July 05, 2023 @10:23AM (#36600885)
Yes.

Open source is supposed to be merit-driven, not hype-driven and resorting to dirty tricks like these.

I wouldn't single out the JS community is the only one affected by it. To name just two examples outside JS, I blame pipenv authors for the same truth stretchi, and if you look at the current hype around open source AI libraries, there's a lot of it going on as well.

Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @10:25AM (#36600908)
Idk I really liked how effectively Remix communicated their framework on their website:

https://remix.run/

I've never used it but I can see the value in good web design. Good Web design = good copywriting/colours/information design etc.

Maybe fancy marketing and good Web design are two different things though

Re:Astro framework lowers competitors by ~40% on performance... by pmontra on Wednesday July 05, 2023 @10:31AM (#36601002)
Their use of colors and line height makes quite difficult to read their headers. I copy it the first one to be able to read it

> Focused on web standards and modern web app UX, you’re simply going to build better websites

I'd go with thinner fonts, less saturated colors (e.g.: the code on the right is easy to read) and larger line heights.

Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @10:43AM (#36601130)
I've always seen Remix on mobile not desktop, so I may have to reserve my support for it. I don't mind bold fonts and saturation when it's used on marketing sites. Web standards and the like or most suited for utility sites and business tools like Google and Wikipedia. The documentation section of a framework site and the more serious stuff definitely should keep it simple and standard though.

My main complaint would be the scrolljacking on mobile.

Re:Astro framework lowers competitors by ~40% on performance... by keb_ on Wednesday July 05, 2023 @11:33AM (#36601849)
It's a cool site for sure, but it's also hype-driven and buzzword heavy.

Remix is also run by/evangelized by people who: 1. hype their own work on Twitter with misleading comments, 2. released their framework as "pay-only" intially, 3. sell expensive coursework for their own tools instead of, yknow, having adequate documentation.

Remix also spun off into its own company before being acquired by Shopify. In fact, the whole "open-source library spins off into a company" is kind of creepy to me, although I'm sure not all are bad actors.

Re:Astro framework lowers competitors by ~40% on performance... by aatd86 on Wednesday July 05, 2023 @12:02PM (#36602348)
Well it's either that or you don't have a library and have wait for someone employed by a company to release something.

Someone has to get paid at some point. If this is their business why shoot it down? It's either that or subsidize this work by working somewhere that pays and leaves you with enough time for other projects.

Always wondering why devs are so cheap when they are supposed to earn that much more... Or perhaps it is just the vocal few on the internet.

Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @12:37PM (#36602894)
Creating high quality video tutorials as a way to make $$ to support OSS actually sounds like a good idea to me.
Re:Astro framework lowers competitors by ~40% on performance... by mmcnl on Wednesday July 05, 2023 @01:51PM (#36604214)
Remix has sketchy/questionable marketing. Seemingly independent techfluenchers suddenly endorsing the product. Unfair comparisons with competitors to make the product look better. Most people talking about Remix aren't actually using it. Red flag to me.
Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @02:52PM (#36605286)
Was this before or after they got acquired by Shopify?
Re:Astro framework lowers competitors by ~40% on performance... by no_wizard on Wednesday July 05, 2023 @05:26PM (#36607388)
Before, during, and current, though the Remix hyping train has fallen quite a bit as of late, I think in no small part due to Twitters recent changes.

I want to like Remix, but they have an odd culture around it, aren't really all that willing to talk openly about decision making or hearing valid criticism of the framework, and made some very bizarre design decisions with the framework itself, such as having zero ability to customize the build pipeline in any meaningful way

Re:Astro framework lowers competitors by ~40% on performance... by sureglymop on Wednesday July 05, 2023 @09:56AM (#36600539)
I highly agree. The main web frameworks I use are Svelte and Sveltekit. No comparison charts to other projects, easy to use, simple, created by a seemingly normal guy with sane opinions out of need for something like it for himself. It's not the end all be all, but works well for me. The JS world is pretty weird though. It's not only JS frameworks popping up in rapid succession but also browser features and proposals developing quickly. And what's really weird is how some new features rely on JavaScript, such as the newer <dialog> HTML element.
Re:Astro framework lowers competitors by ~40% on performance... by bongobingo1 on Wednesday July 05, 2023 @10:03AM (#36600640)
> No comparison charts to other projects

At least, none they publish first.

https://youtu.be/AdNJ3fydeao?t=1083

Re:Astro framework lowers competitors by ~40% on performance... by revskill on Wednesday July 05, 2023 @10:11AM (#36600736)
You seems misunderstand the role of web framework.

People want better abstraction than HTML, and JS is the only simple way.

Why i should use HTML input while i have better abstraction for it ?

TLDR is, HTML is the issue, not JS frameworks.

Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @10:29AM (#36600954)
(Old man yells at cloud)
Re:Astro framework lowers competitors by ~40% on performance... by solardev on Wednesday July 05, 2023 @11:14AM (#36601558)
Well said.
Re:Astro framework lowers competitors by ~40% on performance... by dmix on Wednesday July 05, 2023 @11:12AM (#36601521)
> And what's really weird is how some new features rely on JavaScript, such as the newer <dialog> HTML element.

Compared to the older alert/confirm dialogue which was driven by a C++ browser window + JS boolean it kind of makes sense for <dialog> to use JS for such a thing and keep it within the HTML/stylable context. Like confirms the only place it will be used is within JS. So there's no separating the two really.

Unless you're just looking for a glorified HTML5 tag that you have to do yourself.

Re:Astro framework lowers competitors by ~40% on performance... by foobarbecue on Wednesday July 05, 2023 @11:17AM (#36601603)
Yes, it's awful that HTML is now dependent on js... how did we let that happen?? I'm thinking mostly of HTML5 web components, which, unless I missed something, are completely useless without js. All I wanted was a way for HTML to import other HTML. This seems to be the central issue that we've been hacking around for decades with SSI, template languages, and js. It's so basic -- everybody wants a header and a footer and maybe a menu on each page. Should be an HTML feature.
Re:Astro framework lowers competitors by ~40% on performance... by gochi on Wednesday July 05, 2023 @11:40AM (#36601970)
You're basically suggesting implementing JS within HTML, which htmx exists on a technicality, but not sure that's something we should be pushing at all. We're just spreading JS problems to HTML which is a perfectly fine language.
Re:Astro framework lowers competitors by ~40% on performance... by bobthepanda on Wednesday July 05, 2023 @12:14PM (#36602564)
Also, JSX is pretty much literally this.

But yes, HTML was clearly designed for producing output markup; but in reality the people who want to generate markup want to handle nested data, if/else, and loops, because that is better than copy pasting a bunch of markup everywhere and occasionally fat-fingering something.

Re:Astro framework lowers competitors by ~40% on performance... by johnmw on Wednesday July 05, 2023 @05:31PM (#36607451)
I'm not sure I follow? I think the GP was just talking about the ability to import other HTML fragments without JS? Something like:

  <fragment href="site-menu.html"/>
Which would load my shared site wide menu html into the parent div.

I'm not sure why JS would be needed here? (i.e in the same way html <select> elements are interactive without needing "JS").

Going a little more out there, what about cross domain imports for easy web component consumption?

  <fragment href="https://weather-widget.org?location=london" />
I can't see how this would be less secure than current cross domain JS imports?

It used to be sorta possible with HTML Imports but that spec got dropped [1].

[1] https://www.w3.org/TR/html-imports/

Re:Astro framework lowers competitors by ~40% on performance... by mrpf1ster on Wednesday July 05, 2023 @07:20PM (#36608623)
Is this not just an iframe?
Re:Astro framework lowers competitors by ~40% on performance... by wruza on Wednesday July 05, 2023 @08:55PM (#36609495)
Iframes are opaque for css, form fields and for js in some sense.
Re:Astro framework lowers competitors by ~40% on performance... by teaearlgraycold on Wednesday July 05, 2023 @11:39AM (#36601947)
iframes?
Re:Astro framework lowers competitors by ~40% on performance... by otabdeveloper4 on Wednesday July 05, 2023 @11:51AM (#36602183)
Yes, except without the frame. (Restrict cross-origin requests if you worry about security.)
Re:Astro framework lowers competitors by ~40% on performance... by bilekas on Wednesday July 05, 2023 @01:10PM (#36603486)
Are iframes still fully supported across all browsers though?
Re:Astro framework lowers competitors by ~40% on performance... by slmjkdbtl on Wednesday July 05, 2023 @12:14PM (#36602544)
You can just make a function that generates HTML string like

    h("div", { class: "container" }, [
        h("p", {}, "oh hi!"),
        ...projects.map(renderProject),
    ])
the end result will have no JS if all you want is reuse HTML parts, much better than template languages imo (no additional syntax, has loops / functions / variables out of the box)
Re:Astro framework lowers competitors by ~40% on performance... by rado on Wednesday July 05, 2023 @12:20PM (#36602638)
Declarative web components with Shadow DOM are now supported everywhere and require no JS.
Re:Astro framework lowers competitors by ~40% on performance... by spankalee on Wednesday July 05, 2023 @12:32PM (#36602816)
That's not true. Declarative shadow DOM is supported in Safari, Chrome, and Edge, but that is not the same as declarative custom elements, which don't have a spec yet.
Re:Astro framework lowers competitors by ~40% on performance... by foobarbecue on Wednesday July 05, 2023 @01:44PM (#36604063)
Fantastic. Thanks for telling me about this.
Re:Astro framework lowers competitors by ~40% on performance... by spankalee on Wednesday July 05, 2023 @12:33PM (#36602839)
Web components are custom HTML elements, which typically combine state behavior and state-based rendering. How do you expect to do that without JS, at least without porting a non-trivial subset of a JS-like programming language into HTML?
Re:Astro framework lowers competitors by ~40% on performance... by lenkite on Wednesday July 05, 2023 @12:40PM (#36602951)
Once upon a time we had HTML Imports which were lovely. But it made browser vendors nervous since folks could do stuff without Javascript. And what would then happen to all their tracking ? So, they unanimously purged the feature.

    <link rel="import" href="/partials/browser-vendors-hate-this.html" />
Re:Astro framework lowers competitors by ~40% on performance... by youngtaff on Wednesday July 05, 2023 @03:02PM (#36605450)
The problem with imports is they were render blocking

Don’t need JS to do tracking, and browsers can track without needs any marketing tags at all

Re:Astro framework lowers competitors by ~40% on performance... by lenkite on Thursday July 06, 2023 @04:14AM (#36612813)
Not a big deal. There are already render blocking resources today. Could be ameliorated with an async attribute if needed.

Obviously browsers that directly track users will lead a stinking public cloud and litigation. Vendors prefer their customers do the tracking for them. And make the ecosystem unable to function without tracking.

Re:Astro framework lowers competitors by ~40% on performance... by lyjackal on Wednesday July 05, 2023 @01:53PM (#36604243)
For what it’s worth, Astro is a static site generator that only relies on JavaScript at build time, and has optional integration with the usual js frameworks. In many ways that’s what it does solve (just importing html)
Re:Astro framework lowers competitors by ~40% on performance... by mmcnl on Wednesday July 05, 2023 @01:48PM (#36604151)
That's why I love Vue as well. It's developer & product-focused. No fancy marketing. Great docs. Approachable maintainers.
Re:Astro framework lowers competitors by ~40% on performance... by aerio on Thursday July 06, 2023 @01:07PM (#36619203)
Fantastic docs, and primo documentation is not to be underestimated. Picking it up was a cinch.

Personally I love single file components. In specified having html, js and my scss in the same file, but split into <template>, <script setup>, and <style>. Nuxt 3 is fantastic DX.

Re:Astro framework lowers competitors by ~40% on performance... by didntcheck on Wednesday July 05, 2023 @11:40AM (#36601977)
* * *
Re:Astro framework lowers competitors by ~40% on performance... by paxys on Wednesday July 05, 2023 @11:59AM (#36602311)
Projects like these scream "we are VC funded and will need to figure out a 10x exit one day". And that exit will only come by converting all the generated community goodwill into cash. Staying away from them is the correct decision.
Re:Astro framework lowers competitors by ~40% on performance... by vasco on Wednesday July 05, 2023 @01:02PM (#36603345)
Exactly, this is a form of marketing VCs found. Instead of using up say $500k on Google ads, you use up 6 months of development as marketing costs, open source whatever you come up with in that first bit, and from then onwards you only develop the paid parts.

I'm not that unhappy about this, end of the day there's more accessible code, but it's also good to see what's going on.

Re:Astro framework lowers competitors by ~40% on performance... by slmjkdbtl on Wednesday July 05, 2023 @12:05PM (#36602394)
Ideally frameworks will be simple enough that chart isn't necessary and people can tell with their logical engineer mind how fast it will be by understanding how it works (or better, can implement a POC yourself in an hour). If I can't do that for a framework I won't use it because I'll probably mess up (React is an exception because I will still mess up even if I know 100% how it works).
Re:Astro framework lowers competitors by ~40% on performance... by dehrmann on Wednesday July 05, 2023 @12:30PM (#36602796)
Appearing immature has been a long-standing issue with some open-source projects. Desktop environments have never had the polish or cohesion of even Windows, and a large part of that is not attracting as many UX or design contributors. Seeing a marketing page could be a sign that they also put effort into a cohesive API and good docs.

That said, there's a certain project where I want to see the API front and center. I've seen companies make all sorts of vague marketing promises that I never understood until I saw their API.

Re:Astro framework lowers competitors by ~40% on performance... by nerdbert on Wednesday July 05, 2023 @08:23PM (#36609215)
For what it's worth, the Astro guy apologized and replaced the graph.