Hacker Newsnew | past | comments | ask | show | jobs | submit | jpjuni0r's commentslogin

> if you use simple unchanged files for other dynamic stuff like JSON etc, you can just generate those on build and serve those files in the host directly

Other web frameworks support this too, if you look for "static export" options. Next.js, for example, supports this via the getInitialProps function.

What I like especially about Astro, that you perform this data loading during build time from any component/file on your page. With Next.js, this is only possible via the top level Page component.


That is legacy, the current way with page router model is to use getStaticProps or getServerSideProps.

And if using app router model, that is part of React server components.


That way the site can hide the cookie banner for you and continue to show it for new visitors (which have no cookies set)


But it should still be not-tracking until you agree (i.e. if you have no cookies set).


I'm curious what made you decide against Phoenix live view with an elixir backend


I'm curious how sscanf is considered bad?


scanf(“%s”, …) can cause a buffer overflow.


It sucks that there's no scanf("%.*s"), where you give the buffer length as a separate argument. The fact that it's in a string literal also makes using a compile-time constant really ugly.


You can overflow buffers all sorts of ways in C.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: