HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ijusthadto

no profile record

comments

ijusthadto
·il y a 10 mois·discuss
We are witnessing how techno-feudalism is eating capitalism. "Subscribe to your job skills. Only today, 30% off!"
ijusthadto
·il y a 12 mois·discuss
Exactly this. Strange that this comment got downwoted. AI companies are scrapping the entire internet disregarding copyright and pirating books. Without it, models will be useless.
ijusthadto
·l’année dernière·discuss
Because there is a build step.

npm run build -> static html and css
ijusthadto
·l’année dernière·discuss
Non-techy folks often don't touch terminal. With astro, you start with terminal.

Can it be reliable for production use? Yes.

Can non-techy make it reliable for production use? Who knows.

E-commerce and marketing sites are at the two opposite sides of complexity spectrum.

Astro would be perfect for marketing page (non-techy could approach that) and doable for e-commerce (for experienced dev).

Whether it SHOULD be used for e-commerce would be another question.
ijusthadto
·l’année dernière·discuss
Astro is, and should be treated, as a static site generator.

> Does it make it easier to throw in necessary JS (e.g. for comments)?

With astro you can combine html, css and js in a single file (.astro). You write plain JS (TypeScript) within <script> tag. There, you can, e.g. import your comment library, point to separate .js/*.ts file or write whatever logic you want for client-side JS.

See the docs for example JS usage in astro components:

https://docs.astro.build/en/guides/client-side-scripts/#web-...
ijusthadto
·l’année dernière·discuss
Please stop recommending React as the de facto framework, we need some critical thinking back into front-end. HTML, CSS and JS are much better alternatives.