from Hacker News

What is the best approach in making a website in 2024?

by ssc23 on 1/31/24, 8:09 PM with 4 comments

  • by rossdavidh on 1/31/24, 8:44 PM

    1) if you just want to post your thoughts and images, then static html

    2) if you want people to comment, then either Wordpress or Disqus attached to static html; keep in mind that this entails you spending time moderating them

    3) if you want to sell stuff, then you look at Shopify or something similar

    4) some more complex CRUD, you use Django or Rails or similar; only add a javascript front end if you actually have some reason not to do everything server-side

    5) beyond CRUD, perhaps Flask and HTMX

    6) if this website is supposed to impress people, like it's a portfolio or something, then ignore all of this and use whatever buzzwords you see in job postings the most

  • by CM30 on 2/1/24, 12:36 PM

    Depends on the type of website:

    1. Personal site (no comments, static): Use static HTML/CSS/JavaScript, maybe upload to GitHub pages or Neocities.

    2. Personal site/blog (comments, technical functionality): Use WordPress, and pick one of the approximately 5 million hosting companies that support PHP and MySQL.

    3. Shop (easiest solution): Use Shopify or another SaaS service for hosting eCommerce sites.

    4. Shop (self hosted): WordPress + WooCommerce, Magento, various self hosted eCommerce systems

    5. Everything else: Choose whatever framework you're comfortable with in whatever language you know well.

  • by vlod on 1/31/24, 9:05 PM

    Standard html is a pita, might be worth looking at astro [0] if you want a static seo-friendly site.

    [0]: https://astro.build

  • by askafriend on 2/1/24, 1:53 AM

    I would say don't.