HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ijusthadto

no profile record

comments

ijusthadto
·10 tháng trước·discuss
We are witnessing how techno-feudalism is eating capitalism. "Subscribe to your job skills. Only today, 30% off!"
ijusthadto
·năm ngoái·discuss
Because there is a build step.

npm run build -> static html and css
ijusthadto
·năm ngoái·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
·năm ngoái·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
·năm ngoái·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.